diff options
| author | Christian Sigg <chsigg@users.noreply.github.com> | 2024-04-19 15:58:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 15:58:27 +0200 |
| commit | a5757c5b65f1894de16f549212b1c37793312703 (patch) | |
| tree | f4993dfc1218684abaa150123550e321f8131e50 /mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp | |
| parent | ce2f6423f0168e945b6f29aa40a3054c1abe22a9 (diff) | |
Switch member calls to `isa/dyn_cast/cast/...` to free function calls. (#89356)
This change cleans up call sites. Next step is to mark the member
functions deprecated.
See https://mlir.llvm.org/deprecation and
https://discourse.llvm.org/t/preferred-casting-style-going-forward.
Diffstat (limited to 'mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp')
| -rw-r--r-- | mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp b/mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp index c8bee817213d..e17fe12b9088 100644 --- a/mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp +++ b/mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp @@ -25,7 +25,7 @@ namespace { /// according to LLVM's encoding: /// https://lists.llvm.org/pipermail/llvm-dev/2020-October/145850.html static std::pair<unsigned, VectorType> legalizeVectorType(const Type &type) { - VectorType vt = type.cast<VectorType>(); + VectorType vt = cast<VectorType>(type); // To simplify test pass, avoid multi-dimensional vectors. if (!vt || vt.getRank() != 1) return {0, nullptr}; @@ -39,7 +39,7 @@ static std::pair<unsigned, VectorType> legalizeVectorType(const Type &type) { sew = 32; else if (eltTy.isF64()) sew = 64; - else if (auto intTy = eltTy.dyn_cast<IntegerType>()) + else if (auto intTy = dyn_cast<IntegerType>(eltTy)) sew = intTy.getWidth(); else return {0, nullptr}; |
