diff options
| author | csmoe <csmoe@msn.com> | 2022-11-03 22:34:24 +0800 |
|---|---|---|
| committer | csmoe <csmoe@msn.com> | 2023-02-25 16:18:56 +0800 |
| commit | a30de6e7cb1458e271ead5e40e49dbe709275537 (patch) | |
| tree | 6c2c19a7f7ecd7b404e57b8a9cdb2da4f2fd830e /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | 07c993eba8b76eae497e98433ae075b00f01be10 (diff) | |
| download | rust-a30de6e7cb1458e271ead5e40e49dbe709275537.tar.gz rust-a30de6e7cb1458e271ead5e40e49dbe709275537.zip | |
record llvm cgu instruction stats
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 7aab666fc5e..1b3ce2e83a9 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -2410,6 +2410,8 @@ extern "C" { pub fn LLVMRustModuleBufferLen(p: &ModuleBuffer) -> usize; pub fn LLVMRustModuleBufferFree(p: &'static mut ModuleBuffer); pub fn LLVMRustModuleCost(M: &Module) -> u64; + #[allow(improper_ctypes)] + pub fn LLVMRustModuleInstructionStats(M: &Module, Str: &RustString); pub fn LLVMRustThinLTOBufferCreate(M: &Module, is_thin: bool) -> &'static mut ThinLTOBuffer; pub fn LLVMRustThinLTOBufferFree(M: &'static mut ThinLTOBuffer); |
