[all-commits] [llvm/llvm-project] e276dc: [mlir][arith] Refine the verifier for arith.consta...
Andrzej Warzyński via All-commits
all-commits at lists.llvm.org
Mon Apr 8 13:22:21 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e276dcec173bc0123444c162c3becb2354382248
https://github.com/llvm/llvm-project/commit/e276dcec173bc0123444c162c3becb2354382248
Author: Andrzej Warzyński <andrzej.warzynski at arm.com>
Date: 2024-04-08 (Mon, 08 Apr 2024)
Changed paths:
M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
M mlir/test/Dialect/Arith/invalid.mlir
M mlir/test/Dialect/Vector/linearize.mlir
Log Message:
-----------
[mlir][arith] Refine the verifier for arith.constant (#87999)
Disallows initialization of scalable vectors with an attribute of
arbitrary values, e.g.:
```mlir
%c = arith.constant dense<[0, 1]> : vector<[2] x i32>
```
Initialization using vector splats remains allowed (i.e. when all the
init values are identical):
```mlir
%c = arith.constant dense<[1, 1]> : vector<[2] x i32>
```
Note: This is a re-upload of #86178
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list