[PATCH] D42978: Make march/target-cpu print a note with the list of valid values
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 11:05:57 PST 2018
erichkeane created this revision.
erichkeane added reviewers: aaron.ballman, craig.topper, echristo.
Herald added subscribers: fedor.sergeev, kbarton, aheejin, kristof.beyls, jgravelle-google, sbc100, javed.absar, nhaehnle, nemanjai, sdardis, dylanmckay, jyknight, dschuff, jfb, aemerson, jholewinski.
When rejecting a march= or target-cpu command line parameter,
the message is quite lacking. This patch adds a note that prints
all possible values for the current target, if the target supports it.
Additionally, this adds support for all TargetInfo types that reject
a setCPU call. Note there is a corresponding LLVM patch for the ARM support.
Repository:
rC Clang
https://reviews.llvm.org/D42978
Files:
include/clang/Basic/Cuda.h
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/TargetInfo.h
lib/Basic/Cuda.cpp
lib/Basic/Targets.cpp
lib/Basic/Targets/AArch64.cpp
lib/Basic/Targets/AArch64.h
lib/Basic/Targets/AMDGPU.cpp
lib/Basic/Targets/AMDGPU.h
lib/Basic/Targets/ARM.cpp
lib/Basic/Targets/ARM.h
lib/Basic/Targets/AVR.cpp
lib/Basic/Targets/AVR.h
lib/Basic/Targets/BPF.h
lib/Basic/Targets/Hexagon.cpp
lib/Basic/Targets/Hexagon.h
lib/Basic/Targets/Lanai.cpp
lib/Basic/Targets/Lanai.h
lib/Basic/Targets/Mips.cpp
lib/Basic/Targets/Mips.h
lib/Basic/Targets/NVPTX.cpp
lib/Basic/Targets/NVPTX.h
lib/Basic/Targets/Nios2.h
lib/Basic/Targets/PPC.cpp
lib/Basic/Targets/PPC.h
lib/Basic/Targets/Sparc.cpp
lib/Basic/Targets/Sparc.h
lib/Basic/Targets/SystemZ.cpp
lib/Basic/Targets/SystemZ.h
lib/Basic/Targets/WebAssembly.cpp
lib/Basic/Targets/WebAssembly.h
lib/Basic/Targets/X86.cpp
lib/Basic/Targets/X86.h
test/Misc/target-parser.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42978.133049.patch
Type: text/x-patch
Size: 20941 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180206/28032b7f/attachment-0001.bin>
More information about the cfe-commits
mailing list