================ @@ -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"> ---------------- andykaylor wrote:
Most of the AST vector kinds are only used in Sema. These are the only ones needed in codegen for the targets that CIR currently supports. We'll need the RISC-V kinds later, but not much work has been started to enable RISC-V in CIR. If the other kinds would be useful for any sort of analysis or optimization, I'd be happy to add them, but for the purposes of IR generation, even Neon vectors get treated as generic. https://github.com/llvm/llvm-project/pull/244303 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
