llvm-capstone/mlir/tools/mlir-tblgen
Matthias Springer 8823e961f6
[mlir][ODS] Change get...Mutable to return OpOperand & for single operands (#66519)
The TableGen code generator now generates C++ code that returns a single
`OpOperand &` for `get...Mutable` of operands that are not variadic and
not optional. `OpOperand::set`/`assign` can be used to set a value (same
as `MutableOperandRange::assign`). This is safer than
`MutableOperandRange` because only single values (and no longer
`ValueRange`) can be assigned.

E.g.:
```
// Assignment of multiple values to non-variadic operand.
// Before: Compiles, but produces invalid op.
// After: Compilation error.
extractSliceOp.getSourceMutable().assign({v1, v2});
```
2023-10-04 08:35:40 +02:00
..
AttrOrTypeDefGen.cpp Improve MLIR Attribute::get() method efficiency by reducing the amount of argument copies (#68067) 2023-10-03 18:07:46 -07:00
AttrOrTypeFormatGen.cpp [mlir][ods] Support using custom directives as first optional group element 2023-08-31 03:20:54 +00:00
AttrOrTypeFormatGen.h
BytecodeDialectGen.cpp [mlir][bytecodegen] Don't emit empty case (NFC) 2023-06-07 11:15:06 -07:00
CMakeLists.txt [mlir] python enum bindings generator 2023-07-31 15:42:56 +00:00
DialectGen.cpp [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00
DialectGenUtilities.h
DirectiveCommonGen.cpp
DocGenUtilities.h [MLIR][Doc] Also print summarys for passes on a newline 2023-06-13 09:26:11 +02:00
EnumPythonBindingGen.cpp [mlir][python bindings] generate all the enums 2023-08-23 15:03:55 -05:00
EnumsGen.cpp [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00
FormatGen.cpp [mlir][ods] Support using custom directives as first optional group element 2023-08-31 03:20:54 +00:00
FormatGen.h [mlir][ODS] Add support for passing properties to custom 2023-07-13 09:02:55 +02:00
LLVMIRConversionGen.cpp [mlir][llvm] Add debug label intrinsic 2023-06-29 06:31:13 +00:00
LLVMIRIntrinsicGen.cpp [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00
mlir-tblgen.cpp
OpClass.cpp [ODS] Extra Concrete Declarations and Definitions under Traits 2023-07-12 08:46:19 -07:00
OpClass.h [ODS] Extra Concrete Declarations and Definitions under Traits 2023-07-12 08:46:19 -07:00
OpDefinitionsGen.cpp [mlir][ODS] Change get...Mutable to return OpOperand & for single operands (#66519) 2023-10-04 08:35:40 +02:00
OpDocGen.cpp [mlir][docgen] Display full attribute descriptions in expandable regions (#67009) 2023-09-27 12:22:24 +01:00
OpFormatGen.cpp [mlir][ods] Support using custom directives as first optional group element 2023-08-31 03:20:54 +00:00
OpFormatGen.h
OpGenHelpers.cpp [mlir][python bindings] generate all the enums 2023-08-23 15:03:55 -05:00
OpGenHelpers.h [mlir][python bindings] generate all the enums 2023-08-23 15:03:55 -05:00
OpInterfacesGen.cpp [mlir] Support null interface to base conversion (#65988) 2023-09-12 08:42:47 +02:00
OpPythonBindingGen.cpp [mlir][python bindings] generate all the enums 2023-08-23 15:03:55 -05:00
PassCAPIGen.cpp
PassDocGen.cpp [MLIR][Doc] Also print summarys for passes on a newline 2023-06-13 09:26:11 +02:00
PassGen.cpp
RewriterGen.cpp [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00
SPIRVUtilsGen.cpp [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00