[llvm] [SandboxIR] Added new StoreInst::create() functions with isVolatile arg (PR #100961)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 13:24:47 PDT 2024


vporpo wrote:

Adding `setVerbose()` is a bit trickier because it requires you to track the change with the Tracker. You would need to create a class in `Tracker.h` like `class SetVerbose : public IRChangeBase` containing an `Instruction *I` and a `bool WasVerbose` to track the original state of the Verbose flag.
You can check how this is done in a couple of places, like for example: `CallBrInst::setDefaultDest()`. Take a look at `TrackerTest.cpp` too.

https://github.com/llvm/llvm-project/pull/100961


More information about the llvm-commits mailing list