File tree Expand file tree Collapse file tree 3 files changed +14
-30
lines changed Expand file tree Collapse file tree 3 files changed +14
-30
lines changed Original file line number Diff line number Diff line change 1616namespace mlir {
1717namespace vector {
1818
19+ // / A vector type containing at least one scalable dimension
1920class ScalableVectorType : public VectorType {
2021public:
2122 using VectorType::VectorType;
2223
23- static bool classof (Type type);
24+ static bool classof (Type type) {
25+ auto vecTy = llvm::dyn_cast<VectorType>(type);
26+ if (!vecTy)
27+ return false ;
28+ return vecTy.isScalable ();
29+ }
2430};
2531
32+ // / A vector type with no scalable dimensions
2633class FixedWidthVectorType : public VectorType {
2734public:
2835 using VectorType::VectorType;
29- static bool classof (Type type);
36+ static bool classof (Type type) {
37+ auto vecTy = llvm::dyn_cast<VectorType>(type);
38+ if (!vecTy)
39+ return false ;
40+ return !vecTy.isScalable ();
41+ }
3042};
3143
3244} // namespace vector
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ add_mlir_library(MLIRIR
4040 Unit.cpp
4141 Value .cpp
4242 ValueRange.cpp
43- VectorTypes.cpp
4443 Verifier.cpp
4544 Visitors.cpp
4645 ${pdl_src}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments