[all-commits] [llvm/llvm-project] 3b15d8: [Hexagon] Fix arch attribute mapping in ELFObjectF...

Rishabh via All-commits all-commits at lists.llvm.org
Mon Jun 8 04:35:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b15d851b9f15b088b5a903aa8672f65c9ec06f8
      https://github.com/llvm/llvm-project/commit/3b15d851b9f15b088b5a903aa8672f65c9ec06f8
  Author: Rishabh <rbali at qti.qualcomm.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M llvm/lib/Object/ELFObjectFile.cpp
    A llvm/test/MC/Hexagon/hexagon_attribues_arch.s

  Log Message:
  -----------
  [Hexagon] Fix arch attribute mapping in ELFObjectFile (#201531)

hexagonAttrToFeatureString in ELFObjectFile.cpp used a hardcoded switch
listing each supported Hexagon arch version. The switch was not kept in
sync, so .hexagon.attributes entries for newer versions returned
std::nullopt and were silently dropped. The disassembler then ran
without v68 enabled and valid instructions were rendered as <unknown> in
llvm-objdump output.

Replace the switch with `"v" + utostr(Attr)` so any current or future
arch version recorded in build attributes is translated to a subtarget
feature string automatically.

Fixes #201594

Signed-off-by: Rishabh Bali <rbali at qti.qualcomm.com>
Co-authored-by: Rishabh Bali <rbali at hu-rbali-hyd.qualcomm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list