<s> from ctypes import c_uint <EOL> from . import ffi <EOL> def initialize ( ) : <EOL> """<STR_LIT>""" <EOL> ffi . lib . LLVMPY_InitializeCore ( ) <EOL> def initialize_all_targets ( ) : <EOL> """<STR_LIT>""" <EOL> ffi . lib . LLVMPY_InitializeAllTargetInfos ( ) <EOL> ffi . lib . LLVMPY_InitializeAllTargets ( ) <EOL> ffi . lib . LLVMPY_InitializeAllTargetMCs ( ) <EOL> def initialize_all_asmprinters ( ) : <EOL> """<STR_LIT>""" <EOL> ffi . lib . LLVMPY_InitializeAllAsmPrinters ( ) <EOL> def initialize_native_target ( ) : <EOL> """<STR_LIT>""" <EOL> ffi . lib . LLVMPY_InitializeNativeTarget ( ) <EOL> def initialize_native_asmprinter ( ) : <EOL> """<STR_LIT>""" <EOL> ffi . lib . LLVMPY_InitializeNativeAsmPrinter ( ) <EOL> def shutdown ( ) : <EOL> ffi . lib . LLVMPY_Shutdown ( ) <EOL> ffi . lib . LLVMPY_GetVersionInfo . restype = c_uint <EOL> def _version_info ( ) : <EOL> v = [ ] <EOL> x = ffi . lib . LLVMPY_GetVersionInfo ( ) <EOL> while x : <EOL> v . append ( x & <NUM_LIT> ) <EOL> x >>= <NUM_LIT:8> <EOL> return tuple ( reversed ( v ) ) <EOL> llvm_version_info = _version_info ( ) </s>
