llvm-project/mlir/lib
Feng Liu a9d3e5ee38 Adds ConstantFoldHook registry in MLIRContext
This reverts the previous method which needs to create a new dialect with the
constant fold hook from TensorFlow. This new method uses a function object in
dialect to store the constant fold hook. Once a hook is registered to the
dialect, this function object will be assigned when the dialect is added to the
MLIRContext.

For the operations which are not registered, a new method getRegisteredDialects
is added to the MLIRContext to query the dialects which matches their op name
prefixes.

PiperOrigin-RevId: 222310149
2019-03-29 14:04:34 -07:00
..
Analysis [MLIR][VectorAnalysis] Add a VectorAnalysis and standalone tests 2019-03-29 14:02:17 -07:00
IR Adds ConstantFoldHook registry in MLIRContext 2019-03-29 14:04:34 -07:00
Parser Merge OperationInst functionality into Instruction. 2019-03-29 13:59:37 -07:00
StandardOps Updates to transformation/analysis passes/utilities. Update DMA generation pass 2019-03-29 14:00:51 -07:00
Transforms [MLIR][Vectorize] Refactor Vectorize use-def propagation. 2019-03-29 14:03:50 -07:00