[Mlir-commits] [mlir] [llvm] [mlir] use TypeSize and uint64_t in DataLayout (PR #72874)
Tobias Gysi
llvmlistbot at llvm.org
Mon Nov 20 06:59:46 PST 2023
================
@@ -93,13 +93,22 @@ module attributes { dlti.dl_spec = #dlti.dl_spec<
// expected-error at below {{preferred alignment is expected to be at least as large as ABI alignment}}
module attributes { dlti.dl_spec = #dlti.dl_spec<
- #dlti.dl_entry<!llvm.ptr, dense<[64, 64, 32]> : vector<3xi32>>
+ #dlti.dl_entry<!llvm.ptr, dense<[64, 64, 32]> : vector<3xi64>>
>} {
func.func @pointer() {
return
}
}
+// -----
+
+// expected-error @below {{expected i64 parameters for '!llvm.ptr'}}
+module attributes { dlti.dl_spec = #dlti.dl_spec<
+ #dlti.dl_entry<!llvm.ptr, dense<[32, 32, 64]> : vector<3xi32>>
+>} {
+}
+
+
----------------
gysit wrote:
```suggestion
```
ultra nit: double newline
https://github.com/llvm/llvm-project/pull/72874
More information about the Mlir-commits
mailing list