Lines Matching refs:ctx
139 std::unique_ptr<LLVMContext> ctx { new LLVMContext };
141 ctx->setDiagnosticHandlerCallBack(diagnostic_handler, &r_log);
142 return ctx;
293 compile(LLVMContext &ctx, clang::CompilerInstance &c,
371 clang::EmitLLVMOnlyAction act(&ctx);
408 auto ctx = create_context(r_log);
411 auto mod = compile(*ctx, *c, "input.cl", source, headers, dev, opts, true,
457 link(LLVMContext &ctx, const clang::CompilerInstance &c,
459 std::unique_ptr<Module> mod { new Module("link", ctx) };
463 if (linker->linkInModule(parse_module_library(b, ctx, r_log)))
479 auto ctx = create_context(r_log);
481 auto mod = link(*ctx, *c, binaries, r_log);
516 auto ctx = create_context(r_log);
522 auto mod = compile(*ctx, *c, "input.cl", source, headers, dev, opts, false,