Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp417 Instruction *MovePos = ToBB.getFirstNonPHIOrDbg(); in moveInstructionsToTheBeginning() local
419 if (isSafeToMoveBefore(I, *MovePos, DT, &PDT, &DI)) in moveInstructionsToTheBeginning()
420 I.moveBeforePreserving(MovePos); in moveInstructionsToTheBeginning()
428 Instruction *MovePos = ToBB.getTerminator(); in moveInstructionsToTheEnd() local
431 if (isSafeToMoveBefore(I, *MovePos, DT, &PDT, &DI)) in moveInstructionsToTheEnd()
432 I.moveBeforePreserving(MovePos); in moveInstructionsToTheEnd()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp162 void Instruction::moveBefore(Instruction *MovePos) { in moveBefore() argument
163 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), false); in moveBefore()
166 void Instruction::moveBeforePreserving(Instruction *MovePos) { in moveBeforePreserving() argument
167 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), true); in moveBeforePreserving()
170 void Instruction::moveAfter(Instruction *MovePos) { in moveAfter() argument
171 auto NextIt = std::next(MovePos->getIterator()); in moveAfter()
175 moveBeforeImpl(*MovePos->getParent(), NextIt, false); in moveAfter()
178 void Instruction::moveAfterPreserving(Instruction *MovePos) { in moveAfterPreserving() argument
179 auto NextIt = std::next(MovePos->getIterator()); in moveAfterPreserving()
183 moveBeforeImpl(*MovePos->getParent(), NextIt, true); in moveAfterPreserving()
H A DBasicBlock.cpp319 void BasicBlock::moveBefore(SymbolTableList<BasicBlock>::iterator MovePos) { in moveBefore() argument
320 getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore()
323 void BasicBlock::moveAfter(BasicBlock *MovePos) { in moveAfter() argument
324 MovePos->getParent()->splice(++MovePos->getIterator(), getParent(), in moveAfter()
H A DCore.cpp2720 void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockBefore() argument
2721 unwrap(BB)->moveBefore(unwrap(MovePos)); in LLVMMoveBasicBlockBefore()
2724 void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockAfter() argument
2725 unwrap(BB)->moveAfter(unwrap(MovePos)); in LLVMMoveBasicBlockAfter()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h190 void moveBefore(Instruction *MovePos);
197 void moveBeforePreserving(Instruction *MovePos);
215 void moveAfter(Instruction *MovePos);
218 void moveAfterPreserving(Instruction *MovePos);
H A DBasicBlock.h365 inline void moveBefore(BasicBlock *MovePos) { in moveBefore() argument
366 moveBefore(MovePos->getIterator()); in moveBefore()
368 void moveBefore(SymbolTableList<BasicBlock>::iterator MovePos);
372 void moveAfter(BasicBlock *MovePos);
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineInstr.cpp147 void MachineInstr::moveBefore(MachineInstr *MovePos) { in moveBefore() argument
148 MovePos->getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h3294 void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
3301 void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineInstr.h330 void moveBefore(MachineInstr *MovePos);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.h751 void moveAfter(VPRecipeBase *MovePos);