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

Remove jl_LLVMContext #43827

Merged
merged 5 commits into from
Mar 2, 2022
Merged

Conversation

pchintalapudi
Copy link
Member

@pchintalapudi pchintalapudi commented Jan 16, 2022

Implements the removal plan from #43791

@pchintalapudi pchintalapudi added breaking This change will break code compiler:codegen Generation of LLVM IR and native code excision Removal of code from Base or the repository labels Jan 16, 2022
src/aotcompile.cpp Outdated Show resolved Hide resolved
src/codegen.cpp Outdated Show resolved Hide resolved
src/jitlayers.cpp Outdated Show resolved Hide resolved
src/cgutils.cpp Outdated Show resolved Hide resolved
@pchintalapudi pchintalapudi force-pushed the pc/no-context branch 2 times, most recently from fa7f423 to d4e4968 Compare January 28, 2022 23:37

extern "C" JL_DLLEXPORT
LLVMContextRef jl_get_ee_context_impl(void) {
return wrap(jl_ExecutionEngine->getContext().getContext());
Copy link
Member

Choose a reason for hiding this comment

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

So technically this is wrong, since you return the underlying context without first locking the TSCtx.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added this as a small hack to get @code_llvm working since creating a new context is still causing some issues in codegen that I haven't tracked down yet; I intend to remove this method and thus the locking issue as soon as multiple contexts can get through codegen without issue. Since right now the context isn't used except under the codegen lock, we should temporarily be safe until that other issue is resolved.

@Sacha0
Copy link
Member

Sacha0 commented Mar 2, 2022

🎉

staticfloat pushed a commit to JuliaCI/julia-buildkite-testing that referenced this pull request Mar 2, 2022
@pchintalapudi pchintalapudi deleted the pc/no-context branch March 6, 2022 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This change will break code compiler:codegen Generation of LLVM IR and native code excision Removal of code from Base or the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants