diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2023-10-31 21:48:42 +0300 |
---|---|---|
committer | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2023-10-31 21:50:18 +0300 |
commit | ae7b20b583fab1325d8b51fe5f2eaf612de8b95e (patch) | |
tree | e935df98913d468fc36f2c7df203209a1a9fdec7 /clang/lib/AST/JSONNodeDumper.cpp | |
parent | 1344b65c90507e2368a3d0678df9f179e8890665 (diff) | |
download | llvm-ae7b20b583fab1325d8b51fe5f2eaf612de8b95e.zip llvm-ae7b20b583fab1325d8b51fe5f2eaf612de8b95e.tar.gz llvm-ae7b20b583fab1325d8b51fe5f2eaf612de8b95e.tar.bz2 |
[clang][NFC] Refactor `VectorType::VectorKind`
This patch moves `VectorKind` to namespace scope, and make it complete at the point its bit-field is declared. It also converts it to a scoped enum.
Diffstat (limited to 'clang/lib/AST/JSONNodeDumper.cpp')
-rw-r--r-- | clang/lib/AST/JSONNodeDumper.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/lib/AST/JSONNodeDumper.cpp b/clang/lib/AST/JSONNodeDumper.cpp index 60598bd..abc3b27 100644 --- a/clang/lib/AST/JSONNodeDumper.cpp +++ b/clang/lib/AST/JSONNodeDumper.cpp @@ -677,30 +677,30 @@ void JSONNodeDumper::VisitDependentSizedExtVectorType( void JSONNodeDumper::VisitVectorType(const VectorType *VT) { JOS.attribute("numElements", VT->getNumElements()); switch (VT->getVectorKind()) { - case VectorType::GenericVector: + case VectorKind::Generic: break; - case VectorType::AltiVecVector: + case VectorKind::AltiVecVector: JOS.attribute("vectorKind", "altivec"); break; - case VectorType::AltiVecPixel: + case VectorKind::AltiVecPixel: JOS.attribute("vectorKind", "altivec pixel"); break; - case VectorType::AltiVecBool: + case VectorKind::AltiVecBool: JOS.attribute("vectorKind", "altivec bool"); break; - case VectorType::NeonVector: + case VectorKind::Neon: JOS.attribute("vectorKind", "neon"); break; - case VectorType::NeonPolyVector: + case VectorKind::NeonPoly: JOS.attribute("vectorKind", "neon poly"); break; - case VectorType::SveFixedLengthDataVector: + case VectorKind::SveFixedLengthData: JOS.attribute("vectorKind", "fixed-length sve data vector"); break; - case VectorType::SveFixedLengthPredicateVector: + case VectorKind::SveFixedLengthPredicate: JOS.attribute("vectorKind", "fixed-length sve predicate vector"); break; - case VectorType::RVVFixedLengthDataVector: + case VectorKind::RVVFixedLengthData: JOS.attribute("vectorKind", "fixed-length rvv data vector"); break; } |