[PATCH] D109174: [MSP430][Clang] Infer CPU type from -mcpu= or -mmcu=
Jozef Lawrynowicz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 2 10:33:06 PDT 2021
jozefl created this revision.
jozefl added reviewers: asl, atrosinenko.
Herald added a subscriber: hiraditya.
jozefl requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
clang::driver::tools::getCPUName can now infer the CPU being used by
examining either the MCU specified with the -mmcu= option, or the CPU
directly specified with -mcpu=.
This means Clang will now pass the correct "-target-cpu" to downstream
tools, enabling CPU-specific features in LLVM.
The MSP430X CPU can now be selected, in addition to the "generic" MSP430
CPU.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109174
Files:
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Basic/Targets/MSP430.cpp
clang/lib/Basic/Targets/MSP430.h
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/MSP430.cpp
clang/lib/Driver/ToolChains/MSP430.h
clang/test/Driver/msp430-cpu.c
clang/test/Driver/msp430-mmcu.c
clang/test/Driver/msp430-toolchain.c
clang/test/Misc/target-invalid-cpu-note.c
clang/test/Preprocessor/msp430-defs.c
llvm/lib/Target/MSP430/MSP430.td
llvm/lib/Target/MSP430/MSP430Subtarget.cpp
llvm/lib/Target/MSP430/MSP430Subtarget.h
llvm/test/CodeGen/MSP430/build-attrs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109174.370322.patch
Type: text/x-patch
Size: 25782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210902/2c51ed73/attachment.bin>
More information about the llvm-commits
mailing list