[clang] [llvm] [LLVMAABI][AARCH64] Handle homogeneous aggregate return types (PR #218799)

Madhur Amilkanthwar via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 21:55:26 PDT 2026


================
@@ -112,8 +145,20 @@ enum class AArch64ABIKind {
   AAPCSSoft,
 };
 
+/// Target / language flags that affect AArch64 ABI classification.
+/// Callers (e.g. Clang) resolve Triple and LangOptions into these flags
+/// rather than passing a Triple into the ABI library.
+struct AArch64ABIOptions {
+  AArch64ABIKind Kind = AArch64ABIKind::AAPCS;
+  bool IsILP32 = false;
+  bool IsMicrosoftCXXABI = false;
+
+  AArch64ABIOptions() = default;
+  AArch64ABIOptions(AArch64ABIKind Kind) : Kind(Kind) {}
----------------
madhur13490 wrote:

prefer explicit?

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


More information about the cfe-commits mailing list