[llvm] [IR][NFC] Add LoadStoreInstAttributes to copy load/store attrs (PR #206470)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 05:51:34 PDT 2026
================
@@ -172,6 +172,14 @@ class AllocaInst : public UnaryInstruction {
}
};
+/// A structure representing the attributes of a load or store instruction.
+struct LoadStoreInstAttributes {
----------------
antoniofrighetto wrote:
As originally suggested, let's avoid possible collision with the LLVM attribute concept. It would be also better to define the structure closer to LoadInst class (not here in AllocaInst).
```suggestion
/// A structure representing the properties of a load or store instruction.
struct LoadStoreProperties {
```
https://github.com/llvm/llvm-project/pull/206470
More information about the llvm-commits
mailing list