#NEWLINE# def to_hsail( self , mod , opt = 3 ) : #NEWLINE# #INDENT# buf = c_char_p ( 0 ) #NEWLINE# if ( not self . hlc . HLC_ModuleEmitHSAIL ( mod , int ( opt ) , byref ( buf ) ) ) : #NEWLINE# #INDENT# raise Error ( 'Failed to emit HSAIL' ) #NEWLINE# #UNINDENT# ret = buf . value . decode ( 'latin1' ) #NEWLINE# self . hlc . HLC_DisposeString ( buf ) #NEWLINE# return mod