This is an archive of the discontinued LLVM Phabricator instance.

[Orc] Honor hasJIT in JITTargetMachineBuilder::createTargetMachine
ClosedPublic

Authored by ro on Jul 8 2022, 12:37 AM.

Details

Summary

Even with D129349, various SPARC JIT tests still FAIL. They are guarded by host-supports-jit. This is set from clang-repl --host-supports-jit which still returns true. It turns out the JITTargetMachineBuilder doesn't consider hasJIT at all.

This patch corrects this, turning the affected tests UNSUPPORTED.

Tested on sparcv9-sun-solaris2.11.

Diff Detail

Event Timeline

ro created this revision.Jul 8 2022, 12:37 AM
ro requested review of this revision.Jul 8 2022, 12:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 12:37 AM
lhames accepted this revision.Jul 14 2022, 5:11 PM

LGTM. Thanks @ro!

This revision is now accepted and ready to land.Jul 14 2022, 5:11 PM
This revision was landed with ongoing or failed builds.Jul 14 2022, 11:21 PM
This revision was automatically updated to reflect the committed changes.