diff options
| author | Lei Zhang <antiagainst@google.com> | 2019-04-04 04:29:58 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-04-05 07:40:31 -0700 |
| commit | 3c833344c858ae8af38fbd6f20ce9f07a685c15f (patch) | |
| tree | 6540235bee97ecb8c85384320cbec87cac2267a4 /mlir/lib/Transforms/LoopTiling.cpp | |
| parent | 8b790434e55c44367cefa46657f8ab4425374b9c (diff) | |
| download | bcm5719-llvm-3c833344c858ae8af38fbd6f20ce9f07a685c15f.tar.gz bcm5719-llvm-3c833344c858ae8af38fbd6f20ce9f07a685c15f.zip | |
[TableGen] Rework verifier generation and error messages
Previously we bundle the existence check and the MLIR attribute kind check
in one call. Further constraints (like element bitwidth) have to be split
into following checks. That is not a nice separation given that we have more
checks for constraints. Instead, this CL changes to generate a local variable
for every attribute, check its existence first, then check the constraints.
Creating a local variable for each attribute also avoids querying it multiple
times using the raw getAttr() API. This is a win for both performance the
readability of the generated code.
This CL also changed the error message to be more greppable by delimiting
the error message from constraints with boilerplate part with colon.
--
PiperOrigin-RevId: 241906132
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
0 files changed, 0 insertions, 0 deletions

