[all-commits] [llvm/llvm-project] 97fe51: [Clang][AArch64] Define x86_64 macros for ARM64EC ...

Billy Laws via All-commits all-commits at lists.llvm.org
Sun Sep 10 13:06:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97fe519dd2c2440271bf1665318553ee04cb843f
      https://github.com/llvm/llvm-project/commit/97fe519dd2c2440271bf1665318553ee04cb843f
  Author: Billy Laws <blaws05 at gmail.com>
  Date:   2023-09-10 (Sun, 10 Sep 2023)

  Changed paths:
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/test/Preprocessor/predefined-win-macros.c

  Log Message:
  -----------
  [Clang][AArch64] Define x86_64 macros for ARM64EC targets (#65420)

The ARM64EC ABI requires that struct layouts match between regular
x86_64 code and ARM64EC code. Ensure this is always the case by defining
the same set of macros as are set when targeting x86_64 but with the
addition of `__arm64ec__/_M_ARM64EC` macros that can be used for any
ARM64EC specific code.

More details can be found here:
https://techcommunity.microsoft.com/t5/windows-os-platform-blog/getting-to-know-arm64ec-defines-and-intrinsic-functions/ba-p/2957235




More information about the All-commits mailing list