[PATCH] D50219: [ADT] Normalize empty triple components
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 2 20:19:35 PDT 2018
phosek created this revision.
phosek added reviewers: echristo, compnerd.
Herald added subscribers: llvm-commits, dexonsmith, gbedwell, fedor.sergeev, hiraditya, dschuff.
Herald added a reviewer: javed.absar.
Herald added a reviewer: andreadb.
LLVM triple normalization is handling "unknown" and empty components
differently; for example given "x86_64-unknown-linux-gnu" and
"x86_64-linux-gnu" which should be equivalent, triple normalization
returns "x86_64-unknown-linux-gnu" and "x86_64--linux-gnu". autoconf's
config.sub returns "x86_64-unknown-linux-gnu" for both
"x86_64-linux-gnu" and "x86_64-unknown-linux-gnu". This changes the
triple normalization to behave the same way, replacing empty triple
components with "unknown".
This addresses PR37129.
Repository:
rL LLVM
https://reviews.llvm.org/D50219
Files:
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/coff-aarch64-type-sizes.c
clang/test/Driver/arm-ias-Wa.s
clang/test/Driver/arm-target-as-mthumb.s
clang/test/Driver/baremetal.cpp
clang/test/Driver/biarch.c
clang/test/Driver/clang-translation.c
clang/test/Driver/cuda-detect.cu
clang/test/Driver/cuda-no-pgo-or-coverage.cu
clang/test/Driver/cuda-no-sanitizers.cu
clang/test/Driver/cuda-no-stack-protector.cu
clang/test/Driver/cuda-options.cu
clang/test/Driver/cuda-output-asm.cu
clang/test/Driver/darwin-sanitizer-ld.c
clang/test/Driver/fsanitize.c
clang/test/Driver/hip-binding.hip
clang/test/Driver/hip-toolchain.hip
clang/test/Driver/miamcu-opt.c
clang/test/Driver/nacl-direct.c
clang/test/Driver/netbsd.c
clang/test/Driver/netbsd.cpp
clang/test/Driver/nios2-cpu.c
clang/test/Driver/offloading-interoperability.c
clang/test/Driver/openmp-offload.c
clang/test/Driver/parse-progname.c
clang/test/Driver/ropi-rwpi.c
clang/test/Driver/windows-arm-minimal-arch.c
clang/test/Frontend/windows-exceptions.cpp
llvm/lib/Support/Triple.cpp
llvm/test/CodeGen/ARM/invalid-target.ll
llvm/tools/llvm-mc/llvm-mc.cpp
llvm/tools/llvm-mca/llvm-mca.cpp
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/unittests/ADT/TripleTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50219.158903.patch
Type: text/x-patch
Size: 124767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180803/f563304b/attachment-0001.bin>
More information about the llvm-commits
mailing list