Home
last modified time | relevance | path

Searched refs:operand_type (Results 1 – 25 of 66) sorted by relevance

123

/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/
Dtransformation_equation_instruction.cpp162 const auto* operand_type = in MaybeGetResultTypeId() local
164 if (!operand_type) { in MaybeGetResultTypeId()
172 if (const auto* vector = operand_type->AsVector()) { in MaybeGetResultTypeId()
197 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId()
199 } else if (const auto* float_type = operand_type->AsFloat()) { in MaybeGetResultTypeId()
226 auto operand_type = in MaybeGetResultTypeId() local
228 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId()
229 (operand_type->AsVector() && in MaybeGetResultTypeId()
230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
234 operand_type->AsInteger() in MaybeGetResultTypeId()
[all …]
Dfuzzer_pass_add_equation_instructions.cpp154 const auto* operand_type = in Apply() local
157 assert(operand_type && "Operand instruction has invalid type"); in Apply()
165 if (const auto* vector = operand_type->AsVector()) { in Apply()
184 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply()
187 assert(operand_type->AsFloat() && in Apply()
189 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply()
Dtransformation_replace_add_sub_mul_with_carrying_extended.cpp87 auto operand_type = type->AsVector()->element_type(); in Apply() local
88 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_equation_instruction.cpp158 const auto* operand_type = in MaybeGetResultTypeId() local
160 if (!operand_type) { in MaybeGetResultTypeId()
168 if (const auto* vector = operand_type->AsVector()) { in MaybeGetResultTypeId()
193 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId()
195 } else if (const auto* float_type = operand_type->AsFloat()) { in MaybeGetResultTypeId()
222 auto operand_type = in MaybeGetResultTypeId() local
224 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId()
225 (operand_type->AsVector() && in MaybeGetResultTypeId()
226 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
230 operand_type->AsInteger() in MaybeGetResultTypeId()
[all …]
Dfuzzer_pass_add_equation_instructions.cpp157 const auto* operand_type = in Apply() local
160 assert(operand_type && "Operand instruction has invalid type"); in Apply()
168 if (const auto* vector = operand_type->AsVector()) { in Apply()
187 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply()
190 assert(operand_type->AsFloat() && in Apply()
192 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply()
Dtransformation_replace_add_sub_mul_with_carrying_extended.cpp88 auto operand_type = type->AsVector()->element_type(); in Apply() local
89 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_equation_instruction.cpp158 const auto* operand_type = in MaybeGetResultTypeId() local
160 if (!operand_type) { in MaybeGetResultTypeId()
168 if (const auto* vector = operand_type->AsVector()) { in MaybeGetResultTypeId()
193 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId()
195 } else if (const auto* float_type = operand_type->AsFloat()) { in MaybeGetResultTypeId()
222 auto operand_type = in MaybeGetResultTypeId() local
224 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId()
225 (operand_type->AsVector() && in MaybeGetResultTypeId()
226 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId()
230 operand_type->AsInteger() in MaybeGetResultTypeId()
[all …]
Dfuzzer_pass_add_equation_instructions.cpp157 const auto* operand_type = in Apply() local
160 assert(operand_type && "Operand instruction has invalid type"); in Apply()
168 if (const auto* vector = operand_type->AsVector()) { in Apply()
187 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply()
190 assert(operand_type->AsFloat() && in Apply()
192 FindOrCreateIntegerType(operand_type->AsFloat()->width(), in Apply()
Dtransformation_replace_add_sub_mul_with_carrying_extended.cpp88 auto operand_type = type->AsVector()->element_type(); in Apply() local
89 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dmaterialize_broadcasts.cc39 auto operand_type = op.operand().getType().dyn_cast<RankedTensorType>(); in matchAndRewrite() local
43 if (!operand_type || !max_type || !min_type) return failure(); in matchAndRewrite()
45 if (!operand_type.hasStaticShape()) return failure(); in matchAndRewrite()
47 ArrayRef<int64_t> operand_shape = operand_type.getShape(); in matchAndRewrite()
50 if (max_type != operand_type) { in matchAndRewrite()
53 op.getLoc(), operand_type, max_value, in matchAndRewrite()
58 if (min_type != operand_type) { in matchAndRewrite()
61 op.getLoc(), operand_type, min_value, in matchAndRewrite()
Dlegalize_to_linalg.cc452 auto operand_type = in getIndexingMaps() local
457 if (operand_type.getRank() == 0) { in getIndexingMaps()
462 auto operand_shape = operand_type.getShape(); in getIndexingMaps()
497 auto operand_type = operand.getType().dyn_cast<RankedTensorType>(); in matchAndRewrite() local
498 if (!operand_type || operand_type.getRank() != 0) return failure(); in matchAndRewrite()
551 auto operand_type = operand.getType().cast<MemRefType>(); in matchAndRewrite() local
556 if (operand_type.getRank() == 1 && in matchAndRewrite()
557 operand_type.getDimSize(0) < in matchAndRewrite()
573 operand_type, &rewriter); in matchAndRewrite()
592 auto operand_type = operand_adaptor.operand().getType().cast<MemRefType>(); in InsertReshapeIfNecessary() local
[all …]
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_composites.cpp229 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
230 if (operand_type == result_component_type) { in ValidateCompositeConstruct()
233 if (_.GetIdOpcode(operand_type) != SpvOpTypeVector || in ValidateCompositeConstruct()
234 _.GetComponentType(operand_type) != result_component_type) { in ValidateCompositeConstruct()
240 given_component_count += _.GetDimension(operand_type); in ValidateCompositeConstruct()
270 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
271 if (operand_type != result_col_type) { in ValidateCompositeConstruct()
305 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
306 if (operand_type != result_component_type) { in ValidateCompositeConstruct()
328 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
[all …]
Dvalidate_logicals.cpp59 const uint32_t operand_type = _.GetOperandTypeId(inst, 2); in LogicalsPass() local
60 if (!operand_type || (!_.IsFloatScalarType(operand_type) && in LogicalsPass()
61 !_.IsFloatVectorType(operand_type))) in LogicalsPass()
66 if (_.GetDimension(result_type) != _.GetDimension(operand_type)) in LogicalsPass()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dvalidate_composites.cpp229 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
230 if (operand_type == result_component_type) { in ValidateCompositeConstruct()
233 if (_.GetIdOpcode(operand_type) != SpvOpTypeVector || in ValidateCompositeConstruct()
234 _.GetComponentType(operand_type) != result_component_type) { in ValidateCompositeConstruct()
240 given_component_count += _.GetDimension(operand_type); in ValidateCompositeConstruct()
270 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
271 if (operand_type != result_col_type) { in ValidateCompositeConstruct()
305 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
306 if (operand_type != result_component_type) { in ValidateCompositeConstruct()
328 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
[all …]
Dvalidate_logicals.cpp59 const uint32_t operand_type = _.GetOperandTypeId(inst, 2); in LogicalsPass() local
60 if (!operand_type || (!_.IsFloatScalarType(operand_type) && in LogicalsPass()
61 !_.IsFloatVectorType(operand_type))) in LogicalsPass()
66 if (_.GetDimension(result_type) != _.GetDimension(operand_type)) in LogicalsPass()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_composites.cpp229 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
230 if (operand_type == result_component_type) { in ValidateCompositeConstruct()
233 if (_.GetIdOpcode(operand_type) != SpvOpTypeVector || in ValidateCompositeConstruct()
234 _.GetComponentType(operand_type) != result_component_type) { in ValidateCompositeConstruct()
240 given_component_count += _.GetDimension(operand_type); in ValidateCompositeConstruct()
270 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
271 if (operand_type != result_col_type) { in ValidateCompositeConstruct()
305 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
306 if (operand_type != result_component_type) { in ValidateCompositeConstruct()
328 const uint32_t operand_type = _.GetOperandTypeId(inst, operand_index); in ValidateCompositeConstruct() local
[all …]
Dvalidate_logicals.cpp59 const uint32_t operand_type = _.GetOperandTypeId(inst, 2); in LogicalsPass() local
60 if (!operand_type || (!_.IsFloatScalarType(operand_type) && in LogicalsPass()
61 !_.IsFloatVectorType(operand_type))) in LogicalsPass()
66 if (_.GetDimension(result_type) != _.GetDimension(operand_type)) in LogicalsPass()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_traits.h59 for (auto operand_type : op->getOperandTypes()) { in verifyTrait() local
61 operand_type, type, /*may_ignore_ref_type_lhs=*/true)) in verifyTrait()
91 for (const auto& operand_type : op->getOperandTypes()) { in verifySameOperandsAndResultElementTypeResolveRef() local
92 if (mlir::TF::GetElementTypeOrSelfResolveRef(operand_type) != in verifySameOperandsAndResultElementTypeResolveRef()
/external/vixl/tools/test_generator/
Dgenerator.py177 [(operand_type.name, variant) for variant in operand_type.variants]
178 if operand_type.name in self.operand_names
179 else [(operand_type.name, operand_type.default)]
180 for operand_type in operand_types.unwrap()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dshape_inference.cc705 Type operand_type = op.getOperand().getType(); in InferShapeForCast() local
706 auto ranked_op_type = operand_type.dyn_cast<RankedTensorType>(); in InferShapeForCast()
874 Type operand_type = std::get<0>(entry).getType(); in RefineTypeForPassThroughOperands() local
877 if (operand_type == result_type) continue; in RefineTypeForPassThroughOperands()
882 if (operand_type.cast<TensorType>() in RefineTypeForPassThroughOperands()
890 UpdateTypeAndInsertIncompatibleUseCasts(operand_type, result); in RefineTypeForPassThroughOperands()
909 TensorType operand_type = std::get<0>(entry).getType().cast<TensorType>(); in RefineShapeForPassThroughOps() local
912 if (operand_type == result_type) continue; in RefineShapeForPassThroughOps()
913 if (!operand_type.hasRank()) continue; in RefineShapeForPassThroughOps()
915 result_type.getShape() == operand_type.getShape()) in RefineShapeForPassThroughOps()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Doperand_upcaster_test.cc33 bool ShouldUpcast(PrimitiveType operand_type, PrimitiveType result_type) { in ShouldUpcast() argument
34 return primitive_util::BitWidth(operand_type) < in ShouldUpcast()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp245 const analysis::Type* operand_type = operand_const->type(); in DoVectorShuffle() local
246 assert(operand_type->AsVector() && in DoVectorShuffle()
258 operand_type->AsVector()->element_type(); in DoVectorShuffle()
265 operand_type->AsVector()->element_count(), in DoVectorShuffle()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp245 const analysis::Type* operand_type = operand_const->type(); in DoVectorShuffle() local
246 assert(operand_type->AsVector() && in DoVectorShuffle()
258 operand_type->AsVector()->element_type(); in DoVectorShuffle()
265 operand_type->AsVector()->element_count(), in DoVectorShuffle()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp245 const analysis::Type* operand_type = operand_const->type(); in DoVectorShuffle() local
246 assert(operand_type->AsVector() && in DoVectorShuffle()
258 operand_type->AsVector()->element_type(); in DoVectorShuffle()
265 operand_type->AsVector()->element_count(), in DoVectorShuffle()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dcomparators.cc71 for (auto operand_type : operand_types) { in CreateScalarComparisonComputation() local
72 auto scalar_shape = ShapeUtil::MakeShape(operand_type, {}); in CreateScalarComparisonComputation()

123