This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][NFC] Reduce Target/{AArch64,X86} dependencies
ClosedPublic

Authored by Amir on Apr 21 2022, 3:28 PM.

Details

Summary

We don't actually depend on entire X86/AArch64 components that pull in CodeGen,
SelectionDAG etc., just the Desc part with opcode and other definitions.

Note that it doesn't decouple BOLT from these components - we still pull in X86
and AArch64 from top-level llvm-bolt dependencies as we use assembler and
disassembler. It's difficult to reduce these as this requires non-trivial
changes to X86/AArch64 components themselves (e.g. moving out AsmPrinter).

Diff Detail

Event Timeline

Amir created this revision.Apr 21 2022, 3:28 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Apr 21 2022, 3:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2022, 3:28 PM
Amir edited the summary of this revision. (Show Details)Apr 21 2022, 3:36 PM
This revision is now accepted and ready to land.Apr 25 2022, 1:12 PM
This revision was automatically updated to reflect the committed changes.