|
Loom C API
Public Loom compiler C API
|
LLVMIR target package identity and environment creation. More...
Go to the source code of this file.
Macros | |
| #define | LOOMC_ARTIFACT_FORMAT_LLVMIR_TEXT "llvmir-text" |
| Textual LLVM IR artifact format. | |
| #define | LOOMC_ARTIFACT_FORMAT_LLVMIR_BITCODE "llvmir-bitcode" |
| LLVM bitcode artifact format. | |
Functions | |
| loomc_status_t | loomc_target_environment_create_llvmir (loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment) |
| Creates a target environment containing the LLVMIR target package. | |
LLVMIR target package identity and environment creation.
This header is the dependency-light entry point for embedders that want to link the LLVMIR oracle/debug target package. It does not require LLVM libraries or command-line tools; it emits textual LLVM IR or LLVM bitcode from prepared LLVMIR target-low modules.
| loomc_status_t loomc_target_environment_create_llvmir | ( | loomc_allocator_t | allocator, |
| loomc_target_environment_t ** | out_target_environment ) |
Creates a target environment containing the LLVMIR target package.
| allocator | Host allocator used for target-environment storage. |
| out_target_environment | Receives one retained target environment on success. |