This revision adds support for specifying operands or results as "optional". This is a special case of variadic where the number of elements is either 0 or 1. Operands and results of this kind will have accessors generated using Value instead of the range types, making it more natural to interface with.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice! Thnks River!
mlir/docs/OpDefinitions.md | ||
---|---|---|
225 | nit: space before ( | |
228 | Also mention AttrSizedOperandSegments? | |
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp | ||
1103 | Nit: else would be better here. We don't have a large body of code following this anyway. | |
mlir/tools/mlir-tblgen/OpFormatGen.cpp | ||
488 | remove trailing s |
nit: space before (