microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
682 stars 170 forks source link

Add more utilties to LlvmBindings #1530

Closed swernli closed 2 years ago

swernli commented 2 years ago

This change adds two utilities to the LlvmBindings for usability. First, it adds back the functionality for parsing BitcodeModule objects from a file via a static LoadFrom method. Second, it adds a ReturnBlocks convenience method to IrFunction objects to make it easier for a caller to request any blocks that are terminated by a return.