@@ -31,20 +31,20 @@ unsafe extern "C" {
3131
3232#[ repr( C ) ]
3333#[ derive( Copy , Clone , PartialEq ) ]
34- pub enum LLVMRustVerifierFailureAction {
34+ pub ( crate ) enum LLVMRustVerifierFailureAction {
3535 LLVMAbortProcessAction = 0 ,
3636 LLVMPrintMessageAction = 1 ,
3737 LLVMReturnStatusAction = 2 ,
3838}
3939
4040#[ cfg( llvm_enzyme) ]
41- pub use self :: Enzyme_AD :: * ;
41+ pub ( crate ) use self :: Enzyme_AD :: * ;
4242
4343#[ cfg( llvm_enzyme) ]
44- pub mod Enzyme_AD {
44+ pub ( crate ) mod Enzyme_AD {
4545 use libc:: c_void;
4646 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 ) ;
4848 }
4949 unsafe extern "C" {
5050 static mut EnzymePrintPerf : c_void ;
@@ -56,77 +56,77 @@ pub mod Enzyme_AD {
5656 static mut EnzymeInline : c_void ;
5757 static mut RustTypeRules : c_void ;
5858 }
59- pub fn set_print_perf ( print : bool ) {
59+ pub ( crate ) fn set_print_perf ( print : bool ) {
6060 unsafe {
6161 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintPerf ) , print as u8 ) ;
6262 }
6363 }
64- pub fn set_print_activity ( print : bool ) {
64+ pub ( crate ) fn set_print_activity ( print : bool ) {
6565 unsafe {
6666 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintActivity ) , print as u8 ) ;
6767 }
6868 }
69- pub fn set_print_type ( print : bool ) {
69+ pub ( crate ) fn set_print_type ( print : bool ) {
7070 unsafe {
7171 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrintType ) , print as u8 ) ;
7272 }
7373 }
74- pub fn set_print ( print : bool ) {
74+ pub ( crate ) fn set_print ( print : bool ) {
7575 unsafe {
7676 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymePrint ) , print as u8 ) ;
7777 }
7878 }
79- pub fn set_strict_aliasing ( strict : bool ) {
79+ pub ( crate ) fn set_strict_aliasing ( strict : bool ) {
8080 unsafe {
8181 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymeStrictAliasing ) , strict as u8 ) ;
8282 }
8383 }
84- pub fn set_loose_types ( loose : bool ) {
84+ pub ( crate ) fn set_loose_types ( loose : bool ) {
8585 unsafe {
8686 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( looseTypeAnalysis) , loose as u8 ) ;
8787 }
8888 }
89- pub fn set_inline ( val : bool ) {
89+ pub ( crate ) fn set_inline ( val : bool ) {
9090 unsafe {
9191 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( EnzymeInline ) , val as u8 ) ;
9292 }
9393 }
94- pub fn set_rust_rules ( val : bool ) {
94+ pub ( crate ) fn set_rust_rules ( val : bool ) {
9595 unsafe {
9696 EnzymeSetCLBool ( std:: ptr:: addr_of_mut!( RustTypeRules ) , val as u8 ) ;
9797 }
9898 }
9999}
100100
101101#[ cfg( not( llvm_enzyme) ) ]
102- pub use self :: Fallback_AD :: * ;
102+ pub ( crate ) use self :: Fallback_AD :: * ;
103103
104104#[ cfg( not( llvm_enzyme) ) ]
105- pub mod Fallback_AD {
105+ pub ( crate ) mod Fallback_AD {
106106 #![ allow( unused_variables) ]
107107
108- pub fn set_inline ( val : bool ) {
108+ pub ( crate ) fn set_inline ( val : bool ) {
109109 unimplemented ! ( )
110110 }
111- pub fn set_print_perf ( print : bool ) {
111+ pub ( crate ) fn set_print_perf ( print : bool ) {
112112 unimplemented ! ( )
113113 }
114- pub fn set_print_activity ( print : bool ) {
114+ pub ( crate ) fn set_print_activity ( print : bool ) {
115115 unimplemented ! ( )
116116 }
117- pub fn set_print_type ( print : bool ) {
117+ pub ( crate ) fn set_print_type ( print : bool ) {
118118 unimplemented ! ( )
119119 }
120- pub fn set_print ( print : bool ) {
120+ pub ( crate ) fn set_print ( print : bool ) {
121121 unimplemented ! ( )
122122 }
123- pub fn set_strict_aliasing ( strict : bool ) {
123+ pub ( crate ) fn set_strict_aliasing ( strict : bool ) {
124124 unimplemented ! ( )
125125 }
126- pub fn set_loose_types ( loose : bool ) {
126+ pub ( crate ) fn set_loose_types ( loose : bool ) {
127127 unimplemented ! ( )
128128 }
129- pub fn set_rust_rules ( val : bool ) {
129+ pub ( crate ) fn set_rust_rules ( val : bool ) {
130130 unimplemented ! ( )
131131 }
132132}
0 commit comments