Lines Matching full:processor
356 static bool isMappedToProcessor(gpu::Processor processor) {
357 return processor != gpu::Processor::Sequential;
360 static unsigned getLaunchOpArgumentNum(gpu::Processor processor) {
361 switch (processor) {
362 case gpu::Processor::BlockX:
364 case gpu::Processor::BlockY:
366 case gpu::Processor::BlockZ:
368 case gpu::Processor::ThreadX:
370 case gpu::Processor::ThreadY:
372 case gpu::Processor::ThreadZ:
377 "invalid processor type while retrieving launch op argument number");
400 /// worklist. This signals the processor of the worklist to pop the rewriter
405 DenseMap<gpu::Processor, Value> &bounds, PatternRewriter &rewriter) {
407 // processor ids: 0-2 block [x/y/z], 3-5 -> thread [x/y/z], 6-> sequential
443 gpu::Processor processor = annotation.getProcessor();
445 if (isMappedToProcessor(processor)) {
448 launchOp.getBody().getArgument(getLaunchOpArgumentNum(processor));
512 if (!bounds.try_emplace(processor, launchBound).second) {
514 parallelOp, "cannot redefine the bound for processor " +
515 Twine(static_cast<int64_t>(processor)));
576 /// - processor: the hardware id to map to. 0-2 are block dimensions, 3-5 are
621 llvm::DenseMap<gpu::Processor, Value> launchBounds;