summaryrefslogtreecommitdiffstats
path: root/mlir/lib/TableGen/Argument.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Adjust License.txt file to use the LLVM licenseMehdi Amini2019-12-231-13/+4
| | | | PiperOrigin-RevId: 286906740
* Remove unnecessary C++ specifier in CPP files. NFC.Jacques Pienaar2019-05-201-1/+1
| | | | | | | | These are only required in .h files to disambiguate between C and C++ header files. -- PiperOrigin-RevId: 248219135
* [TableGen] Support multiple variadic operands/resultsLei Zhang2019-05-061-0/+4
| | | | | | | | | | | | | | | | Certain ops can have multiple variadic operands/results, e.g., `tf.DynamicStitch`. Even if an op has only one variadic operand/result, it is not necessarily the very last one, e.g., `tf.RaggedGather`. This CL enhances TableGen subsystem to be able to represent such cases. In order to deduce the operand/result value range for each variadic operand, currently we only support variadic operands/results all of the same size. So two new traits, `SameVariadicOperandSize` and `SameVariadicResultSize` are introduced. -- PiperOrigin-RevId: 245310628
* NFC: Simplify named attribute in TableGen generatorsSmit Hinsu2019-04-181-9/+0
| | | | | | | | | | | Now, op attribute names don't have '.' in their names so the special handling for it can be removed. Attributes for functions still have dialect prefix with '.' as separator but TableGen does not deal with functions. TESTED with existing unit tests -- PiperOrigin-RevId: 243287462
* Change Value to NamedTypeConstraint and use TypeConstraint.Jacques Pienaar2019-03-291-2/+2
| | | | | | Previously Value was a pair of name & Type, but for operands/result a TypeConstraint rather then a Type is specified. Update C++ side to match declarative side. PiperOrigin-RevId: 238984799
* Change the TensorFlow attribute prefix from "tf$" to "tf." to match the ↵River Riddle2019-03-291-1/+1
| | | | | | specification of dialect attributes. This also fixes tblgen generation of dialect attributes that used the sugared name "tf$attr" as c++ identifiers. PiperOrigin-RevId: 236924392
* [TableGen] Rename Operand to Value to prepare sharing between operand and resultLei Zhang2019-03-291-1/+1
| | | | | | | We specify op operands and results in TableGen op definition using the same syntax. They should be modelled similarly in TableGen driver wrapper classes. PiperOrigin-RevId: 234153332
* [tablegen] Use tblgen:: classes for NamedAttribute and Operand fieldsLei Zhang2019-03-291-8/+3
| | | | | | This is another step towards hiding raw TableGen API calls. PiperOrigin-RevId: 231580827
* Pull TableGen op argument definitions into their own filesLei Zhang2019-03-291-0/+39
PiperOrigin-RevId: 230923050
OpenPOWER on IntegriCloud