[llvm] [SandboxIR] Added a new LoadInst::create() with a isVolatile arg (PR #100781)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 10:44:24 PDT 2024


================
@@ -743,6 +743,9 @@ class LoadInst final : public Instruction {
   static LoadInst *create(Type *Ty, Value *Ptr, MaybeAlign Align,
                           Instruction *InsertBefore, Context &Ctx,
                           const Twine &Name = "");
+  static LoadInst *create(Type *Ty, Value *Ptr, MaybeAlign Align,
+                          Instruction *InsertBefore, Context &Ctx,
+                          const Twine &Name = "", bool isVolatile);
----------------
vporpo wrote:

I would move the `isVolatile` flag before the `Ctx` argument.
Also we would need both versions of the create() function with the additional isVolatile argument + their bodies + tests :)

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


More information about the llvm-commits mailing list