-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyright: fix custom dialects snax, snax_stream, tsl (#326)
* pyright: fix custom dialects snax, snax_stream, tsl * undo parser change * undo breaking change
- Loading branch information
1 parent
43059c9
commit dd5510b
Showing
6 changed files
with
37 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
// RUN: XDSL_VERIFY_DIAG | ||
|
||
"builtin.module"() ({ | ||
%0 = arith.constant 45 : i32 | ||
%1 = "snax.alloc"(%0) <{"memory_space" = 1 : i32, "alignment" = 64 : i32}> : (i32) -> !llvm.struct<(i32)> | ||
%0 = arith.constant 45 : index | ||
%1 = "snax.alloc"(%0) <{"memory_space" = 1 : i32, "alignment" = 64 : i32}> : (index) -> !llvm.struct<(i32)> | ||
}) : () -> () | ||
|
||
// CHECK: Operation does not verify: Invalid Memref Descriptor: Expected first element to be LLVMPointerType | ||
|
||
// ----- | ||
|
||
"builtin.module"() ({ | ||
%0 = arith.constant 45 : i32 | ||
%1 = "snax.alloc"(%0) <{"memory_space" = 2 : i32, "alignment" = 64 : i32}> : (i32) -> !llvm.struct<(!llvm.ptr, !llvm.ptr, !llvm.array<2 x i32>, !llvm.array<2 x i32>)> | ||
%0 = arith.constant 45 : index | ||
%1 = "snax.alloc"(%0) <{"memory_space" = 2 : i32, "alignment" = 64 : i32}> : (index) -> !llvm.struct<(!llvm.ptr, !llvm.ptr, !llvm.array<2 x i32>, !llvm.array<2 x i32>)> | ||
}) : () -> () | ||
|
||
// CHECK: Operation does not verify: Invalid Memref Descriptor: Expected third element to be IntegerType | ||
|
||
// ----- | ||
|
||
"builtin.module"() ({ | ||
%0 = arith.constant 45 : i32 | ||
%1 = "snax.alloc"(%0) <{"memory_space" = 2 : i32, "alignment" = 64 : i32}> : (i32) -> !llvm.struct<(!llvm.ptr, !llvm.ptr, i32, !llvm.array<1 x i32>, !llvm.array<2 x i32>)> | ||
%0 = arith.constant 45 : index | ||
%1 = "snax.alloc"(%0) <{"memory_space" = 2 : i32, "alignment" = 64 : i32}> : (index) -> !llvm.struct<(!llvm.ptr, !llvm.ptr, i32, !llvm.array<1 x i32>, !llvm.array<2 x i32>)> | ||
}) : () -> () | ||
|
||
// CHECK: Operation does not verify: Invalid Memref Descriptor: Expected shape and strides to have the same dimension |