Lines Matching refs:Fun
65 bool IsOpenCLKernel(const Function *Fun);
71 void RunAna(Function *Fun);
72 void Replace(Function *Fun);
74 void Propagate(Function* Fun);
76 Value* ConstantRead(Function *Fun, Param &P);
77 Value* handleSpecial(Function *Fun, Param &P);
96 bool R600KernelParameters::IsOpenCLKernel(const Function* Fun) { in IsOpenCLKernel() argument
97 Module *Mod = const_cast<Function*>(Fun)->getParent(); in IsOpenCLKernel()
111 if (MD->getOperand(i)->getOperand(0)->getName() == Fun->getName()) { in IsOpenCLKernel()
213 void R600KernelParameters::RunAna(Function* Fun) { in RunAna() argument
214 assert(IsOpenCLKernel(Fun)); in RunAna()
216 for (Function::arg_iterator I = Fun->arg_begin(); I != Fun->arg_end(); ++I) { in RunAna()
222 void R600KernelParameters::Replace(Function* Fun) { in Replace() argument
227 NewVal = handleSpecial(Fun, *I); in Replace()
229 NewVal = ConstantRead(Fun, *I); in Replace()
237 void R600KernelParameters::Propagate(Function* Fun) { in Propagate() argument
311 Value* R600KernelParameters::ConstantRead(Function *Fun, Param &P) { in ConstantRead() argument
312 assert(Fun->front().begin() != Fun->front().end()); in ConstantRead()
314 Instruction *FirstInst = Fun->front().begin(); in ConstantRead()
361 Value* R600KernelParameters::handleSpecial(Function* Fun, Param& P) { in handleSpecial() argument
392 Instruction *FirstInst = Fun->front().begin(); in handleSpecial()