Lines Matching defs:alloca
140 /// Creates an alloca matching the size of tile used by `tileOp`. The alloca is
149 // Create an alloca matching the tile size of the `tileOp`.
158 auto alloca = rewriter.create<memref::AllocaOp>(
160 return alloca;
163 /// Finds or creates an alloca for a spill of a tile.
167 // Find an alloca at the top of the function tagged with a
170 auto alloca = llvm::dyn_cast<memref::AllocaOp>(op);
171 if (!alloca)
174 alloca->getDiscardableAttr(kInMemoryTileIdAttr));
178 return alloca;
180 // Otherwise, create a new alloca:
181 auto alloca = createAllocaForTile(rewriter, loc, func, tileOp);
182 alloca->setDiscardableAttr(kInMemoryTileIdAttr,
184 return alloca;
199 /// %spill = memref.alloca ... : memref<?x?xty>
257 // Step 1. Create an alloca for the tile at the top of the function (if one