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

Add samples showing how to use LLVM modules to produce bitcode files #1016

Merged
merged 2 commits into from
Mar 11, 2021

Conversation

junlarsen
Copy link
Member

Based on a conversation in the JavaCPP Gitter I have put together two samples showing how to deal with LLVM Bitcode from JavaCPP. The following samples have been added:

  • EmitObjectAndBitcodeFiles: A sample explaining how a user may emit both object and LLVM Bitcode files from an in-memory LLVM module. This is a pretty common task when using LLVM so I think it's a good sample to have.
  • RunFunctionFromBitcode: A sample parsing an LLVM Bitcode file into an in-memory LLVM module and then running a function inside the module via the LLVM interpreter. This is a continuation of the sample from the Gitter conversation.

@saudet saudet merged commit 32d981f into bytedeco:master Mar 11, 2021
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