[clang] [CLANG][AArch64]Add Neon vectors for mfloat8_t (PR #99865)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 03:00:00 PDT 2024


================
@@ -2580,6 +2580,8 @@ void NeonEmitter::runVectorTypes(raw_ostream &OS) {
   OS << "typedef __fp16 float16_t;\n";
 
   OS << "#if defined(__aarch64__) || defined(__arm64ec__)\n";
+  OS << "typedef __MFloat8x8_t mfloat8x8_t;\n";
+  OS << "typedef __MFloat8x16_t mfloat8x16_t;\n";
----------------
CarolineConcatto wrote:

So if we dont want to protect that to 64 bits architecture, then I have to change Sema and ASTContext to introduce the neon type for other architectures that are not 64 bits. Otherwise they fail, because the typedef and the builtin are  only introduced/added when Target.hasAArch64SVETypes.

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


More information about the cfe-commits mailing list