about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorcsmoe <csmoe@msn.com>2022-11-03 22:34:24 +0800
committercsmoe <csmoe@msn.com>2023-02-25 16:18:56 +0800
commita30de6e7cb1458e271ead5e40e49dbe709275537 (patch)
tree6c2c19a7f7ecd7b404e57b8a9cdb2da4f2fd830e /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parent07c993eba8b76eae497e98433ae075b00f01be10 (diff)
downloadrust-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.rs2
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);