Home
last modified time | relevance | path

Searched refs:moveBefore (Results 1 – 25 of 116) sorted by relevance

12345

/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DFoldUtils.cpp83 op->moveBefore(&opBlock->front()); in tryToFold()
120 op->moveBefore(&opBlock->front()); in insertKnownConstant()
159 op->moveBefore(&insertBlock->front()); in insertKnownConstant()
307 constOp->moveBefore(&opBlock->front()); in processFoldResults()
H A DTopologicalSortUtils.cpp73 op.moveBefore(block, nextScheduledOp); in sortTopologically()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DGuardUtils.cpp103 WCAnd->moveBefore(WidenableBR); in widenWidenableBranch()
122 WCAnd->moveBefore(WidenableBR); in setWidenableBranchCond()
H A DCodeMoverUtils.cpp418 I.moveBefore(MovePos); in moveInstructionsToTheBeginning()
430 I.moveBefore(MovePos); in moveInstructionsToTheEnd()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp280 DivInst->moveBefore(PredBB->getTerminator()); in optimizeDivRem()
283 RemInst->moveBefore(PredBB->getTerminator()); in optimizeDivRem()
349 DivInst->moveBefore(RemInst); in optimizeDivRem()
H A DLoopInterchange.cpp1382 I.moveBefore(OuterLoopHeader->getTerminator()); in transform()
1504 P->moveBefore(InnerLatch->getFirstNonPHI()); in moveLCSSAPhis()
1509 P->moveBefore(InnerExit->getFirstNonPHI()); in moveLCSSAPhis()
1675 PHI->moveBefore(InnerLoopHeader->getFirstNonPHI()); in adjustLoopBranches()
1680 PHI->moveBefore(OuterLoopHeader->getFirstNonPHI()); in adjustLoopBranches()
/llvm-project-15.0.7/mlir/lib/Transforms/
H A DControlFlowSink.cpp47 op->moveBefore(&region->front(), region->front().begin()); in runOnOperation()
/llvm-project-15.0.7/mlir/test/lib/Transforms/
H A DTestControlFlowSink.cpp45 op->moveBefore(&entry, entry.begin()); in runOnOperation()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp49 allocaInst->moveBefore(firstTerminatorInst); in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp176 SinkCandidate->moveBefore(*SinkTo, SinkTo->getFirstNonPhi()); in sinkScalarOperands()
258 ToMove.moveBefore(*Then2, Then2->getFirstNonPhi()); in mergeReplicateRegions()
282 Phi1ToMove.moveBefore(*Merge2, Merge2->begin()); in mergeReplicateRegions()
/llvm-project-15.0.7/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp290 I.moveBefore(Pred->getTerminator()); in mergeIntoSinglePredecessor_v1()
341 I.moveBefore(Pred->getTerminator()); in mergeIntoSinglePredecessor_v2()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTypePromotion.cpp438 I->moveBefore(InsertPt); in ExtendSources()
536 Trunc->moveBefore(Call); in TruncateSinks()
547 Trunc->moveBefore(Switch); in TruncateSinks()
562 Trunc->moveBefore(I); in TruncateSinks()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DLowerToAffineLoops.cpp46 alloc->moveBefore(&parentBlock->front()); in insertAllocAndDealloc()
51 dealloc->moveBefore(&parentBlock->back()); in insertAllocAndDealloc()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DLowerToAffineLoops.cpp46 alloc->moveBefore(&parentBlock->front()); in insertAllocAndDealloc()
51 dealloc->moveBefore(&parentBlock->back()); in insertAllocAndDealloc()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DLowerToAffineLoops.cpp46 alloc->moveBefore(&parentBlock->front()); in insertAllocAndDealloc()
51 dealloc->moveBefore(&parentBlock->back()); in insertAllocAndDealloc()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DInstrumentation.cpp31 I->moveBefore(&*IP); in moveBeforeInsertPoint()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DMemorySSATest.cpp322 SideStore->moveBefore(Entry->getTerminator()); in TEST_F()
359 SideStore->moveBefore(Entry->getTerminator()); in TEST_F()
458 SideStore->moveBefore(*EntryStore->getParent(), EntryStore->getIterator()); in TEST_F()
459 Updater.moveBefore(SideStoreAccess, EntryStoreAccess); in TEST_F()
465 SideStore->moveBefore(*Right, Right->begin()); in TEST_F()
471 SideStore->moveBefore(MergeLoad); in TEST_F()
472 Updater.moveBefore(SideStoreAccess, LoadAccess); in TEST_F()
852 StoreC->moveBefore(StoreB); in TEST_F()
853 Updater.moveBefore(cast<MemoryDef>(MSSA.getMemoryAccess(StoreC)), in TEST_F()
1834 LI->moveBefore(BB->getTerminator()); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp96 void Instruction::moveBefore(Instruction *MovePos) { in moveBefore() function in Instruction
97 moveBefore(*MovePos->getParent(), MovePos->getIterator()); in moveBefore()
101 moveBefore(*MovePos->getParent(), ++MovePos->getIterator()); in moveAfter()
104 void Instruction::moveBefore(BasicBlock &BB, in moveBefore() function in Instruction
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DForToWhile.cpp80 arg.moveBefore(afterBlock, afterBlock->end()); in matchAndRewrite()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.h134 void moveBefore(Instruction *MovePos);
139 void moveBefore(BasicBlock &BB, SymbolTableList<Instruction>::iterator I);
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DLoopLikeInterface.td48 op->moveBefore($_op);
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DBufferUtils.cpp196 global->moveBefore(&moduleOp.front()); in getGlobalFor()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/
H A DAffineLoopInvariantCodeMotion.cpp225 op->moveBefore(forOp); in runOnAffineForOp()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DMemorySSAUpdater.h128 void moveBefore(MemoryUseOrDef *What, MemoryUseOrDef *Where);
/llvm-project-15.0.7/mlir/lib/IR/
H A DOperation.cpp430 void Operation::moveBefore(Operation *existingOp) { in moveBefore() function in Operation
431 moveBefore(existingOp->getBlock(), existingOp->getIterator()); in moveBefore()
436 void Operation::moveBefore(Block *block, in moveBefore() function in Operation
453 moveBefore(block, std::next(iterator)); in moveAfter()

12345