@@ -30,20 +30,20 @@ unsafe extern "C" {
30
30
31
31
#[ repr( C ) ]
32
32
#[ derive( Copy , Clone , PartialEq ) ]
33
- pub enum LLVMRustVerifierFailureAction {
33
+ pub ( crate ) enum LLVMRustVerifierFailureAction {
34
34
LLVMAbortProcessAction = 0 ,
35
35
LLVMPrintMessageAction = 1 ,
36
36
LLVMReturnStatusAction = 2 ,
37
37
}
38
38
39
39
#[ cfg( llvm_enzyme) ]
40
- pub use self :: Enzyme_AD :: * ;
40
+ pub ( crate ) use self :: Enzyme_AD :: * ;
41
41
42
42
#[ cfg( llvm_enzyme) ]
43
- pub mod Enzyme_AD {
43
+ pub ( crate ) mod Enzyme_AD {
44
44
use libc:: c_void;
45
45
extern "C" {
46
- pub fn EnzymeSetCLBool ( arg1 : * mut :: std:: os:: raw:: c_void , arg2 : u8 ) ;
46
+ pub ( crate ) fn EnzymeSetCLBool ( arg1 : * mut :: std:: os:: raw:: c_void , arg2 : u8 ) ;
47
47
}
48
48
extern "C" {
49
49
static mut EnzymePrintPerf : c_void ;
@@ -55,77 +55,77 @@ pub mod Enzyme_AD {
55
55
static mut EnzymeInline : c_void ;
56
56
static mut RustTypeRules : c_void ;
57
57
}
58
- pub fn set_print_perf ( print : bool ) {
58
+ pub ( crate ) fn set_print_perf ( print : bool ) {
59
59
unsafe {
60
60
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintPerf ) , print as u8 ) ;
61
61
}
62
62
}
63
- pub fn set_print_activity ( print : bool ) {
63
+ pub ( crate ) fn set_print_activity ( print : bool ) {
64
64
unsafe {
65
65
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintActivity ) , print as u8 ) ;
66
66
}
67
67
}
68
- pub fn set_print_type ( print : bool ) {
68
+ pub ( crate ) fn set_print_type ( print : bool ) {
69
69
unsafe {
70
70
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintType ) , print as u8 ) ;
71
71
}
72
72
}
73
- pub fn set_print ( print : bool ) {
73
+ pub ( crate ) fn set_print ( print : bool ) {
74
74
unsafe {
75
75
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrint ) , print as u8 ) ;
76
76
}
77
77
}
78
- pub fn set_strict_aliasing ( strict : bool ) {
78
+ pub ( crate ) fn set_strict_aliasing ( strict : bool ) {
79
79
unsafe {
80
80
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymeStrictAliasing ) , strict as u8 ) ;
81
81
}
82
82
}
83
- pub fn set_loose_types ( loose : bool ) {
83
+ pub ( crate ) fn set_loose_types ( loose : bool ) {
84
84
unsafe {
85
85
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( looseTypeAnalysis) , loose as u8 ) ;
86
86
}
87
87
}
88
- pub fn set_inline ( val : bool ) {
88
+ pub ( crate ) fn set_inline ( val : bool ) {
89
89
unsafe {
90
90
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymeInline ) , val as u8 ) ;
91
91
}
92
92
}
93
- pub fn set_rust_rules ( val : bool ) {
93
+ pub ( crate ) fn set_rust_rules ( val : bool ) {
94
94
unsafe {
95
95
EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( RustTypeRules ) , val as u8 ) ;
96
96
}
97
97
}
98
98
}
99
99
100
100
#[ cfg( not( llvm_enzyme) ) ]
101
- pub use self :: Fallback_AD :: * ;
101
+ pub ( crate ) use self :: Fallback_AD :: * ;
102
102
103
103
#[ cfg( not( llvm_enzyme) ) ]
104
- pub mod Fallback_AD {
104
+ pub ( crate ) mod Fallback_AD {
105
105
#![ allow( unused_variables) ]
106
106
107
- pub fn set_inline ( val : bool ) {
107
+ pub ( crate ) fn set_inline ( val : bool ) {
108
108
unimplemented ! ( )
109
109
}
110
- pub fn set_print_perf ( print : bool ) {
110
+ pub ( crate ) fn set_print_perf ( print : bool ) {
111
111
unimplemented ! ( )
112
112
}
113
- pub fn set_print_activity ( print : bool ) {
113
+ pub ( crate ) fn set_print_activity ( print : bool ) {
114
114
unimplemented ! ( )
115
115
}
116
- pub fn set_print_type ( print : bool ) {
116
+ pub ( crate ) fn set_print_type ( print : bool ) {
117
117
unimplemented ! ( )
118
118
}
119
- pub fn set_print ( print : bool ) {
119
+ pub ( crate ) fn set_print ( print : bool ) {
120
120
unimplemented ! ( )
121
121
}
122
- pub fn set_strict_aliasing ( strict : bool ) {
122
+ pub ( crate ) fn set_strict_aliasing ( strict : bool ) {
123
123
unimplemented ! ( )
124
124
}
125
- pub fn set_loose_types ( loose : bool ) {
125
+ pub ( crate ) fn set_loose_types ( loose : bool ) {
126
126
unimplemented ! ( )
127
127
}
128
- pub fn set_rust_rules ( val : bool ) {
128
+ pub ( crate ) fn set_rust_rules ( val : bool ) {
129
129
unimplemented ! ( )
130
130
}
131
131
}
0 commit comments