MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / ValidateGroupAnyAll

Function ValidateGroupAnyAll

source/val/validate_group.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace {
25
26spv_result_t ValidateGroupAnyAll(ValidationState_t& _,
27 const Instruction* inst) {
28 if (!_.IsBoolScalarType(inst->type_id())) {
29 return _.diag(SPV_ERROR_INVALID_DATA, inst)
30 << "Result must be a boolean scalar type";
31 }
32
33 if (!_.IsBoolScalarType(_.GetOperandTypeId(inst, 3))) {
34 return _.diag(SPV_ERROR_INVALID_DATA, inst)
35 << "Predicate must be a boolean scalar type";
36 }
37
38 return SPV_SUCCESS;
39}
40
41spv_result_t ValidateGroupBroadcast(ValidationState_t& _,
42 const Instruction* inst) {

Callers 1

GroupPassFunction · 0.85

Calls 4

IsBoolScalarTypeMethod · 0.80
diagMethod · 0.80
GetOperandTypeIdMethod · 0.80
type_idMethod · 0.45

Tested by

no test coverage detected