Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dlegalize_control_flow.cc136 auto* cond_block = mapper.lookup(&while_op.cond().front()); in LowerWhileOp() local
143 builder.create<mlir::BranchOp>(loc, cond_block, while_op.getOperand()); in LowerWhileOp()
156 builder.setInsertionPointToStart(cond_block); in LowerWhileOp()
174 llvm::SmallVector<Value, 4> successor_args(cond_block->args_begin(), in LowerWhileOp()
175 cond_block->args_end()); in LowerWhileOp()
197 builder.create<mlir::BranchOp>(loc, cond_block, return_op.getOperands()); in LowerWhileOp()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dfunctional_control_flow_to_cfg.cc218 Block* cond_block = builder.createBlock(orig_block_tail); in LowerWhileOp() local
227 cond_block->addArgument(type); in LowerWhileOp()
239 JumpToBlock(loc, get_operand, cond_block, &builder); in LowerWhileOp()
244 builder.setInsertionPointToEnd(cond_block); in LowerWhileOp()
246 auto get_cond_arg = [&](int i) { return cond_block->getArgument(i); }; in LowerWhileOp()
263 JumpToBlock(loc, get_body_result, cond_block, &builder); in LowerWhileOp()
/external/llvm-project/llvm/test/Transforms/RewriteStatepointsForGC/
Dcheck_traversal_order.ll25 br i1 %cond, label %cond_block, label %exit
27 cond_block:
31 %tmp4 = phi i8 addrspace(1)* [ %tmp2, %loop ], [ %tmp2, %cond_block ]
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_control_flow.cc340 Block& cond_block = cond.front(); in LowerWhileRegion() local
341 builder.setInsertionPointToStart(&cond_block); in LowerWhileRegion()
342 ReplaceBlockArgs(&cond_block, tuple_input.getType(), &builder); in LowerWhileRegion()
343 ReplaceImplicitInputs(&cond_block, inputs_size, implicit_inputs.getArrayRef(), in LowerWhileRegion()
346 ReplaceTerminator(&cond_block, /*extra_results=*/{}, &builder, in LowerWhileRegion()
/external/selinux/libsepol/cil/src/
Dcil_verify.c967 struct cil_tree_node *cond_block = node->cl_head; in __cil_verify_booleanif() local
969 while (cond_block != NULL) { in __cil_verify_booleanif()
970 rc = cil_tree_walk(cond_block, __cil_verify_booleanif_helper, NULL, NULL, symtab); in __cil_verify_booleanif()
974 cond_block = cond_block->next; in __cil_verify_booleanif()
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc2684 auto &cond_block = while_op.cond().front(); in matchAndRewrite() local
2708 cond_block.getArgument(arg_no).replaceAllUsesWith(value); in matchAndRewrite()
2732 cond_block.getArgument(arg_index).use_empty() && in matchAndRewrite()
2738 cond_block.eraseArgument(arg_index); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_n_z.cc2987 auto &cond_block = while_op.cond().front(); in matchAndRewrite() local
3004 auto cond_arg = cond_block.getArgument(op_idx); in matchAndRewrite()
3016 cond_block.getArgument(op_idx).use_empty() && in matchAndRewrite()