diff --git a/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUFoldVectorContractUnitDims.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUFoldVectorContractUnitDims.cpp index 12388c2dd8f18..1096693c693d4 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUFoldVectorContractUnitDims.cpp +++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/LLVMCPUFoldVectorContractUnitDims.cpp @@ -54,7 +54,7 @@ dropFoldableUnitIndices(PatternRewriter &rewriter, SmallVector dstShape; SmallVector dstExpr; for (const auto &expr : enumerate(map.getResults())) { - if (auto dimExpr = expr.value().dyn_cast()) { + if (auto dimExpr = llvm::dyn_cast(expr.value())) { if (!foldableDims.contains(dimExpr.getPosition())) { dstShape.push_back(contractShape[dimExpr.getPosition()]); unsigned numSkipped = 0; diff --git a/compiler/src/iree/compiler/Codegen/LLVMCPU/SetSpecialTilingConfigs.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/SetSpecialTilingConfigs.cpp index 789d67a71351d..0b016bd947ebd 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMCPU/SetSpecialTilingConfigs.cpp +++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/SetSpecialTilingConfigs.cpp @@ -37,7 +37,7 @@ static void setTileSizes(linalg::GenericOp intMatmul, int out = 2; auto hasDim = [&](int mapIdx, int dimIdx) -> bool { return llvm::any_of(maps[mapIdx].getResults(), [&](AffineExpr res) { - auto expr = res.dyn_cast(); + auto expr = llvm::dyn_cast(res); return expr && expr.getPosition() == dimIdx; }); }; diff --git a/compiler/src/iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp b/compiler/src/iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp index 04a3aa7e7e769..0514e53cf8cf3 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp +++ b/compiler/src/iree/compiler/Codegen/LLVMCPU/VectorContractCustomKernels.cpp @@ -147,7 +147,7 @@ static bool isVectorTimesMatrixTransposed(vector::ContractionOp contractionOp, } for (int r = 0; r < expectedResults.size(); ++r) { int actualMapResult = - map.getResults()[r].cast().getPosition(); + llvm::cast(map.getResults()[r]).getPosition(); if (actualMapResult != expectedMapResults[m][r]) { return false; } diff --git a/compiler/src/iree/compiler/Preprocessing/Common/ConvertConvToChannelsLast.cpp b/compiler/src/iree/compiler/Preprocessing/Common/ConvertConvToChannelsLast.cpp index 4a8b833bfb1a6..9c40792456a43 100644 --- a/compiler/src/iree/compiler/Preprocessing/Common/ConvertConvToChannelsLast.cpp +++ b/compiler/src/iree/compiler/Preprocessing/Common/ConvertConvToChannelsLast.cpp @@ -260,11 +260,11 @@ static TransposeIndices collectChannelTransposeIndices( AffineMap map, SmallVector> transposeDimTargets) { SmallVector channelIndices(transposeDimTargets.size()); for (auto [index, result] : llvm::enumerate(map.getResults())) { - if (result.isa()) { + if (llvm::isa(result)) { for (auto [channelVec, dimCategory] : llvm::zip_equal(channelIndices, transposeDimTargets)) { if (llvm::is_contained(dimCategory, - result.cast().getPosition())) { + llvm::cast(result).getPosition())) { channelVec.push_back(index); break; }