diff --git a/hpvm/include/GenVISC/GenVISC.h b/hpvm/include/GenVISC/GenVISC.h index fed7bbcfc1dac6a039d77b669b0329b68b0dc741..ef1ca3469c0568d35d61ec88981e8c897e097709 100644 --- a/hpvm/include/GenVISC/GenVISC.h +++ b/hpvm/include/GenVISC/GenVISC.h @@ -45,7 +45,7 @@ public: virtual bool runOnModule(Module &M); void generateTest(CallInst* CI); - Function* genKernel(Function* KernelFunction, CallInst* CI, StructType* RetTy); + Function* genKernel(Function* KernelFunction, StructType* RetTy); void genHost(CallInst*, Function*, unsigned, unsigned, unsigned, unsigned, StructType*); }; diff --git a/hpvm/lib/Transforms/GenVISC/GenVISC.cpp b/hpvm/lib/Transforms/GenVISC/GenVISC.cpp index b46f9da94b6b7107393877bbf98b1adb939f637c..e19f0849928ebf79f30b82e578907cd490e24e2f 100644 --- a/hpvm/lib/Transforms/GenVISC/GenVISC.cpp +++ b/hpvm/lib/Transforms/GenVISC/GenVISC.cpp @@ -1388,7 +1388,7 @@ void GenVISC::generateTest(CallInst* CI) { // kernel function StructType* RetTy = StructType::create(Ctx, None, "rtype"); - Function* KernelF = genKernel(cast<Function>(CI->getArgOperand(0)->stripPointerCasts()), CI, RetTy); + Function* KernelF = genKernel(cast<Function>(CI->getArgOperand(0)->stripPointerCasts()), RetTy); genHost(CI, KernelF, levels, numDims, numArgs, numOutputs, RetTy); } @@ -1398,7 +1398,7 @@ void GenVISC::generateTest(CallInst* CI) { // changing the function signature by adding any extra arguments required. // Changing the return type. Changing all the OpenCL query intrinsics with the // visc intrinsics. -Function* GenVISC::genKernel(Function* KernelF, CallInst* CI, StructType* RetTy) { +Function* GenVISC::genKernel(Function* KernelF, StructType* RetTy) { // Make changes to kernel here DEBUG(errs() << "Modifying Node Function: " << KernelF->getName() << "\n");