[llvm] [IR][AtomicExpand] Add elementwise modifier to atomicrmw; automatically expand for all targets (PR #189517)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 08:20:11 PDT 2026
================
@@ -920,7 +927,7 @@ class AtomicRMWInst : public Instruction {
private:
void Init(BinOp Operation, Value *Ptr, Value *Val, Align Align,
- AtomicOrdering Ordering, SyncScope::ID SSID);
+ AtomicOrdering Ordering, SyncScope::ID SSID, bool Elementwise);
----------------
antoniofrighetto wrote:
Just wondering, any reason why favored encoding elementwise as a separate bool and not part of `SubclassData`, like volatile and friends? Should be still left one spare bit to use?
https://github.com/llvm/llvm-project/pull/189517
More information about the llvm-commits
mailing list