From 7032505552f7cbc05a21389860624d2cca42d4af Mon Sep 17 00:00:00 2001 From: akashk4 <akashk4@illinois.edu> Date: Wed, 8 Jan 2020 19:25:48 -0600 Subject: [PATCH] Fixing minor errors in DFG2LLVM_X86.cpp --- hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp b/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp index 667efbba7d..764cfe8a8d 100644 --- a/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp +++ b/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp @@ -524,7 +524,7 @@ void CGT_X86::startNodeThread(DFNode* C, std::vector<Value*> Args, DenseMap<DFEd // AllocaInst AI points to memory with all the arguments packed // Call runtime to create the thread with these arguments DEBUG(errs() << "Start Thread for child node: " << C->getFuncPointer()->getName() << "\n"); - DEBUG(errs() << *llvm_visc_createThread << "\n"); +// DEBUG(errs() << *llvm_visc_createThread << "\n"); DEBUG(errs() << *graphID->getType() << "\n"); DEBUG(errs() << *C_Pipeline->getType() << "\n"); DEBUG(errs() << *Struct->getType() << "\n"); @@ -1668,7 +1668,7 @@ void CGT_X86::codeGen(DFInternalNode* N) { if (DeviceAbstraction) { // Prepare arguments and function for call to wait for device runtime call std::vector<Value *> Args; // TODO: add the device type as argument? - Function *RTF = + FunctionCallee RTF = M.getOrInsertFunction("llvm_visc_deviceAbstraction_waitOnDeviceStatus", runtimeModule->getFunction("llvm_visc_deviceAbstraction_waitOnDeviceStatus")->getFunctionType()); CallInst *RTFInst = CallInst::Create(RTF, Args, "", GenFuncCI); -- GitLab