This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][lld] Fix up ability to call lld as a library
AbandonedPublic

Authored by krzysz00 on Feb 7 2022, 1:54 PM.

Details

Summary
  • Moves lldMain() and lldSafeMain() into a seperate file under lldCommon
  • Adjusts SerializeToHsaco to call lldSafeMain()
  • Adjusts SerializeToHsaco to link in all LLD drivers, since there isn't

an obvious way around that requirement

Depends on D119188

This is a different and somewhat more hacky version of D119049

Diff Detail

Event Timeline

krzysz00 created this revision.Feb 7 2022, 1:54 PM
krzysz00 requested review of this revision.Feb 7 2022, 1:54 PM
krzysz00 updated this revision to Diff 406870.Feb 8 2022, 9:31 AM

Rebase, removing dependency

krzysz00 abandoned this revision.Feb 10 2022, 9:49 AM

Not needed anymore, abandoning