Lines Matching defs:compiler
291 "path, add the compiler to $PATH, or set one of the environment "
526 nvPTXCompilerHandle compiler = nullptr;
537 // Create the compiler handle.
539 nvPTXCompilerCreate(&compiler, ptxCode.size(), ptxCode.c_str()));
542 status = nvPTXCompilerCompile(compiler, cmdOpts.second.size(),
548 nvPTXCompilerGetErrorLogSize(compiler, &logSize));
552 nvPTXCompilerGetErrorLog(compiler, log.data()));
553 emitError(loc) << "NVPTX compiler invocation failed, error log: "
556 emitError(loc) << "NVPTX compiler invocation failed with error code: "
564 nvPTXCompilerGetCompiledProgramSize(compiler, &elfSize));
567 nvPTXCompilerGetCompiledProgram(compiler, (void *)binary.data()));
569 // Dump the log of the compiler, helpful if the verbose flag was passed.
573 nvPTXCompilerGetInfoLogSize(compiler, &logSize));
577 nvPTXCompilerGetInfoLog(compiler, log.data()));
578 llvm::dbgs() << "NVPTX compiler invocation for module: "
587 RETURN_ON_NVPTXCOMPILER_ERROR(nvPTXCompilerDestroy(&compiler));