llvm-project/mlir
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
..
benchmark/python [mlir][bufferize] Clean up remaining references to `tensor-constant-bufferize` 2022-01-31 05:02:11 +09:00
cmake/modules [MLIR] Workaround for python detection problems. 2022-01-27 13:32:29 -08:00
docs [mlir] Add isa/dyn_cast support for dialect interfaces 2022-01-31 19:24:34 -08:00
examples Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
include [mlir] Add isa/dyn_cast support for dialect interfaces 2022-01-31 19:24:34 -08:00
lib [mlir] Add isa/dyn_cast support for dialect interfaces 2022-01-31 19:24:34 -08:00
python [mlir][vector][NFC] Split into IR, Transforms and Utils 2022-01-31 19:17:09 +09:00
test [async] Get the number of worker threads from the runtime. 2022-01-31 12:06:01 -08:00
tools Apply clang-tidy fixes for llvm-include-order in AttrOrTypeFormatGen.cpp (NFC) 2022-01-30 19:49:23 +00:00
unittests [mlir] Add isa/dyn_cast support for dialect interfaces 2022-01-31 19:24:34 -08:00
utils [mlir] Set up boilerplate build for MLIR benchmarks 2022-01-27 21:38:15 +00:00
.clang-format
.clang-tidy
CMakeLists.txt [mlir] Set up boilerplate build for MLIR benchmarks 2022-01-27 21:38:15 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.