================ @@ -499,6 +499,16 @@ def CIR_ArrayType : CIR_Type<"Array", "array", [ // VectorType //===----------------------------------------------------------------------===// +// FIXME: This corresponds to the clang::VectorKind enum. We will eventually +// need to match more (though possibly not all) of the entries there. It +// would be nice to have a way to generate both from a common source or +// at least tablegen the conversion handling. +def CIR_VectorKind : CIR_I32Enum<"VectorKind", "vector kind", [ + I32EnumCase<"Generic", 0, "generic">, + I32EnumCase<"SVEData", 1, "sve_data">, + I32EnumCase<"SVEPredicate", 2, "sve_predicate"> ---------------- MacDue wrote:
I mean the enums values you have added here don't match the ones from the AST for AArch64. Looking at the AST enum we have: ```c++ /// is ARM Neon vector Neon, /// is ARM Neon polynomial vector NeonPoly, /// is AArch64 SVE fixed-length data vector SveFixedLengthData, /// is AArch64 SVE fixed-length predicate vector SveFixedLengthPredicate, ``` I only see SVE kinds for _fixed-length_ vectors (which are only used for the fixed-length attribute types). The kinds you've added here are just "sve_data" and "sve_predicate" which sounds more general (as in covering scalable vectors) than the original AST enum. I think (though I'd have to check, this is just from vague memory), we only have these kinds as they're used to map fixed-length types to scalable vectors (or something like that), that'd otherwise map to a normal fixed-length vector. https://github.com/llvm/llvm-project/pull/244303 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
