llvm-project/mlir/unittests/IR
River Riddle 58e7bf78a3 [mlir] Add isa/dyn_cast support for dialect interfaces
This matches the same API usage as attributes/ops/types. For example:

```c++
Dialect *dialect = ...;

// Instead of this:
if (auto *interface = dialect->getRegisteredInterface<DialectInlinerInterface>())

// You can do this:
if (auto *interface = dyn_cast<DialectInlinerInterface>(dialect))
```

Differential Revision: https://reviews.llvm.org/D117859
2022-01-31 19:24:34 -08:00
..
AttributeTest.cpp Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
CMakeLists.txt [mlir][ir] OpRewritePattern should accept generatedNames 2021-12-10 19:35:05 +00:00
DialectTest.cpp [mlir] Add isa/dyn_cast support for dialect interfaces 2022-01-31 19:24:34 -08:00
InterfaceAttachmentTest.cpp Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
OperationSupportTest.cpp [mlir][NFC] Add a using for llvm::BitVector to LLVM.h 2022-01-26 21:37:23 -08:00
PatternMatchTest.cpp [mlir][ir] OpRewritePattern should accept generatedNames 2021-12-10 19:35:05 +00:00
ShapedTypeTest.cpp [mlir] Refactor ShapedType into an interface 2022-01-12 14:12:09 -08:00
SubElementInterfaceTest.cpp Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00