| Package | Description |
|---|---|
| org.bytedeco.llvm.global |
| Modifier and Type | Method and Description |
|---|---|
static thinlto_code_gen_t |
LLVM.thinlto_create_codegen()
Instantiates a ThinLTO code generator.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
LLVM.thinlto_codegen_add_cross_referenced_symbol(thinlto_code_gen_t cg,
BytePointer name,
int length)
Adds a symbol to the list of global symbols that are cross-referenced between
ThinLTO files.
|
static void |
LLVM.thinlto_codegen_add_cross_referenced_symbol(thinlto_code_gen_t cg,
String name,
int length) |
static void |
LLVM.thinlto_codegen_add_module(thinlto_code_gen_t cg,
BytePointer identifier,
BytePointer data,
int length)
Add a module to a ThinLTO code generator.
|
static void |
LLVM.thinlto_codegen_add_module(thinlto_code_gen_t cg,
String identifier,
String data,
int length) |
static void |
LLVM.thinlto_codegen_add_must_preserve_symbol(thinlto_code_gen_t cg,
BytePointer name,
int length)
Adds a symbol to the list of global symbols that must exist in the final
generated code.
|
static void |
LLVM.thinlto_codegen_add_must_preserve_symbol(thinlto_code_gen_t cg,
String name,
int length) |
static void |
LLVM.thinlto_codegen_disable_codegen(thinlto_code_gen_t cg,
boolean disable)
Disable CodeGen, only run the stages till codegen and stop.
|
static void |
LLVM.thinlto_codegen_dispose(thinlto_code_gen_t cg)
Frees the generator and all memory it internally allocated.
|
static void |
LLVM.thinlto_codegen_process(thinlto_code_gen_t cg)
Optimize and codegen all the modules added to the codegenerator using
ThinLTO.
|
static void |
LLVM.thinlto_codegen_set_cache_dir(thinlto_code_gen_t cg,
BytePointer cache_dir)
Sets the path to a directory to use as a cache storage for incremental build.
|
static void |
LLVM.thinlto_codegen_set_cache_dir(thinlto_code_gen_t cg,
String cache_dir) |
static void |
LLVM.thinlto_codegen_set_cache_entry_expiration(thinlto_code_gen_t cg,
int expiration)
Sets the expiration (in seconds) for an entry in the cache.
|
static void |
LLVM.thinlto_codegen_set_cache_pruning_interval(thinlto_code_gen_t cg,
int interval)
Sets the cache pruning interval (in seconds).
|
static void |
LLVM.thinlto_codegen_set_cache_size_bytes(thinlto_code_gen_t cg,
int max_size_bytes)
Sets the maximum size of the cache directory (in bytes).
|
static void |
LLVM.thinlto_codegen_set_cache_size_files(thinlto_code_gen_t cg,
int max_size_files)
Sets the maximum number of files in the cache directory.
|
static void |
LLVM.thinlto_codegen_set_cache_size_megabytes(thinlto_code_gen_t cg,
int max_size_megabytes)
Same as thinlto_codegen_set_cache_size_bytes, except the maximum size is in
megabytes (2^20 bytes).
|
static void |
LLVM.thinlto_codegen_set_codegen_only(thinlto_code_gen_t cg,
boolean codegen_only)
Perform CodeGen only: disable all other stages.
|
static void |
LLVM.thinlto_codegen_set_cpu(thinlto_code_gen_t cg,
BytePointer cpu)
Sets the cpu to generate code for.
|
static void |
LLVM.thinlto_codegen_set_cpu(thinlto_code_gen_t cg,
String cpu) |
static void |
LLVM.thinlto_codegen_set_final_cache_size_relative_to_available_space(thinlto_code_gen_t cg,
int percentage)
Sets the maximum cache size that can be persistent across build, in terms of
percentage of the available space on the disk.
|
static boolean |
LLVM.thinlto_codegen_set_pic_model(thinlto_code_gen_t cg,
int arg1)
Sets which PIC code model to generate.
|
static void |
LLVM.thinlto_codegen_set_savetemps_dir(thinlto_code_gen_t cg,
BytePointer save_temps_dir)
Sets the path to a directory to use as a storage for temporary bitcode files.
|
static void |
LLVM.thinlto_codegen_set_savetemps_dir(thinlto_code_gen_t cg,
String save_temps_dir) |
static int |
LLVM.thinlto_module_get_num_object_files(thinlto_code_gen_t cg)
Returns the number of object files produced by the ThinLTO CodeGenerator.
|
static int |
LLVM.thinlto_module_get_num_objects(thinlto_code_gen_t cg)
Returns the number of object files produced by the ThinLTO CodeGenerator.
|
static BytePointer |
LLVM.thinlto_module_get_object_file(thinlto_code_gen_t cg,
int index)
Returns the path to the ith object file produced by the ThinLTO
CodeGenerator.
|
static LTOObjectBuffer |
LLVM.thinlto_module_get_object(thinlto_code_gen_t cg,
int index)
Returns a reference to the ith object file produced by the ThinLTO
CodeGenerator.
|
static void |
LLVM.thinlto_set_generated_objects_dir(thinlto_code_gen_t cg,
BytePointer save_temps_dir)
Set the path to a directory where to save generated object files.
|
static void |
LLVM.thinlto_set_generated_objects_dir(thinlto_code_gen_t cg,
String save_temps_dir) |
Copyright © 2024. All rights reserved.