tvm_tirx.support.clang.create_llvm

Contents

tvm_tirx.support.clang.create_llvm#

tvm_tirx.support.clang.create_llvm(inputs, output=None, options=None, cc=None)#

Create llvm text ir.

Parameters:
  • inputs (list of str) – List of input files name or code source.

  • output (str, optional) – Output file, if it is none a temporary file is created

  • options (list) – The list of additional options string.

  • cc (str, optional) – The clang compiler, if not specified, we will try to guess the matched clang version.

Returns:

code (str) – The generated llvm text IR.