Lines Matching refs:Args
93 /// ret = block_func_ptr(context_ptr, args)
97 /// ret = block_func(context, args)
266 // Handle ret = block_func_ptr(context_ptr, args)
287 mutateCallInstSPIRV (M, CI, [=](CallInst *CI, std::vector<Value *> &Args) {
289 size_t E = Args.size();
291 if (isPointerToOpaqueStructType(Args[I]->getType(),
297 Args[I] = castToVoidFuncPtr(InvF);
299 Args.push_back(Ctx);
300 Args.push_back(CtxLen);
301 Args.push_back(CtxAlign);
303 Args.insert(Args.begin() + I + 1, CtxAlign);
304 Args.insert(Args.begin() + I + 1, CtxLen);
305 Args.insert(Args.begin() + I + 1, Ctx);
309 if (!isa<IntegerType>(Args[3]->getType())) {
310 Args.insert(Args.begin() + 3, getInt32(M, 0));
311 Args.insert(Args.begin() + 4, getOCLNullClkEventPtr());
313 if (!isOCLClkEventPtrType(Args[5]->getType()))
314 Args.insert(Args.begin() + 5, getOCLNullClkEventPtr());