diff options
| author | Kevin Qin <Kevin.Qin@arm.com> | 2014-07-18 07:03:22 +0000 |
|---|---|---|
| committer | Kevin Qin <Kevin.Qin@arm.com> | 2014-07-18 07:03:22 +0000 |
| commit | 110db6f2ad2016b72121ff6538035f252810acbf (patch) | |
| tree | 8a64768d73733340765a73b540eaf58baca12772 /clang/lib/Driver/ToolChains.cpp | |
| parent | e15442c8aa8df1a99f1aaaa34d672466c35c001e (diff) | |
| download | bcm5719-llvm-110db6f2ad2016b72121ff6538035f252810acbf.tar.gz bcm5719-llvm-110db6f2ad2016b72121ff6538035f252810acbf.zip | |
[AArch64] Implement Clang CLI interface proposal about "-march".
1. Revert "Add default feature for CPUs on AArch64 target in Clang"
at r210625. Then, all enabled feature will by passed explicitly by
-target-feature in -cc1 option.
2. Get "-mfpu" deprecated.
3. Implement support of "-march". Usage is:
-march=armv8-a+[no]feature
For instance, "-march=armv8-a+neon+crc+nocrypto". Here "armv8-a" is
necessary, and CPU names are not acceptable. Candidate features are
fp, neon, crc and crypto. Where conflicting feature modifiers are
specified, the right-most feature is used.
4. Implement support of "-mtune". Usage is:
-march=CPU_NAME
For instance, "-march=cortex-a57". This option will ONLY get
micro-architectural feature enabled specifying to target CPU,
like "+zcm" and "+zcz" for cyclone. Any architectural features
WON'T be modified.
5. Change usage of "-mcpu" to "-mcpu=CPU_NAME+[no]feature", which is
an alias to "-march={feature of CPU_NAME}+[no]feature" and
"-mtune=CPU_NAME" together. Where this option is used in conjunction
with -march or -mtune, those options take precedence over the
appropriate part of this option.
llvm-svn: 213353
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index e96a91d38f0..bc5eca9a880 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -879,11 +879,6 @@ DerivedArgList *MachO::TranslateArgs(const DerivedArgList &Args, DAL->AddJoinedArg(nullptr, MArch, "armv7m"); else if (Name == "armv7s") DAL->AddJoinedArg(nullptr, MArch, "armv7s"); - - else if (Name == "arm64") - DAL->AddJoinedArg(nullptr, MArch, "arm64"); - else if (Name == "armv8") - DAL->AddJoinedArg(nullptr, MArch, "arm64"); } return DAL; |

