[llvm] [SandboxIR][Tracker] Track InsertIntoBB (PR #101595)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 16:53:12 PDT 2024
================
@@ -291,6 +291,22 @@ class MoveInstr : public IRChangeBase {
#endif // NDEBUG
};
+class InsertIntoBB final : public IRChangeBase {
+ Instruction *InsertedI = nullptr;
+
+public:
+ InsertIntoBB(Instruction *InsertedI, Tracker &Tracker);
+ void revert() final;
+ void accept() final {}
+#ifndef NDEBUG
+ void dump(raw_ostream &OS) const final {
----------------
aeubanks wrote:
you may consider some CRTP to automate dump methods, like https://github.com/llvm/llvm-project/blob/d9f786fd13fe03256ef0f2983ecd379d0e7e8c93/llvm/include/llvm/IR/PassManager.h#L74
(still doesn't address the gdb issue of not being able to call methods in parent classes, but something to think about)
https://github.com/llvm/llvm-project/pull/101595
More information about the llvm-commits
mailing list