This is an archive of the discontinued LLVM Phabricator instance.

Reapply [jitlink/rtdydl][checker] Add TargetFlag dependent disassembler switching support
AbandonedPublic

Authored by Eymay on Sep 9 2023, 9:54 AM.

Details

Reviewers
lhames
sgraenitz
Summary

Some targets such as AArch32 make use of TargetFlags to indicate ISA mode. Depending
on the TargetFlag, MCDisassembler and similar target specific objects should be
reinitialized with the correct Target Triple. Backends with similar needs can
easily extend this implementation for their use case.

The drivers llvm-rtdyld and llvm-jitlink have their SymbolInfo's extended to take
TargetFlag into account. RuntimeDyldChecker can now create necessary TargetInfo
to reinitialize MCDisassembler and MCInstPrinter. The required triple is obtained
from the new getTripleFromTargetFlag function by checking the TargetFlag.

In addition, breaking changes for RuntimeDyld COFF Thumb tests are fixed by making
the backend emit a TargetFlag.

Diff Detail

Event Timeline

Eymay created this revision.Sep 9 2023, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2023, 9:54 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Eymay requested review of this revision.Sep 9 2023, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2023, 9:54 AM
Eymay abandoned this revision.Sep 9 2023, 9:59 AM

Revision https://reviews.llvm.org/D158280 reopened instead.