aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFehr Mathieu <mathieu.fehr@gmail.com>2024-01-18 16:31:40 +0000
committerGitHub <noreply@github.com>2024-01-18 16:31:40 +0000
commit914cfa41385606fe81c3afd296a6ca3ab975a97d (patch)
treeacb281fa32448bc4a70645f2b5293e94c2a4a7a2 /clang/lib/Frontend/CompilerInvocation.cpp
parentd124b0224241f58847f06eb588685dc88bb627a0 (diff)
downloadllvm-914cfa41385606fe81c3afd296a6ca3ab975a97d.zip
llvm-914cfa41385606fe81c3afd296a6ca3ab975a97d.tar.gz
llvm-914cfa41385606fe81c3afd296a6ca3ab975a97d.tar.bz2
[mlir][irdl] Add `irdl.base` op (#76400)
The `irdl.base` op represent an attribute constraint that will check that the base of a type or attribute is the expected one (e.g. `IntegerType`) . Example: ```mlir irdl.dialect @cmath { irdl.type @complex { %0 = irdl.base "!builtin.integer" irdl.parameters(%0) } irdl.type @complex_wrapper { %0 = irdl.base @complex irdl.parameters(%0) } } ``` The above program defines a `cmath.complex` type that expects a single parameter, which is a type with base name `builtin.integer`, which is the name of an `IntegerType` type. It also defines a `cmath.complex_wrapper` type that expects a single parameter, which is a type of base type `cmath.complex`.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions