This commit adds support for processing tablegen include files, and importing various information from ODS. This includes operations, attribute+type constraints, attribute/operation/type interfaces, etc. This will allow for much more robust tooling, and also allows for referencing ODS constructs directly within PDLL (imported interfaces can be used as constraints, operation result names can be used for member access, etc). Differential Revision: https://reviews.llvm.org/D119900
10 lines
202 B
TableGen
10 lines
202 B
TableGen
include "mlir/IR/OpBase.td"
|
|
|
|
def Test_Dialect : Dialect {
|
|
let name = "test";
|
|
}
|
|
|
|
def OpWithResults : Op<Test_Dialect, "with_results"> {
|
|
let results = (outs I64:$result, Variadic<I64>:$var_result);
|
|
}
|