diff options
author | Diogo N. Sampaio <diogo.sampaio@arm.com> | 2019-05-09 10:24:36 +0000 |
---|---|---|
committer | Diogo N. Sampaio <diogo.sampaio@arm.com> | 2019-05-09 10:24:36 +0000 |
commit | 543913c3b41f7d8dcede4f446ffcd2dce496a084 (patch) | |
tree | 12e81bf60d8abbd1e87b0f6ea985da167c6b45d4 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 3cdf8981054bf7b607aed1b6c921341516a94174 (diff) | |
download | bcm5719-llvm-543913c3b41f7d8dcede4f446ffcd2dce496a084.tar.gz bcm5719-llvm-543913c3b41f7d8dcede4f446ffcd2dce496a084.zip |
[ARM] Fix the extensions implied by a cpu name
Summary:
When using `clang -mcpu=CPUNAME+FEATURELIST`,
the implied features defined by CPUNAME are
not obtained, as the entire string is passed.
This fixes that by spiting the cpuname
string in the first `+`, if any.
For example, when using
```clang -### --target=arm-arm-none-eabi -march=armv7-a -mcpu=cortex-a8+nocrc```
the intrinsic
```"target-feature" "+dsp"```
implied by `cortex-a8` is missing.
Reviewers: keith.walker.arm, DavidSpickett, carwil
Reviewed By: DavidSpickett
Subscribers: javed.absar, kristof.beyls, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61668
llvm-svn: 360324
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions