llvm-project
89c1bf12 - [ARM] __ARM_ARCH macro definition fix (#81493)

Commit
1 year ago
[ARM] __ARM_ARCH macro definition fix (#81493) This patch changes how the macro __ARM_ARCH is defined to match its defintion in the ACLE. In ACLE 5.4.1, __ARM_ARCH is defined as equal to the major architecture version for ISAs up to and including v8. From v8.1 onwards, its definition is changed to include minor versions, such that for an architecture vX.Y, __ARM_ARCH = X*100 + Y. Before this patch, LLVM defined __ARM_ARCH using only the major architecture version for all architecture versions. This patch adds functionality to define __ARM_ARCH correctly for architectures greater than or equal to v8.1.
Author
Parents
  • clang
    • docs
      • File
        ReleaseNotes.rst
    • lib/Basic/Targets
      • File
        AArch64.cpp
      • File
        ARM.cpp
      • File
        ARM.h
    • test/Preprocessor
      • File
        arm-target-features.c
  • llvm
    • include/llvm/TargetParser
      • File
        ARMTargetParser.h
    • lib/TargetParser
      • File
        ARMTargetParser.cpp
    • unittests/TargetParser
      • File
        TargetParserTest.cpp