This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj][AMDGPU] Bypass MD verification for PAL
ClosedPublic

Authored by Pierre-vh on Mar 15 2023, 2:53 AM.

Details

Summary

Small split change from D146023.

Migrate elf-notes to v4 and fix llvm-readobj to work with PAL metadata.

Diff Detail

Event Timeline

Pierre-vh created this revision.Mar 15 2023, 2:53 AM
Herald added a project: Restricted Project. · View Herald Transcript
Pierre-vh requested review of this revision.Mar 15 2023, 2:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2023, 2:53 AM
arsenm added inline comments.Mar 15 2023, 6:41 AM
llvm/tools/llvm-readobj/ELFDumper.cpp
5435

Why, I don't understand?

5438

Why isn't this on only under an assert?

5438

Nevermind, this isn't codegen

One nit from me. Somebody who understands AMDGPU will need to do a proper review though.

llvm/tools/llvm-readobj/ELFDumper.cpp
5436
Pierre-vh updated this revision to Diff 505795.Mar 16 2023, 6:37 AM
Pierre-vh marked 4 inline comments as done.

Comment

llvm/tools/llvm-readobj/ELFDumper.cpp
5435

It's only designed for AMDHSA, it looks for keys that have amdhsa (e.g. amdhsa.version) and fails when it doesn't find them

Rebase (ping?)

foad added inline comments.Apr 17 2023, 3:42 AM
llvm/tools/llvm-readobj/ELFDumper.cpp
5437

Since this is AMDHSA stuff, could you check for the presence of "amdhsa." instead of the absence of "amdpal."?

Pierre-vh updated this revision to Diff 514161.Apr 17 2023, 4:45 AM
Pierre-vh marked an inline comment as done.

Change check

kzhuravl accepted this revision.May 2 2023, 7:00 AM

looks good

This revision is now accepted and ready to land.May 2 2023, 7:00 AM
This revision was automatically updated to reflect the committed changes.