summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopTiling.cpp
diff options
context:
space:
mode:
authorLei Zhang <antiagainst@google.com>2019-02-03 06:15:43 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:08:43 -0700
commit8b75cc5741cafd479ac10bb152c3b80438355d55 (patch)
tree57aac43e44e024d2e0e7623651272776310c3f65 /mlir/lib/Transforms/LoopTiling.cpp
parent126ec14e2df3295488ac2332dc8a1faf2d4ef108 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud