We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb71fdd commit 56d8c5fCopy full SHA for 56d8c5f
llvm/lib/IR/Instruction.cpp
@@ -197,6 +197,13 @@ void Instruction::moveAfter(Instruction *MovePos) {
197
moveBeforeImpl(*MovePos->getParent(), NextIt, false);
198
}
199
200
+void Instruction::moveAfter(InstListType::iterator MovePos) {
201
+ // We want this instruction to be moved to before NextIt in the instruction
202
+ // list, but before NextIt's debug value range.
203
+ MovePos.setHeadBit(true);
204
+ moveBeforeImpl(*MovePos->getParent(), MovePos, false);
205
+}
206
+
207
void Instruction::moveAfterPreserving(Instruction *MovePos) {
208
auto NextIt = std::next(MovePos->getIterator());
209
// We want this instruction and its debug range to be moved to before NextIt
0 commit comments