Home
last modified time | relevance | path

Searched refs:MovePos (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp430 Instruction *MovePos = ToBB.getFirstNonPHIOrDbg(); in moveInstructionsToTheBeginning() local
432 if (isSafeToMoveBefore(I, *MovePos, DT, &PDT, &DI)) in moveInstructionsToTheBeginning()
433 I.moveBeforePreserving(MovePos); in moveInstructionsToTheBeginning()
441 Instruction *MovePos = ToBB.getTerminator(); in moveInstructionsToTheEnd() local
444 if (isSafeToMoveBefore(I, *MovePos, DT, &PDT, &DI)) in moveInstructionsToTheEnd()
445 I.moveBeforePreserving(MovePos); in moveInstructionsToTheEnd()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp167 void Instruction::moveBefore(Instruction *MovePos) { in moveBefore() argument
168 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), false); in moveBefore()
171 void Instruction::moveBeforePreserving(Instruction *MovePos) { in moveBeforePreserving() argument
172 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), true); in moveBeforePreserving()
175 void Instruction::moveAfter(Instruction *MovePos) { in moveAfter() argument
176 auto NextIt = std::next(MovePos->getIterator()); in moveAfter()
180 moveBeforeImpl(*MovePos->getParent(), NextIt, false); in moveAfter()
183 void Instruction::moveAfterPreserving(Instruction *MovePos) { in moveAfterPreserving() argument
184 auto NextIt = std::next(MovePos->getIterator()); in moveAfterPreserving()
188 moveBeforeImpl(*MovePos->getParent(), NextIt, true); in moveAfterPreserving()
H A DBasicBlock.cpp281 void BasicBlock::moveBefore(SymbolTableList<BasicBlock>::iterator MovePos) { in moveBefore() argument
282 getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore()
285 void BasicBlock::moveAfter(BasicBlock *MovePos) { in moveAfter() argument
286 MovePos->getParent()->splice(++MovePos->getIterator(), getParent(), in moveAfter()
H A DCore.cpp2879 void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockBefore() argument
2880 unwrap(BB)->moveBefore(unwrap(MovePos)); in LLVMMoveBasicBlockBefore()
2883 void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockAfter() argument
2884 unwrap(BB)->moveAfter(unwrap(MovePos)); in LLVMMoveBasicBlockAfter()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DBasicBlock.h366 inline void moveBefore(BasicBlock *MovePos) { in moveBefore() argument
367 moveBefore(MovePos->getIterator()); in moveBefore()
369 void moveBefore(SymbolTableList<BasicBlock>::iterator MovePos);
373 void moveAfter(BasicBlock *MovePos);
H A DInstruction.h225 void moveBefore(Instruction *MovePos);
232 void moveBeforePreserving(Instruction *MovePos);
250 void moveAfter(Instruction *MovePos);
253 void moveAfterPreserving(Instruction *MovePos);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineInstr.cpp150 void MachineInstr::moveBefore(MachineInstr *MovePos) { in moveBefore() argument
151 MovePos->getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h3498 void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
3505 void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineInstr.h350 void moveBefore(MachineInstr *MovePos);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.h814 void moveAfter(VPRecipeBase *MovePos);