Skip to content

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.

2 participants