aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2021-05-05 15:52:42 +0000
committerGuillaume Chatelet <gchatelet@google.com>2021-05-05 15:52:42 +0000
commit7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4 (patch)
treeb4bc5dc399344b7a4e7d1583a96afc903c3f72ee /llvm/unittests/CodeGen/MachineInstrTest.cpp
parentefc31be7f8e8487c774dd9052980b67f0d5e70e2 (diff)
downloadllvm-7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4.zip
llvm-7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4.tar.gz
llvm-7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4.tar.bz2
[libc] Normalize LIBC_TARGET_MACHINE
Current implementation defines LIBC_TARGET_MACHINE with the use of CMAKE_SYSTEM_PROCESSOR. Unfortunately CMAKE_SYSTEM_PROCESSOR is OS dependent and can produce different results. An evidence of this is the various matchers used to detect whether the architecture is x86. This patch normalizes LIBC_TARGET_MACHINE and renames it LIBC_TARGET_ARCHITECTURE. I've added many architectures but we may want to limit ourselves to x86 and ARM. Differential Revision: https://reviews.llvm.org/D101524
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions