[all-commits] [llvm/llvm-project] 1950eb: [ARM64EC] Fix compilation of intrin.h in ARM64EC m...

Eli Friedman via All-commits all-commits at lists.llvm.org
Mon Apr 8 15:03:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1950ebd17bbf1f2ad2a3799cd5966412ccfee9c4
      https://github.com/llvm/llvm-project/commit/1950ebd17bbf1f2ad2a3799cd5966412ccfee9c4
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2024-04-08 (Mon, 08 Apr 2024)

  Changed paths:
    M clang/lib/Headers/intrin.h
    M clang/lib/Headers/intrin0.h
    M clang/test/Headers/ms-intrin.cpp

  Log Message:
  -----------
  [ARM64EC] Fix compilation of intrin.h in ARM64EC mode. (#87717)

intrin.h checks for x86_64. But the "x86_64" define is also defined for
ARM64EC, and we don't support all the intrinsics in ARM64EC mode. Fix
the preprocessor checks to handle this correctly. (If we actually need
some of these intrinsics in ARM64EC mode, we can revisit later.)

Not exactly sure how I didn't run into this issue before now... I think
I've built code that requires these headers, but maybe not since the
define fix landed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list