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

support for DIBuilder on LLVM8 #152

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

support for DIBuilder on LLVM8 #152

wants to merge 1 commit into from

Conversation

vchuravy
Copy link
Collaborator

Remaining piece from #139 (not sure why bors closed that one)

Still needs more work and tests, but on LLVM8 the API is starting to become useful.
The implementation was inspired by looking at the Go bindings in LLVM trunk,
albeit the maintain their own C library shim.

@maleadt
Copy link
Owner

maleadt commented Jul 21, 2019

Rebased for CI.

@jpsamaroo
Copy link
Collaborator

jpsamaroo commented Mar 8, 2021

Still needs tests for:

  • DISubprogram
  • DISubroutineType
  • DIBasicType

And various other things that I find in some clang-emitted IR.

@jpsamaroo
Copy link
Collaborator

I'm partial to removing the DI* structs and just passing everything directly (maybe some as kwargs) into the DI creation calls. Is there any good reason not to do that?

@jpsamaroo jpsamaroo marked this pull request as ready for review March 8, 2021 18:53
@maleadt
Copy link
Owner

maleadt commented Mar 8, 2021

Might be useful to create a proper querying API in Julia?

@jpsamaroo
Copy link
Collaborator

Might be useful to create a proper querying API in Julia?

What kinds of querying did you have in mind?

@jpsamaroo
Copy link
Collaborator

Oh you mean the ability to query attached debuginfo. Yeah, I can work on that.

@maleadt
Copy link
Owner

maleadt commented Mar 9, 2021

Oh you mean the ability to query attached debuginfo.

Yeah. Doesn't need to be part of this PR, but maybe the structs (mimicking the LLVM representation) are useful to contain/expose that information.

test/runtests.jl Outdated Show resolved Hide resolved
@vchuravy vchuravy marked this pull request as draft February 9, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants