[clang] [mlir] [mlir][llvm] Add tbaa_struct field attrs to the LLVM dialect (PR #238991)
Krzysztof Drewniak via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 18:52:37 PST 2026
================
@@ -265,7 +265,10 @@ class LLVM_MemcpyIntrOpBase<string name> :
/*immArgPositions=*/[3], /*immArgAttrNames=*/["isVolatile"]> {
dag args = (ins Arg<LLVM_AnyPointer,"",[MemWrite]>:$dst,
Arg<LLVM_AnyPointer,"",[MemRead]>:$src,
- AnySignlessInteger:$len, I1Attr:$isVolatile);
+ AnySignlessInteger:$len, I1Attr:$isVolatile,
+ // `!tbaa.struct`: which fields of the aggregate the copy
+ // touches, so it is not treated as one opaque access.
+ OptionalAttr<LLVM_TBAAStructFieldArrayAttr>:$tbaa_struct);
----------------
krzysz00 wrote:
I think we might want to add this to the same argument set that tbaa works with instead of manually adding it like this - this is what that whole `baseArgs` is for
https://github.com/llvm/llvm-project/pull/238991
More information about the cfe-commits
mailing list