diff options
author | Mathieu Fehr <mathieu.fehr@gmail.com> | 2021-09-13 06:22:19 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2021-09-13 06:26:45 +0000 |
commit | 802bf02a738e091d5bf22c03e83204a38d2c7950 (patch) | |
tree | b6c771263d713182187857511a312feb33f928cb /llvm/lib/Object/XCOFFObjectFile.cpp | |
parent | 7fb2394a4f362aff4282af8486b7352e720c32ab (diff) | |
download | llvm-802bf02a738e091d5bf22c03e83204a38d2c7950.zip llvm-802bf02a738e091d5bf22c03e83204a38d2c7950.tar.gz llvm-802bf02a738e091d5bf22c03e83204a38d2c7950.tar.bz2 |
[mlir] Allows to query traits from types and attributes
Types and attributes now have a `hasTrait` function that allow users to check
if a type defines a trait.
Also, AbstractType and AbstractAttribute has now a `hasTraitFn` field to carry
the implementation of the `hasTrait` function of the concrete type or attribute.
This patch also adds the remaining functions to access type and attribute traits
in TableGen.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D105202
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions