summaryrefslogtreecommitdiffstats
path: root/mlir/include
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2019-12-16 11:35:29 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-12-16 11:36:02 -0800
commited749b7689702587d369e241c596808f5d6b92cb (patch)
tree01ddb77d3ac0b79a7235c9f2cad39026a97c74ff /mlir/include
parent3ae56c4135025e5186e289be446246cdc719a5b1 (diff)
downloadbcm5719-llvm-ed749b7689702587d369e241c596808f5d6b92cb.tar.gz
bcm5719-llvm-ed749b7689702587d369e241c596808f5d6b92cb.zip
Make "LowerToCFG" an operation pass
The conversion from the Loops dialect to the Standard dialect, also known as loop-to-cfg lowering, has been historically a function pass. It can be required on non-Standard function Ops, in particular the recently introduced GPU functions. Make the conversion an operation pass instead of a function pass. PiperOrigin-RevId: 285814560
Diffstat (limited to 'mlir/include')
-rw-r--r--mlir/include/mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/mlir/include/mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h b/mlir/include/mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h
index e44e723376f..095c9f470b3 100644
--- a/mlir/include/mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h
+++ b/mlir/include/mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h
@@ -22,10 +22,9 @@
#include <vector>
namespace mlir {
-class FuncOp;
struct LogicalResult;
class MLIRContext;
-template <typename T> class OpPassBase;
+class Pass;
class RewritePattern;
// Owning list of rewriting patterns.
@@ -38,7 +37,7 @@ void populateLoopToStdConversionPatterns(OwningRewritePatternList &patterns,
MLIRContext *ctx);
/// Creates a pass to convert loop.for, loop.if and loop.terminator ops to CFG.
-std::unique_ptr<OpPassBase<FuncOp>> createLowerToCFGPass();
+std::unique_ptr<Pass> createLowerToCFGPass();
} // namespace mlir
OpenPOWER on IntegriCloud