diff options
| author | Feng Liu <fengliuai@google.com> | 2018-10-19 09:07:58 -0700 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 13:33:41 -0700 |
| commit | 34927e2474bfec5c3f50a9694432816096f2df1c (patch) | |
| tree | 2c52801aa596509193ae422a05c9a33dfcbd7de3 /mlir/lib/Analysis/AffineAnalysis.cpp | |
| parent | 8c7478d10ce588c562992415bcaf21287b7f4686 (diff) | |
| download | bcm5719-llvm-34927e2474bfec5c3f50a9694432816096f2df1c.tar.gz bcm5719-llvm-34927e2474bfec5c3f50a9694432816096f2df1c.zip | |
Rename Operation::getAs to Operation::dyn_cast
Also rename Operation::is to Operation::isa
Introduce Operation::cast
All of these are for consistency with global dyn_cast/cast/isa operators.
PiperOrigin-RevId: 217878786
Diffstat (limited to 'mlir/lib/Analysis/AffineAnalysis.cpp')
| -rw-r--r-- | mlir/lib/Analysis/AffineAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Analysis/AffineAnalysis.cpp b/mlir/lib/Analysis/AffineAnalysis.cpp index ee1641b575e..a16997c08d3 100644 --- a/mlir/lib/Analysis/AffineAnalysis.cpp +++ b/mlir/lib/Analysis/AffineAnalysis.cpp @@ -322,11 +322,11 @@ void mlir::getReachableAffineApplyOps( auto *opStmt = state.value->getDefiningStmt(); // Note: getDefiningStmt will return nullptr if the operand is not an // OperationStmt (i.e. ForStmt), which is a terminator for the search. - if (opStmt == nullptr || !opStmt->is<AffineApplyOp>()) { + if (opStmt == nullptr || !opStmt->isa<AffineApplyOp>()) { worklist.pop_back(); continue; } - if (auto affineApplyOp = opStmt->getAs<AffineApplyOp>()) { + if (auto affineApplyOp = opStmt->dyn_cast<AffineApplyOp>()) { if (state.operandIndex == 0) { // Pre-Visit: Add 'opStmt' to reachable sequence. affineApplyOps.push_back(opStmt); |

