1
1
#![ allow( non_camel_case_types) ]
2
+ #![ expect( dead_code) ]
2
3
3
4
use libc:: { c_char, c_uint} ;
4
5
@@ -8,23 +9,23 @@ use crate::llvm::Bool;
8
9
#[ link( name = "llvm-wrapper" , kind = "static" ) ]
9
10
extern "C" {
10
11
// Enzyme
11
- pub fn LLVMRustHasMetadata ( I : & Value , KindID : c_uint ) -> bool ;
12
- pub fn LLVMRustEraseInstUntilInclusive ( BB : & BasicBlock , I : & Value ) ;
13
- pub fn LLVMRustGetLastInstruction < ' a > ( BB : & BasicBlock ) -> Option < & ' a Value > ;
14
- pub fn LLVMRustDIGetInstMetadata ( I : & Value ) -> Option < & Metadata > ;
15
- pub fn LLVMRustEraseInstFromParent ( V : & Value ) ;
16
- pub fn LLVMRustGetTerminator < ' a > ( B : & BasicBlock ) -> & ' a Value ;
17
- pub fn LLVMRustVerifyFunction ( V : & Value , action : LLVMRustVerifierFailureAction ) -> Bool ;
12
+ pub ( crate ) fn LLVMRustHasMetadata ( I : & Value , KindID : c_uint ) -> bool ;
13
+ pub ( crate ) fn LLVMRustEraseInstUntilInclusive ( BB : & BasicBlock , I : & Value ) ;
14
+ pub ( crate ) fn LLVMRustGetLastInstruction < ' a > ( BB : & BasicBlock ) -> Option < & ' a Value > ;
15
+ pub ( crate ) fn LLVMRustDIGetInstMetadata ( I : & Value ) -> Option < & Metadata > ;
16
+ pub ( crate ) fn LLVMRustEraseInstFromParent ( V : & Value ) ;
17
+ pub ( crate ) fn LLVMRustGetTerminator < ' a > ( B : & BasicBlock ) -> & ' a Value ;
18
+ pub ( crate ) fn LLVMRustVerifyFunction ( V : & Value , action : LLVMRustVerifierFailureAction ) -> Bool ;
18
19
}
19
20
20
21
extern "C" {
21
22
// Enzyme
22
- pub fn LLVMDumpModule ( M : & Module ) ;
23
- pub fn LLVMDumpValue ( V : & Value ) ;
24
- pub fn LLVMGetFunctionCallConv ( F : & Value ) -> c_uint ;
25
- pub fn LLVMGetReturnType ( T : & Type ) -> & Type ;
26
- pub fn LLVMGetParams ( Fnc : & Value , parms : * mut & Value ) ;
27
- pub fn LLVMGetNamedFunction ( M : & Module , Name : * const c_char ) -> Option < & Value > ;
23
+ pub ( crate ) fn LLVMDumpModule ( M : & Module ) ;
24
+ pub ( crate ) fn LLVMDumpValue ( V : & Value ) ;
25
+ pub ( crate ) fn LLVMGetFunctionCallConv ( F : & Value ) -> c_uint ;
26
+ pub ( crate ) fn LLVMGetReturnType ( T : & Type ) -> & Type ;
27
+ pub ( crate ) fn LLVMGetParams ( Fnc : & Value , parms : * mut & Value ) ;
28
+ pub ( crate ) fn LLVMGetNamedFunction ( M : & Module , Name : * const c_char ) -> Option < & Value > ;
28
29
}
29
30
30
31
#[ repr( C ) ]
0 commit comments