We may need hosted Clang/LLVM to compile and getHostCpuName
can be used for native detection.
Tests are added in riscv-cpus.c just like what AArch64/PPC
have done.
Differential D136930
[RISCV] Support -mcpu/mtune=native • pcwang-thead on Oct 28 2022, 2:35 AM. Authored by
Details
We may need hosted Clang/LLVM to compile and getHostCpuName Tests are added in riscv-cpus.c just like what AArch64/PPC
Diff Detail
Event Timeline
Comment Actions Maybe we could add test like aarch64? https://github.com/llvm/llvm-project/blob/main/clang/test/Driver/aarch64-mcpu.c#L20
Comment Actions
|
Why can't we use A->getValue() == "native" here?