Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lli] Mimic default LLJIT logic with explicit --jit-linker option #76964

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

weliveindetail
Copy link
Contributor

Forcing the JITLinker to the default configuration shouldn't affect the configuration of the JIT. Since it's implemented by setting the ObjectLinkingLayerCreator, it did have side-effects though. In particular, we skipped the Code- and RelocationModel setting in LLJITBuilderState::prepareForConstruction() (here: https://github.com/llvm/llvm-project/blob/release/17.x/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp#L759-L760).

Copy link
Contributor

@lhames lhames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @weliveindetail!

@weliveindetail
Copy link
Contributor Author

Thanks for the quick review. The build failure on Windows is unrelated: mt.exe failed to write the updated manifest

@weliveindetail weliveindetail merged commit b7e50df into llvm:main Jan 5, 2024
3 of 4 checks passed
@weliveindetail weliveindetail deleted the lli-jitlink-codemodel branch January 5, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants