Home
last modified time | relevance | path

Searched refs:selectionOp (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVCanonicalization.cpp296 LogicalResult matchAndRewrite(spirv::SelectionOp selectionOp, in matchAndRewrite()
298 auto *op = selectionOp.getOperation(); in matchAndRewrite()
311 auto *headerBlock = selectionOp.getHeaderBlock(); in matchAndRewrite()
321 auto *mergeBlock = selectionOp.getMergeBlock(); in matchAndRewrite()
333 selectionOp.getLoc(), trueValue.getType(), brConditionalOp.condition(), in matchAndRewrite()
H A DSPIRVOps.cpp3439 auto selectionOp = in createIfThen() local
3442 selectionOp.addMergeBlock(); in createIfThen()
3443 Block *mergeBlock = selectionOp.getMergeBlock(); in createIfThen()
3464 return selectionOp; in createIfThen()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToSPIRV/
H A DSCFToSPIRV.cpp252 auto selectionOp = in matchAndRewrite() local
255 rewriter.createBlock(&selectionOp.body(), selectionOp.body().end()); in matchAndRewrite()
260 rewriter.createBlock(&selectionOp.body().front()); in matchAndRewrite()
291 replaceSCFOutputValue(ifOp, selectionOp, rewriter, scfToSPIRVContext, in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/
H A DSerializeOps.cpp363 LogicalResult Serializer::processSelectionOp(spirv::SelectionOp selectionOp) { in processSelectionOp() argument
366 auto &body = selectionOp.body(); in processSelectionOp()
370 auto *headerBlock = selectionOp.getHeaderBlock(); in processSelectionOp()
371 auto *mergeBlock = selectionOp.getMergeBlock(); in processSelectionOp()
374 auto loc = selectionOp.getLoc(); in processSelectionOp()
392 {mergeID, static_cast<uint32_t>(selectionOp.selection_control())}); in processSelectionOp()
H A DSerializer.h257 LogicalResult processSelectionOp(spirv::SelectionOp selectionOp);
H A DSerializer.cpp34 if (auto selectionOp = dyn_cast<spirv::SelectionOp>(op)) in getStructuredControlFlowOpMergeBlock() local
35 return selectionOp.getMergeBlock(); in getStructuredControlFlowOpMergeBlock()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp1668 auto selectionOp = builder.create<spirv::SelectionOp>(location, control); in createSelectionOp() local
1669 selectionOp.addMergeBlock(); in createSelectionOp()
1671 return selectionOp; in createSelectionOp()
1708 if (auto selectionOp = createSelectionOp(control)) in structurize() local
1709 op = selectionOp.getOperation(); in structurize()