[PATCH] D128030: [llvm-objdump] Default to --mattr=+all for AArch64
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 10:34:17 PDT 2022
nickdesaulniers added inline comments.
================
Comment at: llvm/tools/llvm-objdump/llvm-objdump.cpp:1696-1698
+ } else if (MCPU.empty() && Obj->getArch() == llvm::Triple::aarch64) {
+ Features.AddFeature("+all");
+ }
----------------
Adding context to [[ https://reviews.llvm.org/D128029#3592359 | my comment ]], this is where I'd expect us to handle per-arch enabling of various target features.
```
...
if (MAttrs.empty() && MCPU.empty())
enableAllArchFeatures()
...
static void enableAllArchFeatures() {
switch (arch) {
case aarch64:
Features.AddFeature("+sve", etc etc);
break;
case x86:
...
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128030/new/
https://reviews.llvm.org/D128030
More information about the llvm-commits
mailing list