[llvm-branch-commits] [mlir] [mlir][LLVM] Delete `LLVMFixedVectorType` and `LLVMScalableVectorType` (PR #133286)

Christian Ulmann via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 31 23:00:28 PDT 2025


================
@@ -897,8 +821,7 @@ bool mlir::LLVM::isCompatibleVectorType(Type type) {
 
 Type mlir::LLVM::getVectorElementType(Type type) {
   return llvm::TypeSwitch<Type, Type>(type)
-      .Case<LLVMFixedVectorType, LLVMScalableVectorType, VectorType>(
-          [](auto ty) { return ty.getElementType(); })
+      .Case<VectorType>([](auto ty) { return ty.getElementType(); })
----------------
Dinistro wrote:

```suggestion
      .Case([](VectorType ty) { return ty.getElementType(); })
```
Nit: Or maybe remove the switch altogether? 

https://github.com/llvm/llvm-project/pull/133286


More information about the llvm-branch-commits mailing list