Home
last modified time | relevance | path

Searched refs:ReturnOp (Results 1 – 25 of 141) sorted by relevance

123456

/external/tensorflow/tensorflow/core/ir/
Dutility_test.cc45 auto ret_op = cast<ReturnOp>(func.body().front().getTerminator()); in TEST()
80 auto ret_op = cast<ReturnOp>(func.body().front().getTerminator()); in TEST()
115 auto ret_op = cast<ReturnOp>(func.body().front().getTerminator()); in TEST()
Dops.cc444 if (!isa<ReturnOp>(getBody()->back())) in verifyBody()
449 ReturnOp return_op = cast<ReturnOp>(getBody()->getTerminator()); in verifyBody()
495 if (isa<ReturnOp>(op)) continue; in canonicalize()
780 LogicalResult ReturnOp::verify() { in verify()
781 ReturnOp op = *this; in verify()
792 ParseResult ReturnOp::parse(OpAsmParser &parser, OperationState &result) { in parse()
816 result.addAttribute(ReturnOp::control_ret_attrsAttrName(result.name), in parse()
828 void ReturnOp::print(OpAsmPrinter &printer) { in print()
852 void ReturnOp::build(OpBuilder &odsBuilder, OperationState &odsState, in build()
858 ReturnOp::control_ret_attrsAttrName(odsState.name), in build()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dcluster_outlining.cc48 void ReplaceClusterReturnWithReturn(tf_device::ReturnOp cluster_return_op, in ReplaceClusterReturnWithReturn()
50 builder->create<func::ReturnOp>(cluster_return_op.getLoc(), in ReplaceClusterReturnWithReturn()
93 cast<tf_device::ReturnOp>(outlined_func_block->getTerminator()); in BuildFunction()
Dtfg-to-tfe.cc162 rewriter.create<func::ReturnOp>(loc); in matchAndRewrite()
230 rewriter.create<func::ReturnOp>( in matchAndRewrite()
240 class ConvertReturnOp : public OpConversionPattern<tfg::ReturnOp> {
244 tfg::ReturnOp ret, OpAdaptor adaptor, in matchAndRewrite()
506 target.addLegalOp<func::ReturnOp>(); in runOnOperation()
Dxla_inline_device_ops.cc47 assert(mlir::isa<mlir::tf_device::ReturnOp>(return_op)); in InlineDeviceOp()
Dxla_cluster_formation.cc45 builder.create<mlir::tf_device::ReturnOp>(call_op.getLoc(), in EncapsulatePartitionedCall()
Ddevice_attribute_to_launch.cc49 builder.create<tf_device::ReturnOp>(op->getLoc(), op->getResults()) in WrapOpInLaunch()
Dtest_side_effect_analysis.cc69 if (llvm::isa<func::ReturnOp>(op)) { in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID()
Doutside_compiled_to_host_launch.cc51 .create<tf_device::ReturnOp>(host_op->getLoc(), host_op->getResults()) in WrapOpInLaunch()
/external/tensorflow/tensorflow/compiler/mlir/tfrt/transforms/
Dtf_to_tfrt_data.cc120 : public mlir::OpConversionPattern<mlir::func::ReturnOp> {
122 : OpConversionPattern<mlir::func::ReturnOp>(context) {} in ReturnOpConversion()
125 mlir::func::ReturnOp op, OpAdaptor adaptor, in matchAndRewrite()
127 rewriter.replaceOpWithNewOp<tfrt::compiler::ReturnOp>( in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/mhlo/transforms/
Dhlo_legalize_to_lhlo.cc289 auto returnOp = cast<mhlo::ReturnOp>(entryBlock.getTerminator()); in matchAndRewrite()
320 struct HloToLhloReturnOpConverter : public BaseOpConversion<mhlo::ReturnOp> {
322 using BaseOpConversion<mhlo::ReturnOp>::BaseOpConversion;
325 mhlo::ReturnOp op, OpAdaptor adaptor, in matchAndRewrite()
469 target.addDynamicallyLegalOp<mlir::func::ReturnOp>( in runOnOperation()
470 [&](mlir::func::ReturnOp op) { in runOnOperation()
Dexpand_hlo_tuples.cc100 auto returnOp = cast<mlir::func::ReturnOp>(func.getBody().back().back()); in expandTupledTensorInReturnOp()
122 builder.create<mlir::func::ReturnOp>(returnOp.getLoc(), in expandTupledTensorInReturnOp()
/external/tensorflow/tensorflow/compiler/xla/mlir/transforms/runtime/
Dconvert_to_entrypoint.cc126 func.walk([&](func::ReturnOp ret) { in ConvertReturnOperations()
135 b.create<func::ReturnOp>(); in ConvertReturnOperations()
161 b.create<func::ReturnOp>(); in ConvertAssertOperations()
Dcustom_call_encoding.cc109 ib.create<LLVM::ReturnOp>(encoded); in PackString()
189 ib.create<LLVM::ReturnOp>(encoded); in PackDenseElementsAttribute()
209 ib.create<LLVM::ReturnOp>(data); in CreateGlobalFromArray()
242 ib.create<LLVM::ReturnOp>(encoded); in PackArrayAttribute()
300 ib.create<LLVM::ReturnOp>(data); in CreateGlobalFromDenseArray()
334 ib.create<LLVM::ReturnOp>(encoded); in PackDenseArrayAttribute()
362 ib.create<LLVM::ReturnOp>(encoded); in PackEmptyArrayAttribute()
790 b.create<LLVM::ReturnOp>(arr); in EncodeAttributes()
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/transforms/
Dtarget_annotation.cc114 !llvm::isa<func::ReturnOp, func::FuncOp, CallableOpInterface>(op)) { in SetTargetAnnotation()
132 !llvm::isa<func::ReturnOp, func::FuncOp, CallOpInterface>(op)) { in runOnFunction()
Dget_alternative_subgraph.cc205 !llvm::isa<func::ReturnOp, func::FuncOp, CallOpInterface>(op) && in IsAllSupportedbySpec()
259 !llvm::isa<func::ReturnOp, func::FuncOp, CallableOpInterface>(op)) { in GetAlternativeViewForSpec()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils_test.cc155 mlir::func::ReturnOp::getOperationName()); in TEST_F()
209 mlir::func::ReturnOp::getOperationName()); in TEST_F()
236 mlir::func::ReturnOp::getOperationName()); in TEST_F()
Dtftext_utils.cc140 builder.create<func::ReturnOp>(func.getLoc(), op.getResults()); in ConvertWhitespaceTokenizer()
269 builder.create<func::ReturnOp>(func.getLoc(), op.getResults()); in ConvertNgrams()
350 builder.create<func::ReturnOp>(func.getLoc(), op.getResults()); in ConvertSgnnProjection()
Dperception_ops_utils.cc106 builder.create<func::ReturnOp>(func_.getLoc(), op.getResults()); in RewriteFunc()
202 builder.create<func::ReturnOp>(func_.getLoc(), op.getResults()); in RewriteFunc()
Dnms_utils.cc57 builder.create<mlir::func::ReturnOp>(func_.getLoc(), op.getResults()); in RewriteFunc()
102 builder.create<func::ReturnOp>(func_.getLoc(), op.getResults()); in RewriteFunc()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_control_flow.cc125 builder.create<mhlo::ReturnOp>(loc, result.getResults()); in ImportXlaRegion()
128 builder.create<mhlo::ReturnOp>(loc, tuple_op.getResult()); in ImportXlaRegion()
300 builder->create<mhlo::ReturnOp>(loc, tuple_results.getResult()); in ReplaceTerminator()
302 builder->create<mhlo::ReturnOp>(loc, results); in ReplaceTerminator()
Dutils.h44 builder->create<ReturnOp>(loc, reducer.getResult()); in BuildReduceBody()
Dxla_legalize_tf_no_fallback.cc74 target.addLegalOp<ModuleOp, func::FuncOp, ::mlir::func::ReturnOp>(); in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/
Dexecution_metadata_exporter.cc63 if (llvm::isa<mlir::func::ReturnOp, mlir::quantfork::StatisticsOp>(op)) in GetDeviceName()
106 if (llvm::isa<mlir::func::ReturnOp, mlir::quantfork::StatisticsOp>(&inst)) in CreateSubgraphMetadata()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_device_ops.td55 [SingleBlockImplicitTerminator<"ReturnOp">]> {
133 [SingleBlockImplicitTerminator<"ReturnOp">]> {
181 [SingleBlockImplicitTerminator<"ReturnOp">, AttrSizedOperandSegments]> {
313 [SingleBlockImplicitTerminator<"ReturnOp">]> {
375 [SingleBlockImplicitTerminator<"ReturnOp">]> {

123456