[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 14 10:50:33 PDT 2025


================
@@ -4689,6 +4704,7 @@ class FunctionType : public Type {
   struct alignas(void *) FunctionTypeArmAttributes {
     /// Any AArch64 SME ACLE type attributes that need to be propagated
     /// on declarations and function pointers.
+    LLVM_PREFERRED_TYPE(uint16_t)
----------------
AaronBallman wrote:

The preferred type attribute is for debugger behavior when the debugger would otherwise not show you helpful type information (e.g., the bit-field is `unsigned` but it holds an enumeration value). In this case, `AArch64SMETypeAttributes` might be more appropriate, but that enumeration is a bit mask and so maybe we don't need any preferred type at all? CC @Endilll for expertise on that.

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


More information about the cfe-commits mailing list