'Add a module level NVVM IR to a compilation unit.
- The buffer should contain an NVVM module IR either in the bitcode
representation (LLVM3.0) or in the text representation.'

def add_module(self, buffer):

    err = self.driver.nvvmAddModuleToProgram(self._handle, buffer, len(buffer), None)
    self.driver.check_error(err, 'Failed    to    add    module')
