diff options
author | Eymen Ünay <eymenunay@outlook.com> | 2023-09-08 09:05:14 +0200 |
---|---|---|
committer | Stefan Gränitz <stefan.graenitz@gmail.com> | 2023-09-08 09:06:15 +0200 |
commit | 4b17c81d5a5d3e0f514026c2b7f9b623d901cc04 (patch) | |
tree | bb9dc0e4f48382f7907221bf7ca6e26a1d30072d /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | b0ea2790c41db65b3c283f78a5f534bc26fc6f8f (diff) | |
download | llvm-4b17c81d5a5d3e0f514026c2b7f9b623d901cc04.zip llvm-4b17c81d5a5d3e0f514026c2b7f9b623d901cc04.tar.gz llvm-4b17c81d5a5d3e0f514026c2b7f9b623d901cc04.tar.bz2 |
[jitlink/rtdydl][checker] Add TargetFlag dependent disassembler switching support
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 usecase.
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.
Reviewed By: lhames, sgraenitz
Differential Revision: https://reviews.llvm.org/D158280
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions