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/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.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/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp')
| -rw-r--r-- | mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp index 8d733c5a8849..7ed3dea42b77 100644 --- a/mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp +++ b/mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp @@ -403,7 +403,7 @@ mlir::vector::castAwayContractionLeadingOneDim(vector::ContractionOp contractOp, // Such transposes do not materially effect the underlying vector and can // be omitted. EG: perm [1, 0, 2] applied to vector<1x1x8xi32> bool transposeNonOuterUnitDims = false; - auto operandShape = operands[it.index()].getType().cast<ShapedType>(); + auto operandShape = cast<ShapedType>(operands[it.index()].getType()); for (auto [index, dim] : llvm::enumerate(ArrayRef<int64_t>(perm).drop_back(1))) { if (dim != static_cast<int64_t>(index) && |
