https://github.com/sdesmalen-arm created https://github.com/llvm/llvm-project/pull/95982
Depending on the platform, the parameter for __arm_get_sme_state requires a `unsigned long long*` instead of a `unsigned long*`. >From ASTContext.cpp: case 'W': // This modifier represents int64 type. >From a41a740d5e77303febbd4e0cb4d8def2010e32ed Mon Sep 17 00:00:00 2001 From: Sander de Smalen <sander.desma...@arm.com> Date: Tue, 18 Jun 2024 16:04:08 +0000 Subject: [PATCH] [Clang][AArch64] Use 'uint64_t*' for _arm_get_sme_state builtin. Depending on the platform, the parameter for __arm_get_sme_state requires a `unsigned long long*` instead of a `unsigned long*`. >From ASTContext.cpp: case 'W': // This modifier represents int64 type. --- clang/include/clang/Basic/BuiltinsAArch64.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Basic/BuiltinsAArch64.def b/clang/include/clang/Basic/BuiltinsAArch64.def index 5f53c98167dfb..5fb199b1b2b03 100644 --- a/clang/include/clang/Basic/BuiltinsAArch64.def +++ b/clang/include/clang/Basic/BuiltinsAArch64.def @@ -72,7 +72,7 @@ TARGET_BUILTIN(__builtin_arm_stg, "vv*", "t", "mte") TARGET_BUILTIN(__builtin_arm_subp, "Uiv*v*", "t", "mte") // SME state function -BUILTIN(__builtin_arm_get_sme_state, "vULi*ULi*", "n") +BUILTIN(__builtin_arm_get_sme_state, "vWUi*WUi*", "n") // Memory Operations TARGET_BUILTIN(__builtin_arm_mops_memset_tag, "v*v*iz", "", "mte,mops") _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits