GNU objdump disassembles all unknown instructions by default. Match this user
friendly behavior with the target feature "all" (D128029) designed for disassemblers.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Seems good to me, but might want to give a chance for AArch64 contributors to have a say in the matter.
llvm/docs/CommandGuide/llvm-objdump.rst | ||
---|---|---|
32 | typo: will change one to mcpu |
llvm/tools/llvm-objdump/llvm-objdump.cpp | ||
---|---|---|
1696–1698 | Adding context to 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: ... } |
In case folks (@kongyi) want to cherry pick D128029 and D128030 into an old release branch. f4b7b66c4c75d40c099ef41ecea0d3be27bdb6c1 ([AArch64][test] Add --mattr=-{sve,sve2,sme} to SVE/SVE2/SME MC tests) is also needed
(it likely does not apply cleanly since there has been lots of SVE development).
typo: will change one to mcpu