aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMaheshRavishankar <ravishankarm@google.com>2021-01-08 10:52:26 -0800
committerMaheshRavishankar <ravishankarm@google.com>2021-01-08 10:54:46 -0800
commitec13f6c3e56952c94909a36a590c679a6a57a046 (patch)
treeacd592135dd0509d04730aaf83a1756337cf0c43 /clang/lib/Frontend/CompilerInvocation.cpp
parentd9ce31ae7d1fc68de0ea1535fd25ef84e69aeb07 (diff)
downloadllvm-ec13f6c3e56952c94909a36a590c679a6a57a046.zip
llvm-ec13f6c3e56952c94909a36a590c679a6a57a046.tar.gz
llvm-ec13f6c3e56952c94909a36a590c679a6a57a046.tar.bz2
[mlir][Linalg] Add verification checks to disallow illegal reshape ops.
The existing verification of reshape ops in linalg (linalg.reshape and linalg.tensor_reshape) allows specification of illegal ops, where - A dynamic dimension is expanded into multiple dynamic dimensions. This is ill-specified. - A static dimension is expanded into dynamic dimension or viceversa, - The product of extents of the static dimensions in the expanded type doesnt match the static dimension of the collapsed type. Making all of these illegal. This also implies that some pessimization in canonicalization due to incomplete semantics of the operation can be dropped. Differential Revision: https://reviews.llvm.org/D93724
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions