Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp171 void Instruction::moveBefore(Instruction *MovePos) { in moveBefore() argument
172 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), false); in moveBefore()
175 void Instruction::moveBefore(BasicBlock::iterator MovePos) { in moveBefore() argument
176 moveBeforeImpl(*MovePos->getParent(), MovePos, false); in moveBefore()
179 void Instruction::moveBeforePreserving(Instruction *MovePos) { in moveBeforePreserving() argument
180 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), true); in moveBeforePreserving()
183 void Instruction::moveBeforePreserving(BasicBlock::iterator MovePos) { in moveBeforePreserving() argument
184 moveBeforeImpl(*MovePos->getParent(), MovePos, true); in moveBeforePreserving()
187 void Instruction::moveAfter(Instruction *MovePos) { in moveAfter() argument
188 auto NextIt = std::next(MovePos->getIterator()); in moveAfter()
[all …]
H A DBasicBlock.cpp239 void BasicBlock::moveBefore(SymbolTableList<BasicBlock>::iterator MovePos) { in moveBefore() argument
240 getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore()
243 void BasicBlock::moveAfter(BasicBlock *MovePos) { in moveAfter() argument
244 MovePos->getParent()->splice(++MovePos->getIterator(), getParent(), in moveAfter()
H A DCore.cpp2890 void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockBefore() argument
2891 unwrap(BB)->moveBefore(unwrap(MovePos)); in LLVMMoveBasicBlockBefore()
2894 void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockAfter() argument
2895 unwrap(BB)->moveAfter(unwrap(MovePos)); in LLVMMoveBasicBlockAfter()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp430 BasicBlock::iterator 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->getIterator()); in moveInstructionsToTheEnd()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h246 "") void moveBefore(Instruction *MovePos);
255 LLVM_ABI void moveBeforePreserving(InstListType::iterator MovePos);
269 "") void moveBeforePreserving(Instruction *MovePos);
284 LLVM_ABI void moveAfter(Instruction *MovePos);
288 LLVM_ABI void moveAfter(InstListType::iterator MovePos);
291 LLVM_ABI void moveAfterPreserving(Instruction *MovePos);
H A DBasicBlock.h386 inline void moveBefore(BasicBlock *MovePos) { in moveBefore() argument
387 moveBefore(MovePos->getIterator()); in moveBefore()
389 LLVM_ABI void moveBefore(SymbolTableList<BasicBlock>::iterator MovePos);
393 LLVM_ABI void moveAfter(BasicBlock *MovePos);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineInstr.cpp152 void MachineInstr::moveBefore(MachineInstr *MovePos) { in moveBefore() argument
153 MovePos->getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h3641 LLVMBasicBlockRef MovePos);
3649 LLVMBasicBlockRef MovePos);
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineInstr.h361 LLVM_ABI void moveBefore(MachineInstr *MovePos);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.h437 void moveAfter(VPRecipeBase *MovePos);