Searched refs:selectionOp (Results 1 – 5 of 5) sorted by relevance
/external/llvm-project/mlir/lib/Dialect/SPIRV/ |
D | SPIRVCanonicalization.cpp | 293 LogicalResult matchAndRewrite(spirv::SelectionOp selectionOp, in matchAndRewrite() 295 auto *op = selectionOp.getOperation(); in matchAndRewrite() 308 auto *headerBlock = selectionOp.getHeaderBlock(); in matchAndRewrite() 318 auto *mergeBlock = selectionOp.getMergeBlock(); in matchAndRewrite() 330 selectionOp.getLoc(), trueValue.getType(), brConditionalOp.condition(), in matchAndRewrite()
|
D | SPIRVOps.cpp | 2657 static void print(spirv::SelectionOp selectionOp, OpAsmPrinter &printer) { in print() argument 2658 auto *op = selectionOp.getOperation(); in print() 2661 auto control = selectionOp.selection_control(); in print() 2668 static LogicalResult verify(spirv::SelectionOp selectionOp) { in verify() argument 2669 auto *op = selectionOp.getOperation(); in verify() 2700 return selectionOp.emitOpError( in verify() 2704 return selectionOp.emitOpError("must have a selection header block"); in verify() 2736 auto selectionOp = builder.create<spirv::SelectionOp>(loc, selectionControl); in createIfThen() local 2738 selectionOp.addMergeBlock(); in createIfThen() 2739 Block *mergeBlock = selectionOp.getMergeBlock(); in createIfThen() [all …]
|
/external/llvm-project/mlir/lib/Conversion/SCFToSPIRV/ |
D | SCFToSPIRV.cpp | 219 auto selectionOp = rewriter.create<spirv::SelectionOp>(loc, selectionControl); in matchAndRewrite() local 221 rewriter.createBlock(&selectionOp.body(), selectionOp.body().end()); in matchAndRewrite() 226 rewriter.createBlock(&selectionOp.body().front()); in matchAndRewrite() 257 replaceSCFOutputValue(ifOp, selectionOp, typeConverter, rewriter, in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/ |
D | Serializer.cpp | 83 if (auto selectionOp = dyn_cast<spirv::SelectionOp>(op)) in getStructuredControlFlowOpMergeBlock() local 84 return selectionOp.getMergeBlock(); in getStructuredControlFlowOpMergeBlock() 341 LogicalResult processSelectionOp(spirv::SelectionOp selectionOp); 1711 LogicalResult Serializer::processSelectionOp(spirv::SelectionOp selectionOp) { in processSelectionOp() argument 1714 auto &body = selectionOp.body(); in processSelectionOp() 1718 auto *headerBlock = selectionOp.getHeaderBlock(); in processSelectionOp() 1719 auto *mergeBlock = selectionOp.getMergeBlock(); in processSelectionOp() 1721 auto loc = selectionOp.getLoc(); in processSelectionOp() 1731 {mergeID, static_cast<uint32_t>(selectionOp.selection_control())}); in processSelectionOp()
|
D | Deserializer.cpp | 1985 auto selectionOp = builder.create<spirv::SelectionOp>(location, control); in createSelectionOp() local 1986 selectionOp.addMergeBlock(); in createSelectionOp() 1988 return selectionOp; in createSelectionOp() 2025 if (auto selectionOp = createSelectionOp(control)) in structurizeImpl() local 2026 op = selectionOp.getOperation(); in structurizeImpl()
|