summaryrefslogtreecommitdiffstats
path: root/mlir/tools/mlir-tblgen/RewriterGen.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Match multiple pattern nodes as input to rewrite.Jacques Pienaar2019-03-291-37/+127
| | | | | | | | | | * Allow multi input node patterns in the rewrite; * Use number of nodes matched as benefit; * Rewrite relu(add(...)) matching using the new pattern; To allow for undefined ops, do string compare - will address soon! PiperOrigin-RevId: 227225425
* Add convenience wrapper for operator in tblgenJacques Pienaar2019-03-291-132/+163
| | | | | | Add convenience wrapper to make it easier to iterate over attributes and operands of operator defined in TableGen file. Use this class in RewriterGen (not used in the op generator yet, will do shortly). Change the RewriterGen to pass the bound arguments explicitly, this is in preparation for multi-op matching. PiperOrigin-RevId: 227156748
* Merge Operation into OperationInst and standardize nomenclature aroundChris Lattner2019-03-291-2/+2
| | | | | | | | OperationInst. This is a big mechanical patch. This is step 16/n towards merging instructions and statements, NFC. PiperOrigin-RevId: 227093712
* Merge mlir-op-gen and mlir-rewriter-gen into mlir-tblgen.Jacques Pienaar2019-03-291-0/+188
Unify the two tools before factoring out helper classes. PiperOrigin-RevId: 227015406
OpenPOWER on IntegriCloud