[PATCH] D109587: [RISCV][WIP] Generate target attribute in attribute section of object file when assemble .s file

Zixuan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 13 19:45:06 PDT 2021


zixuan-wu added a comment.

In D109587#2997870 <https://reviews.llvm.org/D109587#2997870>, @MaskRay wrote:

> For other targets, llvm-objdump is just recommended to default to something like binutils `-mcpu=all` (GCC powerpc `-mcpu=future`) if no attribute section says anything about the ISA. That may be an issue if there are conflicting encoding in one ISA.

The key point is at assembly side not objdump side. Indeed, there is conflicting encoding in one ISA, so that generate appropriate different attribute for same instruction encoding. The attributes of assemble and disassemble just should be match.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109587/new/

https://reviews.llvm.org/D109587



More information about the llvm-commits mailing list