diff options
| author | Lei Zhang <antiagainst@google.com> | 2019-02-03 06:15:43 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 16:08:43 -0700 |
| commit | 8b75cc5741cafd479ac10bb152c3b80438355d55 (patch) | |
| tree | 57aac43e44e024d2e0e7623651272776310c3f65 /mlir/lib/Transforms/LoopTiling.cpp | |
| parent | 126ec14e2df3295488ac2332dc8a1faf2d4ef108 (diff) | |
| download | bcm5719-llvm-8b75cc5741cafd479ac10bb152c3b80438355d55.tar.gz bcm5719-llvm-8b75cc5741cafd479ac10bb152c3b80438355d55.zip | |
Define NumericAttr as the base class for BoolAttr, IntegerAttr, FloatAttr, and ElementsAttr
These attribute kinds are different from the rest in the sense that their types are defined
in MLIR's type hierarchy and we can build constant op out of them.
By defining this middle-level base class, we have a unified way to test and query the type
of these attributes, which will be useful when constructing constant ops of various dialects.
This CL also added asserts to reject non-NumericAttr in constant op's build() method.
PiperOrigin-RevId: 232188178
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
0 files changed, 0 insertions, 0 deletions

