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