[llvm] [IR] Add elementwise modifier to atomic loads (PR #204556)

Harrison Hao via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 05:22:52 PDT 2026


================
@@ -204,14 +205,21 @@ class LoadInst : public UnaryInstruction {
   LLVM_ABI LoadInst(Type *Ty, Value *Ptr, const Twine &NameStr, bool isVolatile,
                     Align Align, AtomicOrdering Order,
                     SyncScope::ID SSID = SyncScope::System,
-                    InsertPosition InsertBefore = nullptr);
+                    InsertPosition InsertBefore = nullptr,
+                    bool IsElementwise = false);
----------------
harrisonGPU wrote:

Thanks, I have implemented in this PR:https://github.com/llvm/llvm-project/pull/206470

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


More information about the llvm-commits mailing list