parameters: (self, llvmir)
docstring: Load LLVM with HSAIL SPIR spec
docstring_summary: Load LLVM with HSAIL SPIR spec
docstring_tokens: Load LLVM with HSAIL SPIR spec
function: def load_llvm(self, llvmir):
          """
          Load LLVM with HSAIL SPIR spec
          """
          # Preprocess LLVM IR
          # Because HLC does not handle dot in LLVM variable names
          llvmir = self._preprocess(llvmir)
  
          mod = self._hlc.parse_assembly(llvmir)
  
          if config.DUMP_OPTIMIZED:
              print(self._hlc.to_string(mod))
  
          self._llvm_modules.append(mod)
function_tokens: def load_llvm ( self , llvmir ) : # Preprocess LLVM IR # Because HLC does not handle dot in LLVM variable names llvmir = self . _preprocess ( llvmir ) mod = self . _hlc . parse_assembly ( llvmir ) if config . DUMP_OPTIMIZED : print ( self . _hlc . to_string ( mod ) ) self . _llvm_modules . append ( mod )