From 34927e2474bfec5c3f50a9694432816096f2df1c Mon Sep 17 00:00:00 2001 From: Feng Liu Date: Fri, 19 Oct 2018 09:07:58 -0700 Subject: 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 --- mlir/lib/Analysis/AffineAnalysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mlir/lib/Analysis/AffineAnalysis.cpp') 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()) { + if (opStmt == nullptr || !opStmt->isa()) { worklist.pop_back(); continue; } - if (auto affineApplyOp = opStmt->getAs()) { + if (auto affineApplyOp = opStmt->dyn_cast()) { if (state.operandIndex == 0) { // Pre-Visit: Add 'opStmt' to reachable sequence. affineApplyOps.push_back(opStmt); -- cgit v1.2.3