Home
last modified time | relevance | path

Searched refs:block_arg (Results 1 – 24 of 24) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_device.cc470 auto verify_operand_types = [&](BlockArgument block_arg, in Verify()
473 if (failed(VerifyCompatibleTypes(block_arg.getType(), op_operand_type))) in Verify()
476 << ") and block argument " << block_arg.getArgNumber() << " (" in Verify()
477 << block_arg.getType() << ") to have compatible types"; in Verify()
481 for (auto block_arg : block.getArguments()) { in Verify() local
482 if (block_arg.getArgNumber() < num_replicated_block_args) { in Verify()
483 for (int32_t i = n * block_arg.getArgNumber(), e = i + n; i < e; ++i) in Verify()
484 if (failed(verify_operand_types(block_arg, i))) return failure(); in Verify()
486 const int32_t idx = block_arg.getArgNumber() - num_replicated_block_args + in Verify()
488 if (failed(verify_operand_types(block_arg, idx))) return failure(); in Verify()
[all …]
Dtf_device_ops.td288 bool IsReplicatedBlockArgument(BlockArgument block_arg);
289 bool IsPackedBlockArgument(BlockArgument block_arg);
290 unsigned GetReplicaOperandIndexForBlockArgument(BlockArgument block_arg, unsigned replica);
291 Value GetReplicaOperandForBlockArgument(BlockArgument block_arg, unsigned replica);
292 MutableArrayRef<OpOperand> GetOperandsForBlockArgument(BlockArgument block_arg);
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dreplicate_invariant_op_hoisting.cc81 if (auto block_arg = input.dyn_cast<BlockArgument>()) { in MakeShapeOpInvariant() local
82 if (block_arg.getOwner() != replicate_block) return; in MakeShapeOpInvariant()
85 block_arg, /*replica=*/0)); in MakeShapeOpInvariant()
103 if (auto block_arg = read_var_op.resource().dyn_cast<BlockArgument>()) { in MakeShapeOpInvariant() local
104 if (block_arg.getOwner() != replicate_block) return; in MakeShapeOpInvariant()
109 replicate_op.GetReplicaOperandForBlockArgument(block_arg, in MakeShapeOpInvariant()
Dtpu_space_to_depth_pass.cc135 auto block_arg = cast_input.dyn_cast<mlir::BlockArgument>(); in HandleCast() local
137 while (block_arg || cast_op_input) { in HandleCast()
138 if (block_arg) { in HandleCast()
140 HandleFuncOp(block_arg.getOwner()->getParentOp()); in HandleCast()
141 block_arg = nullptr; in HandleCast()
150 block_arg = cast_input.dyn_cast<mlir::BlockArgument>(); in HandleCast()
453 BlockArgument block_arg, in HandleHostReplicatedInputs() argument
460 replicate.GetOperandsForBlockArgument(block_arg); in HandleHostReplicatedInputs()
473 block_arg.setType(space_to_depth.getType()); in HandleHostReplicatedInputs()
487 if (auto block_arg = input.value().dyn_cast<BlockArgument>()) { in HandleCluster() local
[all …]
Dannotate_parameter_replication.cc75 auto block_arg = operand.dyn_cast<BlockArgument>(); in runOnOperation() local
76 if (block_arg && block_arg.getOwner() == &replicate.GetBody()) { in runOnOperation()
78 if (mirrored_replicate_args.count(block_arg.getArgNumber()) == 0) { in runOnOperation()
Dtensor_device_copy_conversion.cc47 if (BlockArgument block_arg = arg.dyn_cast<BlockArgument>()) { in runOnFunction() local
50 if (block_arg.getParentRegion() != &func_op.getRegion()) { in runOnFunction()
54 block_arg.getArgNumber(), kTFDeviceAttr)) { in runOnFunction()
Dtpu_variable_runtime_reformatting.cc165 auto block_arg = arg.dyn_cast<BlockArgument>(); in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping() local
166 if (!block_arg || block_arg.getOwner() != &replicate.GetBody()) continue; in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping()
167 assert(replicate_arg_to_execute_arg.count(block_arg.getArgNumber()) == 0 && in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping()
169 replicate_arg_to_execute_arg[block_arg.getArgNumber()] = in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping()
198 const auto& block_arg = replicate.GetBody().getArgument(replicate_arg); in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping() local
201 if (replicate.IsReplicatedBlockArgument(block_arg)) { in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping()
215 replicate.GetReplicaOperandForBlockArgument(block_arg, i), in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping()
Dcross_host_transfer.cc96 if (BlockArgument block_arg = arg.dyn_cast<BlockArgument>()) { in runOnFunction() local
99 if (block_arg.getParentRegion() != &func_op.getRegion()) continue; in runOnFunction()
102 block_arg.getArgNumber(), kArgDeviceAttr)) { in runOnFunction()
Dtpu_host_computation_expansion.cc47 if (auto block_arg = value.dyn_cast<BlockArgument>()) in GetOpOfValue() local
48 return block_arg.getOwner()->getParentOp(); in GetOpOfValue()
Dtpu_dynamic_padding_mapper.cc65 if (auto block_arg = operand_and_idx.value().dyn_cast<BlockArgument>()) { in GetRemappedReplicatedInputIndices() local
66 if (block_arg.getOwner() == replicate_block) { in GetRemappedReplicatedInputIndices()
68 replicated_input_indices_attr[block_arg.getArgNumber()] in GetRemappedReplicatedInputIndices()
Dreplicate_to_island.cc166 for (auto& block_arg : replicate_op.GetBody().getArguments()) in ExpandReplicateIntoReplicas() local
167 mapping.map(block_arg, in ExpandReplicateIntoReplicas()
168 replicate_op.GetReplicaOperandForBlockArgument(block_arg, i)); in ExpandReplicateIntoReplicas()
Dtpu_dynamic_layout_pass.cc245 if (auto block_arg = input.dyn_cast<BlockArgument>()) { in HandleCompileAndExecutes() local
248 if (maybe_replicate != block_arg.getParentRegion()->getParentOp() || in HandleCompileAndExecutes()
250 execute_launch, compile_launch, block_arg, in HandleCompileAndExecutes()
Dresource_op_lifting_cleanup.cc261 auto block_arg = ret->getOperand(result_idx).dyn_cast<BlockArgument>(); in ForwardCommonArgToOutput() local
262 if (!block_arg) { in ForwardCommonArgToOutput()
268 common_arg_index = block_arg.getArgNumber(); in ForwardCommonArgToOutput()
269 } else if (common_arg_index.getValue() != block_arg.getArgNumber()) { in ForwardCommonArgToOutput()
Dcluster_tf_ops_pass.cc125 if (BlockArgument block_arg = value.dyn_cast<BlockArgument>()) { in GetFunctionMetadatas() local
127 block_arg.getArgNumber(), kTFDeviceAttr)) { in GetFunctionMetadatas()
Dtpu_cluster_formation.cc469 Value block_arg = std::get<1>(input_and_block_arg); in ReplicateCluster() local
470 mlir::replaceAllUsesInRegionWith(input->getResult(0), block_arg, in ReplicateCluster()
476 pi.setOperand(use.getOperandNumber(), block_arg); in ReplicateCluster()
Dtpu_extract_head_tail_outside_compilation.cc62 if (auto block_arg = value.dyn_cast<BlockArgument>()) in GetOpOfValue() local
63 return block_arg.getOwner()->getParentOp(); in GetOpOfValue()
Dtpu_extract_outside_compilation.cc214 auto block_arg = v.cast<BlockArgument>(); in GetExternalOperands() local
215 if (block_arg.getParentRegion() == op->getParentRegion()) in GetExternalOperands()
/external/clang/test/SemaCXX/
Dinstantiate-blocks.cpp6 T block_arg; in foo() local
11block_arg = arg; // expected-error {{variable is not assignable (missing __block type specifier)}} in foo()
12 return block_arg+arg; }; in foo()
/external/llvm-project/clang/test/SemaCXX/
Dinstantiate-blocks.cpp6 T block_arg; in foo() local
11block_arg = arg; // expected-error {{variable is not assignable (missing __block type specifier)}} in foo()
12 return block_arg+arg; }; in foo()
/external/llvm-project/clang/test/CodeGenCXX/
Dinstantiate-blocks.cpp20 T block_arg; in foo() local
25 return byref_block_arg + block_arg + arg; }; in foo()
/external/clang/test/CodeGenCXX/
Dinstantiate-blocks.cpp20 T block_arg; in foo() local
25 return byref_block_arg + block_arg + arg; }; in foo()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dlegalize_variables.cc59 auto block_arg = op.resource().template dyn_cast<BlockArgument>(); in GetGlobalTensor() local
60 if (!block_arg) return nullptr; in GetGlobalTensor()
61 int index = block_arg.getArgNumber(); in GetGlobalTensor()
Dinitialize_variables.cc53 auto block_arg = op.resource().template dyn_cast<BlockArgument>(); in GetGlobalTensor() local
54 if (!block_arg) return nullptr; in GetGlobalTensor()
55 int index = block_arg.getArgNumber(); in GetGlobalTensor()
/external/llvm-project/clang/test/SemaOpenCL/
Dinvalid-block.cl37 …int (^const bl2)(bl_t block_arg) = ^() { // expected-error{{declaring function parameter of type '…
38 …return block_arg(); // expected-error{{implicit declaration of function 'block_arg' is invalid in …