This is an archive of the discontinued LLVM Phabricator instance.

[lli] Add option -lljit-platform=Inactive to disable platform support explicitly
ClosedPublic

Authored by sgraenitz on Mar 26 2021, 6:39 AM.

Details

Summary

This option tells LLJIT to disable platform support explicitly: JITDylibs aren't scanned for special init/deinit symbols and no runtime API interposes are injected.
It's useful in two cases: for platforms that don't have such requirements and platforms for which we have no explicit support yet and that don't work well with the generic IR platform.

Diff Detail

Event Timeline

sgraenitz created this revision.Mar 26 2021, 6:39 AM
sgraenitz requested review of this revision.Mar 26 2021, 6:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 26 2021, 6:39 AM

This can be used to fix test failures on Windows when re-applying D98931

llvm/tools/lli/lli.cpp
242

Inactive appeared to me as a sound term in code. Alternatives like No/None/Disabled/Passive seemed misleading in one or the other context (e.g. setUp__Platform).

For the option value I am uncertain. On the one hand it's always good to keep terms aligned, on the other hand it might be confusing the user. It could also be Off or something else.

What do you think?

sgraenitz updated this revision to Diff 333549.Mar 26 2021, 7:21 AM

Apply MCJIT small code-model tests to ORC in preparation for default JIT engine switch

lhames accepted this revision.Mar 29 2021, 9:31 AM

LGTM. Thanks Stefan!

This revision is now accepted and ready to land.Mar 29 2021, 9:31 AM