This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Remove target triple check to allow for more targets
ClosedPublic

Authored by hoy on Jun 21 2023, 11:14 AM.

Details

Summary

Llvm-profgen internally uses the llvm libraries and the MCDesc interface to do disassembling and symblization and it never checks against target-specific instruction operators. This makes it quite transparent to targets and a first attempt for an aarch64 binary just works. Therefore I'm removing the unnecessary triple check to unblock for new targets.

Diff Detail

Event Timeline

hoy created this revision.Jun 21 2023, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 11:14 AM
hoy requested review of this revision.Jun 21 2023, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 11:14 AM

it rarely checks against target-specific instruction operators

Rarely indicates it's still doing it somewhere? What are those places and are we confident about non-X86 targets?

hoy added a comment.Jun 22 2023, 3:59 PM

it rarely checks against target-specific instruction operators

Rarely indicates it's still doing it somewhere? What are those places and are we confident about non-X86 targets?

Actually I haven't seen any so far.

wenlei accepted this revision.Jun 23 2023, 9:37 AM

it rarely checks against target-specific instruction operators

Rarely indicates it's still doing it somewhere? What are those places and are we confident about non-X86 targets?

Actually I haven't seen any so far.

Ok, update the description then?

This revision is now accepted and ready to land.Jun 23 2023, 9:37 AM
hoy edited the summary of this revision. (Show Details)Jun 23 2023, 9:50 AM

it rarely checks against target-specific instruction operators

Rarely indicates it's still doing it somewhere? What are those places and are we confident about non-X86 targets?

Actually I haven't seen any so far.

Ok, update the description then?

Yeah, updated to "never".