HomePhabricator

[libc] Normalize LIBC_TARGET_MACHINE

Authored by gchatelet on May 5 2021, 8:52 AM.

Description

[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

Details

Committed
gchateletMay 5 2021, 8:52 AM
Differential Revision
D101524: [libc] Normalize LIBC_TARGET_MACHINE
Parents
rGefc31be7f8e8: [RISCV][NFC] Fix up pseudoinstruction name in comment
Branches
Unknown
Tags
Unknown