[llvm] [llvm-objdump][AVR] Detect AVR architecture from ELF flags for disassembling (PR #174731)
Ruoyu Qiu via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 17 10:47:58 PST 2026
cabbaken wrote:
> The new function `getFeatureSetForEFlag` doesn't have much coverage. Can you improve the coverage?
The EFlags comes from [ELF.h](https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/BinaryFormat/ELF.h#L490), the corresponding architecture families are in [AVRDevices.td](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AVR/AVRDevices.td#L170)
> Can you add a note why something like `+all` cannot be used for AVR?
The `+all` comes from [AArch64Features.td](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AArch64/AArch64Features.td#L1071) if I'm not misunderstanding. The corresponding feature in AVR is "special" defined in [AVRDevices.td](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AVR/AVRDevices.td#L243)
https://github.com/llvm/llvm-project/pull/174731
More information about the llvm-commits
mailing list