[llvm] [SandboxIR][Tracker] Track eraseFromParent() (PR #99431)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 09:05:26 PDT 2024
================
@@ -99,6 +99,46 @@ class UseSet : public IRChangeBase {
#endif
};
+class EraseFromParent : public IRChangeBase {
+ /// Contains all the data we need to restore an "erased" (i.e., detached)
+ /// instruction: the instruction itself and the operands data.
+ struct InstrData {
+ /// The operand and the corresponding operand number.
+ struct OpData {
+ llvm::Value *Op;
+ unsigned long OpNum;
+ };
+ /// The operands that got dropped.
+ SmallVector<OpData> OpDataVec;
+ /// The instruction that got "erased".
+ llvm::Instruction *LLVMI;
+ };
+ /// The instruction data is in revere program order, which helps create the
----------------
vporpo wrote:
Fixed
https://github.com/llvm/llvm-project/pull/99431
More information about the llvm-commits
mailing list