mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-03 22:32:14 +00:00
53 lines
28 KiB
HTML
53 lines
28 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `lto` mod in crate `llvm_sys`."><meta name="keywords" content="rust, rustlang, rust-lang, lto"><title>llvm_sys::lto - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../llvm_sys/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module lto</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../index.html'>llvm_sys</a></p><script>window.sidebarCurrent = {name: 'lto', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/llvm_sys/lto.rs.html#1-399' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>llvm_sys</a>::<wbr><a class="mod" href=''>lto</a></span></h1><div class='docblock'><p>Abstract link time optimization.</p>
|
||
<h2 id="thinlto" class="section-header"><a href="#thinlto">ThinLTO</a></h2>
|
||
<p>ThinLTO is designed to do LTO while requiring fewer resources than regular
|
||
LTO. It can run much faster and in less memory (comparable to linking
|
||
without LTO) than regular LTO, with essentially no loss in optimization.</p>
|
||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||
<table><tr class='module-item'><td><a class="struct" href="struct.LTOObjectBuffer.html" title='llvm_sys::lto::LTOObjectBuffer struct'>LTOObjectBuffer</a></td><td class='docblock-short'><p>Type to wrap a single object returned by ThinLTO.</p>
|
||
</td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||
<table><tr class='module-item'><td><a class="enum" href="enum.LLVMOpaqueLTOCodeGenerator.html" title='llvm_sys::lto::LLVMOpaqueLTOCodeGenerator enum'>LLVMOpaqueLTOCodeGenerator</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.LLVMOpaqueLTOModule.html" title='llvm_sys::lto::LLVMOpaqueLTOModule enum'>LLVMOpaqueLTOModule</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.LLVMOpaqueThinLTOCodeGenerator.html" title='llvm_sys::lto::LLVMOpaqueThinLTOCodeGenerator enum'>LLVMOpaqueThinLTOCodeGenerator</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.lto_codegen_diagnostic_severity_t.html" title='llvm_sys::lto::lto_codegen_diagnostic_severity_t enum'>lto_codegen_diagnostic_severity_t</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.lto_codegen_model.html" title='llvm_sys::lto::lto_codegen_model enum'>lto_codegen_model</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.lto_debug_model.html" title='llvm_sys::lto::lto_debug_model enum'>lto_debug_model</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="enum" href="enum.lto_symbol_attributes.html" title='llvm_sys::lto::lto_symbol_attributes enum'>lto_symbol_attributes</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||
<table><tr class='module-item'><td><a class="fn" href="fn.lto_api_version.html" title='llvm_sys::lto::lto_api_version fn'>lto_api_version</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Returns the runtime API version.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_add_module.html" title='llvm_sys::lto::lto_codegen_add_module fn'>lto_codegen_add_module</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_add_must_preserve_symbol.html" title='llvm_sys::lto::lto_codegen_add_must_preserve_symbol fn'>lto_codegen_add_must_preserve_symbol</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_compile.html" title='llvm_sys::lto::lto_codegen_compile fn'>lto_codegen_compile</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_compile_optimized.html" title='llvm_sys::lto::lto_codegen_compile_optimized fn'>lto_codegen_compile_optimized</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Generates code for the optimized merged module into one native object file.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_compile_to_file.html" title='llvm_sys::lto::lto_codegen_compile_to_file fn'>lto_codegen_compile_to_file</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_create.html" title='llvm_sys::lto::lto_codegen_create fn'>lto_codegen_create</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_create_in_local_context.html" title='llvm_sys::lto::lto_codegen_create_in_local_context fn'>lto_codegen_create_in_local_context</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_debug_options.html" title='llvm_sys::lto::lto_codegen_debug_options fn'>lto_codegen_debug_options</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_dispose.html" title='llvm_sys::lto::lto_codegen_dispose fn'>lto_codegen_dispose</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_optimize.html" title='llvm_sys::lto::lto_codegen_optimize fn'>lto_codegen_optimize</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Runs optimization for the merged module.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_assembler_args.html" title='llvm_sys::lto::lto_codegen_set_assembler_args fn'>lto_codegen_set_assembler_args</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_assembler_path.html" title='llvm_sys::lto::lto_codegen_set_assembler_path fn'>lto_codegen_set_assembler_path</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_cpu.html" title='llvm_sys::lto::lto_codegen_set_cpu fn'>lto_codegen_set_cpu</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_debug_model.html" title='llvm_sys::lto::lto_codegen_set_debug_model fn'>lto_codegen_set_debug_model</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_diagnostic_handler.html" title='llvm_sys::lto::lto_codegen_set_diagnostic_handler fn'>lto_codegen_set_diagnostic_handler</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_module.html" title='llvm_sys::lto::lto_codegen_set_module fn'>lto_codegen_set_module</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Sets the object module for code gneeration. This will transfer ownership
|
||
of the module to the code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_pic_model.html" title='llvm_sys::lto::lto_codegen_set_pic_model fn'>lto_codegen_set_pic_model</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_should_embed_uselists.html" title='llvm_sys::lto::lto_codegen_set_should_embed_uselists fn'>lto_codegen_set_should_embed_uselists</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set whether to embed uselists in bitcode.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_set_should_internalize.html" title='llvm_sys::lto::lto_codegen_set_should_internalize fn'>lto_codegen_set_should_internalize</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Sets if we should run the itnernalize pass during optimization and code generation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_codegen_write_merged_modules.html" title='llvm_sys::lto::lto_codegen_write_merged_modules fn'>lto_codegen_write_merged_modules</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_get_error_message.html" title='llvm_sys::lto::lto_get_error_message fn'>lto_get_error_message</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_get_version.html" title='llvm_sys::lto::lto_get_version fn'>lto_get_version</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_initialize_disassembler.html" title='llvm_sys::lto::lto_initialize_disassembler fn'>lto_initialize_disassembler</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_create.html" title='llvm_sys::lto::lto_module_create fn'>lto_module_create</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_create_from_fd.html" title='llvm_sys::lto::lto_module_create_from_fd fn'>lto_module_create_from_fd</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_create_from_fd_at_offset.html" title='llvm_sys::lto::lto_module_create_from_fd_at_offset fn'>lto_module_create_from_fd_at_offset</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_create_from_memory.html" title='llvm_sys::lto::lto_module_create_from_memory fn'>lto_module_create_from_memory</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_create_from_memory_with_path.html" title='llvm_sys::lto::lto_module_create_from_memory_with_path fn'>lto_module_create_from_memory_with_path</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_create_in_codegen_context.html" title='llvm_sys::lto::lto_module_create_in_codegen_context fn'>lto_module_create_in_codegen_context</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_create_in_local_context.html" title='llvm_sys::lto::lto_module_create_in_local_context fn'>lto_module_create_in_local_context</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_dispose.html" title='llvm_sys::lto::lto_module_dispose fn'>lto_module_dispose</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_get_linkeropts.html" title='llvm_sys::lto::lto_module_get_linkeropts fn'>lto_module_get_linkeropts</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Returns the module's linker options.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_get_num_symbols.html" title='llvm_sys::lto::lto_module_get_num_symbols fn'>lto_module_get_num_symbols</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_get_symbol_attribute.html" title='llvm_sys::lto::lto_module_get_symbol_attribute fn'>lto_module_get_symbol_attribute</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_get_symbol_name.html" title='llvm_sys::lto::lto_module_get_symbol_name fn'>lto_module_get_symbol_name</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_get_target_triple.html" title='llvm_sys::lto::lto_module_get_target_triple fn'>lto_module_get_target_triple</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_has_objc_category.html" title='llvm_sys::lto::lto_module_has_objc_category fn'>lto_module_has_objc_category</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Return true if <code>Buffer</code> contains a bitcode file with ObjC code
|
||
(category or class) in it.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_is_object_file.html" title='llvm_sys::lto::lto_module_is_object_file fn'>lto_module_is_object_file</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_is_object_file_for_target.html" title='llvm_sys::lto::lto_module_is_object_file_for_target fn'>lto_module_is_object_file_for_target</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_is_object_file_in_memory.html" title='llvm_sys::lto::lto_module_is_object_file_in_memory fn'>lto_module_is_object_file_in_memory</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Checks if a buffer is a loadable object file.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_is_object_file_in_memory_for_target.html" title='llvm_sys::lto::lto_module_is_object_file_in_memory_for_target fn'>lto_module_is_object_file_in_memory_for_target</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_is_thinlto.html" title='llvm_sys::lto::lto_module_is_thinlto fn'>lto_module_is_thinlto</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Test if a module has ThinLTO linking support.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.lto_module_set_target_triple.html" title='llvm_sys::lto::lto_module_set_target_triple fn'>lto_module_set_target_triple</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_add_cross_referenced_symbol.html" title='llvm_sys::lto::thinlto_codegen_add_cross_referenced_symbol fn'>thinlto_codegen_add_cross_referenced_symbol</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Add a symbol to the list of global symbols that are cross-referenced
|
||
between ThinLTO files.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_add_module.html" title='llvm_sys::lto::thinlto_codegen_add_module fn'>thinlto_codegen_add_module</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Add a module to a code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_add_must_preserve_symbol.html" title='llvm_sys::lto::thinlto_codegen_add_must_preserve_symbol fn'>thinlto_codegen_add_must_preserve_symbol</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Add a symbol to the list of global symbols that must exist in the
|
||
final generated code.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_disable_codegen.html" title='llvm_sys::lto::thinlto_codegen_disable_codegen fn'>thinlto_codegen_disable_codegen</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Disable code generation (running all stages until codegen).</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_dispose.html" title='llvm_sys::lto::thinlto_codegen_dispose fn'>thinlto_codegen_dispose</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Frees a code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_process.html" title='llvm_sys::lto::thinlto_codegen_process fn'>thinlto_codegen_process</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Optimize and codegen all modules attached to the code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_cache_dir.html" title='llvm_sys::lto::thinlto_codegen_set_cache_dir fn'>thinlto_codegen_set_cache_dir</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_cache_entry_expiration.html" title='llvm_sys::lto::thinlto_codegen_set_cache_entry_expiration fn'>thinlto_codegen_set_cache_entry_expiration</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set the expiration (in seconds) for cache entries.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_cache_pruning_interval.html" title='llvm_sys::lto::thinlto_codegen_set_cache_pruning_interval fn'>thinlto_codegen_set_cache_pruning_interval</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set the cache pruning interval, in seconds.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_cache_size_bytes.html" title='llvm_sys::lto::thinlto_codegen_set_cache_size_bytes fn'>thinlto_codegen_set_cache_size_bytes</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set the maximum size of the cache directory (in bytes). A value over the
|
||
amount of available space on the disk will be reduced to the amount of
|
||
available space. An unspecified default value will be applied. A value of 0
|
||
will be ignored.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_cache_size_files.html" title='llvm_sys::lto::thinlto_codegen_set_cache_size_files fn'>thinlto_codegen_set_cache_size_files</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Sets the maximum number of files in the cache directory. An unspecified default value will be applied. A value of 0 will be ignored.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_cache_size_megabytes.html" title='llvm_sys::lto::thinlto_codegen_set_cache_size_megabytes fn'>thinlto_codegen_set_cache_size_megabytes</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Same as thinlto_codegen_set_cache_size_bytes, except the maximum size is in
|
||
megabytes (2^20 bytes).</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_codegen_only.html" title='llvm_sys::lto::thinlto_codegen_set_codegen_only fn'>thinlto_codegen_set_codegen_only</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Perform codegen only; disable all other stages.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_cpu.html" title='llvm_sys::lto::thinlto_codegen_set_cpu fn'>thinlto_codegen_set_cpu</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set the CPU to generate code for.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_final_cache_size_relative_to_available_space.html" title='llvm_sys::lto::thinlto_codegen_set_final_cache_size_relative_to_available_space fn'>thinlto_codegen_set_final_cache_size_relative_to_available_space</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set the maximum cache size to persist across builds.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_pic_model.html" title='llvm_sys::lto::thinlto_codegen_set_pic_model fn'>thinlto_codegen_set_pic_model</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set which PIC code model to generate.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_codegen_set_savetemps_dir.html" title='llvm_sys::lto::thinlto_codegen_set_savetemps_dir fn'>thinlto_codegen_set_savetemps_dir</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set the path to a directory to use as temporary bitcode storage.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_create_codegen.html" title='llvm_sys::lto::thinlto_create_codegen fn'>thinlto_create_codegen</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Instantiates a ThinLTO code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_debug_options.html" title='llvm_sys::lto::thinlto_debug_options fn'>thinlto_debug_options</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Parse -mllvm style debug options.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_module_get_num_object_files.html" title='llvm_sys::lto::thinlto_module_get_num_object_files fn'>thinlto_module_get_num_object_files</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Return the number of object files produced by the code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_module_get_num_objects.html" title='llvm_sys::lto::thinlto_module_get_num_objects fn'>thinlto_module_get_num_objects</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Return the number of object files produced by the code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_module_get_object.html" title='llvm_sys::lto::thinlto_module_get_object fn'>thinlto_module_get_object</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Return a reference to the <code>index</code>th object file produced by the
|
||
code generator.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_module_get_object_file.html" title='llvm_sys::lto::thinlto_module_get_object_file fn'>thinlto_module_get_object_file</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Return the path to the ith output object file.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.thinlto_set_generated_objects_dir.html" title='llvm_sys::lto::thinlto_set_generated_objects_dir fn'>thinlto_set_generated_objects_dir</a><a title='unsafe function' href='#'><sup>⚠</sup></a></td><td class='docblock-short'><p>Set the path to a directory to save generated object files.</p>
|
||
</td></tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
|
||
<table><tr class='module-item'><td><a class="type" href="type.lto_bool_t.html" title='llvm_sys::lto::lto_bool_t type'>lto_bool_t</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="type" href="type.lto_code_gen_t.html" title='llvm_sys::lto::lto_code_gen_t type'>lto_code_gen_t</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="type" href="type.lto_diagnostic_handler_t.html" title='llvm_sys::lto::lto_diagnostic_handler_t type'>lto_diagnostic_handler_t</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="type" href="type.lto_module_t.html" title='llvm_sys::lto::lto_module_t type'>lto_module_t</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="type" href="type.thinlto_code_gen_t.html" title='llvm_sys::lto::thinlto_code_gen_t type'>thinlto_code_gen_t</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "llvm_sys";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html> |