[clang] [mlir] [mlir][llvm] Add tbaa_struct field attrs to the LLVM dialect (PR #238991)
Tobias Gysi via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 22:35:11 PST 2026
================
@@ -343,6 +359,9 @@ class LLVM_IntrOpBase<Dialect dialect, string opName, string enumName,
OptionalAttr<LLVM_AliasScopeArrayAttr>:$noalias_scopes,
OptionalAttr<LLVM_TBAATagArrayAttr>:$tbaa),
(ins )),
+ !if(!gt(requiresTBAAStruct, 0),
+ (ins OptionalAttr<LLVM_TBAAStructFieldArrayAttr>:$tbaa_struct),
+ (ins )),
----------------
gysit wrote:
hmm, I like that we can handle the tbaa stuff in the memory intrinsic base class. Seeing this I would probably just have appended the tbaa_struct field at the end of the argument list in the memory intrinsic base class for simplicity. But since this contradicts @krzysz00 I am fine.
https://github.com/llvm/llvm-project/pull/238991
More information about the cfe-commits
mailing list