@@ -30,20 +30,20 @@ unsafe extern "C" {
3030
3131#[ repr( C ) ]
3232#[ derive( Copy , Clone , PartialEq ) ]
33- pub enum LLVMRustVerifierFailureAction {
33+ pub ( crate ) enum LLVMRustVerifierFailureAction {
3434 LLVMAbortProcessAction = 0 ,
3535 LLVMPrintMessageAction = 1 ,
3636 LLVMReturnStatusAction = 2 ,
3737}
3838
3939#[ cfg( llvm_enzyme) ]
40- pub use self :: Enzyme_AD :: * ;
40+ pub ( crate ) use self :: Enzyme_AD :: * ;
4141
4242#[ cfg( llvm_enzyme) ]
43- pub mod Enzyme_AD {
43+ pub ( crate ) mod Enzyme_AD {
4444 use libc:: c_void;
4545 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 ) ;
4747 }
4848 extern "C" {
4949 static mut EnzymePrintPerf : c_void ;
@@ -55,77 +55,77 @@ pub mod Enzyme_AD {
5555 static mut EnzymeInline : c_void ;
5656 static mut RustTypeRules : c_void ;
5757 }
58- pub fn set_print_perf ( print : bool ) {
58+ pub ( crate ) fn set_print_perf ( print : bool ) {
5959 unsafe {
6060 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintPerf ) , print as u8 ) ;
6161 }
6262 }
63- pub fn set_print_activity ( print : bool ) {
63+ pub ( crate ) fn set_print_activity ( print : bool ) {
6464 unsafe {
6565 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintActivity ) , print as u8 ) ;
6666 }
6767 }
68- pub fn set_print_type ( print : bool ) {
68+ pub ( crate ) fn set_print_type ( print : bool ) {
6969 unsafe {
7070 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintType ) , print as u8 ) ;
7171 }
7272 }
73- pub fn set_print ( print : bool ) {
73+ pub ( crate ) fn set_print ( print : bool ) {
7474 unsafe {
7575 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrint ) , print as u8 ) ;
7676 }
7777 }
78- pub fn set_strict_aliasing ( strict : bool ) {
78+ pub ( crate ) fn set_strict_aliasing ( strict : bool ) {
7979 unsafe {
8080 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymeStrictAliasing ) , strict as u8 ) ;
8181 }
8282 }
83- pub fn set_loose_types ( loose : bool ) {
83+ pub ( crate ) fn set_loose_types ( loose : bool ) {
8484 unsafe {
8585 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( looseTypeAnalysis) , loose as u8 ) ;
8686 }
8787 }
88- pub fn set_inline ( val : bool ) {
88+ pub ( crate ) fn set_inline ( val : bool ) {
8989 unsafe {
9090 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymeInline ) , val as u8 ) ;
9191 }
9292 }
93- pub fn set_rust_rules ( val : bool ) {
93+ pub ( crate ) fn set_rust_rules ( val : bool ) {
9494 unsafe {
9595 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( RustTypeRules ) , val as u8 ) ;
9696 }
9797 }
9898}
9999
100100#[ cfg( not( llvm_enzyme) ) ]
101- pub use self :: Fallback_AD :: * ;
101+ pub ( crate ) use self :: Fallback_AD :: * ;
102102
103103#[ cfg( not( llvm_enzyme) ) ]
104- pub mod Fallback_AD {
104+ pub ( crate ) mod Fallback_AD {
105105 #![ allow( unused_variables) ]
106106
107- pub fn set_inline ( val : bool ) {
107+ pub ( crate ) fn set_inline ( val : bool ) {
108108 unimplemented ! ( )
109109 }
110- pub fn set_print_perf ( print : bool ) {
110+ pub ( crate ) fn set_print_perf ( print : bool ) {
111111 unimplemented ! ( )
112112 }
113- pub fn set_print_activity ( print : bool ) {
113+ pub ( crate ) fn set_print_activity ( print : bool ) {
114114 unimplemented ! ( )
115115 }
116- pub fn set_print_type ( print : bool ) {
116+ pub ( crate ) fn set_print_type ( print : bool ) {
117117 unimplemented ! ( )
118118 }
119- pub fn set_print ( print : bool ) {
119+ pub ( crate ) fn set_print ( print : bool ) {
120120 unimplemented ! ( )
121121 }
122- pub fn set_strict_aliasing ( strict : bool ) {
122+ pub ( crate ) fn set_strict_aliasing ( strict : bool ) {
123123 unimplemented ! ( )
124124 }
125- pub fn set_loose_types ( loose : bool ) {
125+ pub ( crate ) fn set_loose_types ( loose : bool ) {
126126 unimplemented ! ( )
127127 }
128- pub fn set_rust_rules ( val : bool ) {
128+ pub ( crate ) fn set_rust_rules ( val : bool ) {
129129 unimplemented ! ( )
130130 }
131131}
0 commit comments