[Mlir-commits] [mlir] [mlir][llvm] support -new-struct-path-tbaa (PR #119698)

Tobias Gysi llvmlistbot at llvm.org
Tue Feb 25 12:25:55 PST 2025


================
@@ -1084,8 +1084,79 @@ def LLVM_TBAATagAttr : LLVM_Attr<"TBAATag", "tbaa_tag"> {
   let assemblyFormat = "`<` struct(params) `>`";
 }
 
+def LLVM_TBAAStructFieldAttr : LLVM_Attr<"TBAAStructField", "tbaa_struct_field"> {
+  let parameters = (ins
+    "TBAANodeAttr":$typeDesc,
+    "int64_t":$offset,
+    "int64_t":$size
+  );
+  let assemblyFormat = "`<` struct(params) `>`";
----------------
gysit wrote:

Can you use let description / let summary to provide some doc/examples for the relevant attributes. 

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


More information about the Mlir-commits mailing list