added basic printing from ptx

This commit is contained in:
Evghenii
2014-01-24 13:44:38 +01:00
parent c76c916475
commit ddb9b2fc47
4 changed files with 79 additions and 6 deletions

View File

@@ -3352,7 +3352,8 @@ PrintStmt::EmitCode(FunctionEmitContext *ctx) const {
}
// Now we can emit code to call __do_print()
llvm::Function *printFunc = m->module->getFunction("__do_print");
llvm::Function *printFunc = g->target->getISA() != Target::NVPTX ?
m->module->getFunction("__do_print") : m->module->getFunction("__do_print_nvptx");
AssertPos(pos, printFunc);
llvm::Value *mask = ctx->GetFullMask();