diff options
| author | Chris Lattner <clattner@google.com> | 2018-12-27 15:27:05 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:40:51 -0700 |
| commit | 4fbcd1ac5234a9c5a1049d0b4fb3981626900150 (patch) | |
| tree | 09501f965a9d93806a3762b56c9679388bf2cddf /mlir/lib | |
| parent | 294687ef590baa3d160f2820f2fcaa5509288e1f (diff) | |
| download | bcm5719-llvm-4fbcd1ac5234a9c5a1049d0b4fb3981626900150.tar.gz bcm5719-llvm-4fbcd1ac5234a9c5a1049d0b4fb3981626900150.zip | |
Minor renamings: Trim the "Stmt" prefix off
StmtSuccessorIterator/StmtSuccessorIterator, and rename and move the
CFGFunctionViewGraph pass to ViewFunctionGraph.
This is step 13/n towards merging instructions and statements, NFC.
PiperOrigin-RevId: 227069438
Diffstat (limited to 'mlir/lib')
| -rw-r--r-- | mlir/lib/Transforms/Utils/Utils.cpp | 7 | ||||
| -rw-r--r-- | mlir/lib/Transforms/ViewFunctionGraph.cpp (renamed from mlir/lib/Transforms/CFGFunctionViewGraph.cpp) | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/mlir/lib/Transforms/Utils/Utils.cpp b/mlir/lib/Transforms/Utils/Utils.cpp index 624a8a758b5..2bc1be1b785 100644 --- a/mlir/lib/Transforms/Utils/Utils.cpp +++ b/mlir/lib/Transforms/Utils/Utils.cpp @@ -60,7 +60,7 @@ static bool isMemRefDereferencingOp(const Operation &op) { // extra operands, note that 'indexRemap' would just be applied to the existing // indices (%i, %j). // -// TODO(mlir-team): extend this for Value/ CFGFunctions. Can also be easily +// TODO(mlir-team): extend this for CFG Functions. Can also be easily // extended to add additional indices at any position. bool mlir::replaceAllMemRefUsesWith(const Value *oldMemRef, Value *newMemRef, ArrayRef<Value *> extraIndices, @@ -313,9 +313,8 @@ OperationStmt *mlir::createAffineComputationSlice(OperationStmt *opStmt) { } void mlir::forwardSubstitute(OpPointer<AffineApplyOp> affineApplyOp) { - if (affineApplyOp->getOperation()->getOperationFunction()->getKind() != - Function::Kind::MLFunc) { - // TODO: Support forward substitution for CFGFunctions. + if (!affineApplyOp->getOperation()->getOperationFunction()->isML()) { + // TODO: Support forward substitution for CFG style functions. return; } auto *opStmt = cast<OperationStmt>(affineApplyOp->getOperation()); diff --git a/mlir/lib/Transforms/CFGFunctionViewGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp index 0a2aecfca54..9c1614acb95 100644 --- a/mlir/lib/Transforms/CFGFunctionViewGraph.cpp +++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp @@ -1,4 +1,4 @@ -//===- CFGFunctionViewGraph.cpp - View/write graphviz graphs --------------===// +//===- ViewFunctionGraph.cpp - View/write graphviz graphs -----------------===// // // Copyright 2019 The MLIR Authors. // @@ -15,8 +15,9 @@ // limitations under the License. // ============================================================================= -#include "mlir/Transforms/CFGFunctionViewGraph.h" +#include "mlir/Transforms/ViewFunctionGraph.h" #include "mlir/IR/FunctionGraphTraits.h" +#include "mlir/Pass.h" using namespace mlir; |

