Skip to content
Snippets Groups Projects
Commit 9dbc9ee0 authored by Akash Kothari's avatar Akash Kothari
Browse files

Remove unused argument in genKernel function in GenVISC pass

parent 2c58eadb
No related branches found
No related tags found
No related merge requests found
......@@ -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*);
};
......
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment