| Modifier and Type | Class and Description |
|---|---|
| public static class | LLVMLTO.
Contains the function pointers loaded from the LTO |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static SharedLibrary | |
| public static int | |
| public static boolean | lto_codegen_add_module(long cg, long mod)
Add an object module to the set of modules for which code will be generated. |
| public static void | lto_codegen_add_must_preserve_symbol(long cg, ByteBuffer symbol)
Adds to a list of all global symbols that must exist in the final generated code. |
| public static void | lto_codegen_add_must_preserve_symbol(long cg, CharSequence symbol)
Adds to a list of all global symbols that must exist in the final generated code. |
| public static ByteBuffer | |
| public static ByteBuffer | lto_codegen_compile_optimized(long cg)
Generates code for the optimized merged module into one native object file. |
| public static boolean | lto_codegen_compile_to_file(long cg, PointerBuffer name)
Generates code for all added modules into one native object file. |
| public static long | |
| public static long | |
| public static void | |
| public static void | |
| public static void | lto_codegen_debug_options_array(long cg, PointerBuffer options)
Same as |
| public static void | |
| public static boolean | |
| public static void | lto_codegen_set_assembler_args(long cg, PointerBuffer args)
Sets extra arguments that libLTO should pass to the assembler. |
| public static void | lto_codegen_set_assembler_path(long cg, ByteBuffer path)
Sets the location of the assembler tool to run. |
| public static void | lto_codegen_set_assembler_path(long cg, CharSequence path)
Sets the location of the assembler tool to run. |
| public static void | |
| public static void | |
| public static boolean | |
| public static void | lto_codegen_set_diagnostic_handler(long cg, LTODiagnosticHandlerI handler, long ctxt)
Set a diagnostic handler and the related context ( |
| public static void | |
| public static boolean | |
| public static void | lto_codegen_set_should_embed_uselists(long cg, boolean ShouldEmbedUselists)
Set whether to embed uselists in bitcode. |
| public static void | lto_codegen_set_should_internalize(long cg, boolean ShouldInternalize)
Sets if we should run internalize pass during optimization and code generation. |
| public static boolean | lto_codegen_write_merged_modules(long cg, ByteBuffer path)
Writes a new object file at the specified path that contains the merged contents of all modules added so far. |
| public static boolean | lto_codegen_write_merged_modules(long cg, CharSequence path)
Writes a new object file at the specified path that contains the merged contents of all modules added so far. |
| public static String | |
| public static String | |
| public static void | |
| public static long | |
| public static long | |
| public static void | |
| public static String | lto_input_get_dependent_library(long input, long index)
Returns the |
| public static int | lto_input_get_num_dependent_libraries(long input)
Returns the number of dependent library specifiers for the given LTO input file. |
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static long | lto_module_create_from_fd_at_offset(int fd, ByteBuffer path, long file_size, long map_size, long offset)
Loads an object file from disk. |
| public static long | lto_module_create_from_fd_at_offset(int fd, CharSequence path, long file_size, long map_size, long offset)
Loads an object file from disk. |
| public static long | |
| public static long | lto_module_create_from_memory_with_path(ByteBuffer mem, ByteBuffer path)
Loads an object file from memory with an extra path argument. |
| public static long | lto_module_create_from_memory_with_path(ByteBuffer mem, CharSequence path)
Loads an object file from memory with an extra path argument. |
| public static long | lto_module_create_in_codegen_context(ByteBuffer mem, ByteBuffer path, long cg)
Loads an object file in the codegen context. |
| public static long | lto_module_create_in_codegen_context(ByteBuffer mem, CharSequence path, long cg)
Loads an object file in the codegen context. |
| public static long | lto_module_create_in_local_context(ByteBuffer mem, ByteBuffer path)
Loads an object file in its own context. |
| public static long | lto_module_create_in_local_context(ByteBuffer mem, CharSequence path)
Loads an object file in its own context. |
| public static void | |
| public static String | |
| public static boolean | Returns: true on error (checkget_error_message for details).must be non- out_cputype, IntBuffer NULLmust be non- out_cpusubtype)NULLIf targeting mach-o on darwin, this function gets the CPU type and subtype that will end up being encoded in the mach-o header. |
| public static int | |
| public static int | lto_module_get_symbol_attribute(long mod, int index)
Returns the attributes of the ith symbol in the object module. |
| public static String | lto_module_get_symbol_name(long mod, int index)
Returns the name of the ith symbol in the object module. |
| public static String | lto_module_get_target_triple(long mod)
Returns triple string which the object module was compiled under. |
| public static boolean | Returns: true if the module has either the@llvm.global_ctors or the @llvm.global_dtors symbol. Otherwise returns false.This function can be used by the linker to check if a given module has any constructor or destructor functions. |
| public static boolean | lto_module_has_objc_category(ByteBuffer mem)
Return true if |
| public static boolean | |
| public static boolean | |
| public static boolean | lto_module_is_object_file_for_target(ByteBuffer path, ByteBuffer target_triple_prefix)
Checks if a file is a loadable object compiled for requested target. |
| public static boolean | lto_module_is_object_file_for_target(CharSequence path, CharSequence target_triple_prefix)
Checks if a file is a loadable object compiled for requested target. |
| public static boolean | |
| public static boolean | lto_module_is_object_file_in_memory_for_target(ByteBuffer mem, ByteBuffer target_triple_prefix)
Checks if a buffer is a loadable object compiled for requested target. |
| public static boolean | lto_module_is_object_file_in_memory_for_target(ByteBuffer mem, CharSequence target_triple_prefix)
Checks if a buffer is a loadable object compiled for requested target. |
| public static boolean | |
| public static void | lto_module_set_target_triple(long mod, ByteBuffer triple)
Sets triple string with which the object will be codegened. |
| public static void | lto_module_set_target_triple(long mod, CharSequence triple)
Sets triple string with which the object will be codegened. |
| public static PointerBuffer | lto_runtime_lib_symbols_list()
Returns the list of |
| public static void | lto_set_debug_options(PointerBuffer options)
Parses options immediately, making them available as early as possible. |
| public static void | nlto_codegen_add_must_preserve_symbol(long cg, long symbol)
Unsafe version of: |
| public static long | |
| public static long | |
| public static boolean | |
| public static void | |
| public static void | nlto_codegen_debug_options_array(long cg, long options, int number)
Unsafe version of: |
| public static void | nlto_codegen_set_assembler_args(long cg, long args, int nargs)
Unsafe version of: |
| public static void | |
| public static void | |
| public static void | nlto_codegen_set_diagnostic_handler(long cg, long handler, long ctxt)
Unsafe version of: |
| public static boolean | nlto_codegen_write_merged_modules(long cg, long path)
Unsafe version of: |
| public static long | |
| public static long | |
| public static long | |
| public static long | nlto_input_get_dependent_library(long input, long index, long size)
Unsafe version of: |
| public static long | |
| public static long | nlto_module_create_from_fd(int fd, long path, long file_size)
Unsafe version of: |
| public static long | nlto_module_create_from_fd_at_offset(int fd, long path, long file_size, long map_size, long offset)
Unsafe version of: |
| public static long | |
| public static long | nlto_module_create_from_memory_with_path(long mem, long length, long path)
Unsafe version of: |
| public static long | nlto_module_create_in_codegen_context(long mem, long length, long path, long cg)
Unsafe version of: |
| public static long | nlto_module_create_in_local_context(long mem, long length, long path)
Unsafe version of: |
| public static long | |
| public static boolean | nlto_module_get_macho_cputype(long mod, long out_cputype, long out_cpusubtype)
Unsafe version of: |
| public static long | |
| public static long | |
| public static boolean | |
| public static boolean | |
| public static boolean | nlto_module_is_object_file_for_target(long path, long target_triple_prefix)
Unsafe version of: |
| public static boolean | nlto_module_is_object_file_in_memory(long mem, long length)
Unsafe version of: |
| public static boolean | nlto_module_is_object_file_in_memory_for_target(long mem, long length, long target_triple_prefix)
Unsafe version of: |
| public static void | |
| public static long | |
| public static void | |
| public static void | nthinlto_codegen_add_cross_referenced_symbol(long cg, long name, int length)
Unsafe version of: |
| public static void | nthinlto_codegen_add_module(long cg, long identifier, long data, int length)
Unsafe version of: |
| public static void | nthinlto_codegen_add_must_preserve_symbol(long cg, long name, int length)
Unsafe version of: |
| public static void | nthinlto_codegen_set_cache_dir(long cg, long cache_dir)
Unsafe version of: |
| public static void | |
| public static void | nthinlto_codegen_set_savetemps_dir(long cg, long save_temps_dir)
Unsafe version of: |
| public static void | |
| public static native void | nthinlto_module_get_object(long cg, int index, long __functionAddress, long __result)
Unsafe version of: |
| public static void | nthinlto_module_get_object(long cg, int index, long __result)
Unsafe version of: |
| public static long | nthinlto_module_get_object_file(long cg, int index)
Unsafe version of: |
| public static void | nthinlto_set_generated_objects_dir(long cg, long save_temps_dir)
Unsafe version of: |
| public static void | thinlto_codegen_add_cross_referenced_symbol(long cg, ByteBuffer name)
Adds a symbol to the list of global symbols that are cross-referenced between ThinLTO files. |
| public static void | thinlto_codegen_add_cross_referenced_symbol(long cg, CharSequence name)
Adds a symbol to the list of global symbols that are cross-referenced between ThinLTO files. |
| public static void | thinlto_codegen_add_module(long cg, ByteBuffer identifier, ByteBuffer data)
Add a module to a ThinLTO code generator. |
| public static void | thinlto_codegen_add_module(long cg, CharSequence identifier, ByteBuffer data)
Add a module to a ThinLTO code generator. |
| public static void | thinlto_codegen_add_must_preserve_symbol(long cg, ByteBuffer name)
Adds a symbol to the list of global symbols that must exist in the final generated code. |
| public static void | thinlto_codegen_add_must_preserve_symbol(long cg, CharSequence name)
Adds a symbol to the list of global symbols that must exist in the final generated code. |
| public static void | thinlto_codegen_disable_codegen(long cg, boolean disable)
Disable CodeGen, only run the stages till codegen and stop. |
| public static void | |
| public static void | thinlto_codegen_process(long cg)
Optimize and codegen all the modules added to the codegenerator using ThinLTO. |
| public static void | thinlto_codegen_set_cache_dir(long cg, ByteBuffer cache_dir)
Sets the path to a directory to use as a cache storage for incremental build. |
| public static void | thinlto_codegen_set_cache_dir(long cg, CharSequence cache_dir)
Sets the path to a directory to use as a cache storage for incremental build. |
| public static void | thinlto_codegen_set_cache_entry_expiration(long cg, int expiration)
Sets the expiration (in seconds) for an entry in the cache. |
| public static void | thinlto_codegen_set_cache_pruning_interval(long cg, int interval)
Sets the cache pruning interval (in seconds). |
| public static void | thinlto_codegen_set_cache_size_bytes(long cg, int max_size_bytes)
Sets the maximum size of the cache directory (in bytes). |
| public static void | thinlto_codegen_set_cache_size_files(long cg, int max_size_files)
Sets the maximum number of files in the cache directory. |
| public static void | thinlto_codegen_set_cache_size_megabytes(long cg, int max_size_megabytes)
Same as |
| public static void | thinlto_codegen_set_codegen_only(long cg, boolean codegen_only)
Perform CodeGen only: disable all other stages. |
| public static void | |
| public static void | |
| public static void | thinlto_codegen_set_final_cache_size_relative_to_available_space(long 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. |
| public static boolean | |
| public static void | thinlto_codegen_set_savetemps_dir(long cg, ByteBuffer save_temps_dir)
Sets the path to a directory to use as a storage for temporary bitcode files. |
| public static void | thinlto_codegen_set_savetemps_dir(long cg, CharSequence save_temps_dir)
Sets the path to a directory to use as a storage for temporary bitcode files. |
| public static long | |
| public static void | |
| public static int | thinlto_module_get_num_object_files(long cg)
Returns the number of object files produced by the ThinLTO CodeGenerator. |
| public static int | thinlto_module_get_num_objects(long cg)
Returns the number of object files produced by the ThinLTO CodeGenerator. |
| public static LTOObjectBuffer | thinlto_module_get_object(long cg, int index, LTOObjectBuffer __result)
Returns a reference to the ith object file produced by the ThinLTO CodeGenerator. |
| public static String | thinlto_module_get_object_file(long cg, int index)
Returns the path to the ith object file produced by the ThinLTO CodeGenerator. |
| public static void | thinlto_set_generated_objects_dir(long cg, ByteBuffer save_temps_dir)
Set the path to a directory where to save generated object files. |
| public static void | thinlto_set_generated_objects_dir(long cg, CharSequence save_temps_dir)
Set the path to a directory where to save generated object files. |