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

Bump LLVM and GPUCompiler versions + related fixes #82

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gbaraldi
Copy link
Member

@gbaraldi gbaraldi commented Sep 11, 2024

The fixes entail
Drop abi_call for a plain invoke call
Change to use string api for pass manager
Drop support for versions before 1.10

1.11 still segfaults so I'm taking a further look
1.11 passes tests

Drop abi_call for a plain invoke call
Change to use string api for pass manager
Drop support for versions before 1.10
@@ -93,12 +93,28 @@ Find all static allocation sites in the provided LLVM IR.

This function modifies the LLVM module in-place, effectively trashing it.
"""
function find_allocs!(mod::LLVM.Module, meta; ignore_throw=true)
function find_allocs!(mod::LLVM.Module, meta, entry_name::String; ignore_throw=true, invoke_entry=false)
Copy link
Member

Choose a reason for hiding this comment

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

Can you document what invoke_entry does?

@topolarity
Copy link
Member

Looking pretty good, but I'd like to ideally get nightly working:

[91723] signal 11 (1): Segmentation fault
in expression starting at /home/topolarity/repos/AllocCheck/test/runtests.jl:181
_ZNK4llvm11LLVMContext14getOptPassGateEv at /home/topolarity/repos/julia/usr/bin/../lib/libLLVM.so.18.1jl (unknown line)
unknown function (ip: (nil))
Allocations: 24540140 (Pool: 24539670; Big: 470); GC: 18
ERROR: Package AllocCheck errored during testing (received signal: 11)

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.

2 participants