Skip to main content

nvvmAddModuleToProgram

Function nvvmAddModuleToProgram 

Source
pub unsafe extern "C" fn nvvmAddModuleToProgram(
    prog: nvvmProgram,
    buffer: *const c_char,
    size: size_t,
    name: *const c_char,
) -> nvvmResult
Expand description

Add a module level NVVM IR to a program.

The buffer should contain an NVVM IR module. The module should have NVVM IR either in the LLVM 7.0.1 bitcode representation or in the LLVM 7.0.1 text representation. Support for reading the text representation of NVVM IR is deprecated and may be removed in a later version.

§Parameters

  • prog: NVVM program.
  • buffer: NVVM IR module in the bitcode or text representation.
  • size: Size of the NVVM IR module.
  • name: Name of the NVVM IR module. If NULL, “<unnamed>” is used as the name.