Lines Matching defs:kernel
39 // Check if the passed-in expr references a kernel function in the following
79 // a FunctionDecl of a kernel function.
116 "Invalid kernel launch call made from inside another kernel.");
121 const clang::FunctionDecl* kernel = matchFunctionDesignator(arg0);
123 if (kernel == nullptr) {
125 "Invalid kernel launch call. "
130 // Verifies that kernel is indeed a "kernel" function.
131 *slot = mCtxt->getForEachSlotNumber(kernel);
134 "%0 applied to function %1 defined without \"kernel\" attribute")
135 << funcName << kernel->getName();
139 return kernel;
217 // with the first argument replaced by the slot number of the kernel function
224 const clang::FunctionDecl* kernel = matchKernelLaunchCall(CE, &slot, &hasOptions);
225 if (kernel == nullptr) {
233 clang::QualType resultType = kernel->getReturnType().getCanonicalType();
236 const unsigned numInputsExpected = RSExportForEach::getNumInputs(mCtxt->getTargetAPI(), kernel);
239 // TODO: Check input/output allocation types match kernel function expectation.
244 "Number of input and output allocations unexpected for kernel function %0")
245 << kernel->getName();
268 1, // Slot number for kernel