Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/IR/
H A DBasicBlock.cpp136 void BasicBlock::moveBefore(BasicBlock *MovePos) { in moveBefore() argument
137 MovePos->getParent()->getBasicBlockList().splice( in moveBefore()
138 MovePos->getIterator(), getParent()->getBasicBlockList(), getIterator()); in moveBefore()
141 void BasicBlock::moveAfter(BasicBlock *MovePos) { in moveAfter() argument
142 MovePos->getParent()->getBasicBlockList().splice( in moveAfter()
143 ++MovePos->getIterator(), getParent()->getBasicBlockList(), in moveAfter()
H A DInstruction.cpp96 void Instruction::moveBefore(Instruction *MovePos) { in moveBefore() argument
97 moveBefore(*MovePos->getParent(), MovePos->getIterator()); in moveBefore()
100 void Instruction::moveAfter(Instruction *MovePos) { in moveAfter() argument
101 moveBefore(*MovePos->getParent(), ++MovePos->getIterator()); in moveAfter()
H A DCore.cpp2730 void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockBefore() argument
2731 unwrap(BB)->moveBefore(unwrap(MovePos)); in LLVMMoveBasicBlockBefore()
2734 void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos) { in LLVMMoveBasicBlockAfter() argument
2735 unwrap(BB)->moveAfter(unwrap(MovePos)); in LLVMMoveBasicBlockAfter()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp415 Instruction *MovePos = ToBB.getFirstNonPHIOrDbg(); in moveInstructionsToTheBeginning() local
417 if (isSafeToMoveBefore(I, *MovePos, DT, &PDT, &DI)) in moveInstructionsToTheBeginning()
418 I.moveBefore(MovePos); in moveInstructionsToTheBeginning()
426 Instruction *MovePos = ToBB.getTerminator(); in moveInstructionsToTheEnd() local
429 if (isSafeToMoveBefore(I, *MovePos, DT, &PDT, &DI)) in moveInstructionsToTheEnd()
430 I.moveBefore(MovePos); in moveInstructionsToTheEnd()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DBasicBlock.h228 void moveBefore(BasicBlock *MovePos);
232 void moveAfter(BasicBlock *MovePos);
H A DInstruction.h134 void moveBefore(Instruction *MovePos);
143 void moveAfter(Instruction *MovePos);
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineInstr.cpp136 void MachineInstr::moveBefore(MachineInstr *MovePos) { in moveBefore() argument
137 MovePos->getParent()->splice(MovePos, getParent(), getIterator()); in moveBefore()
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DCore.h3130 void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
3137 void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineInstr.h292 void moveBefore(MachineInstr *MovePos);
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlan.h698 void moveAfter(VPRecipeBase *MovePos);