[llvm] [SandboxIR] Added setVolatile member function to LoadInst and StoreInst (PR #101284)

Julius Alexandre via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 13:24:48 PDT 2024


================
@@ -776,6 +776,8 @@ class LoadInst final : public Instruction {
 public:
   /// Return true if this is a load from a volatile memory location.
   bool isVolatile() const { return cast<llvm::LoadInst>(Val)->isVolatile(); }
+  /// Specify whether this is a volatile load or not.
+  void setVolatile(bool V) { return cast<llvm::LoadInst>(Val)->setVolatile(V); }
----------------
medievalghoul wrote:

I made sure to make those changes, thanks.

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


More information about the llvm-commits mailing list