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

Function GetNumberOfStructMembers

source/fuzz/fuzzer_util.cpp:418–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418uint32_t GetNumberOfStructMembers(
419 const opt::Instruction& struct_type_instruction) {
420 assert(struct_type_instruction.opcode() == spv::Op::OpTypeStruct &&
421 "An OpTypeStruct instruction is required here.");
422 return struct_type_instruction.NumInOperands();
423}
424
425uint32_t GetArraySize(const opt::Instruction& array_type_instruction,
426 opt::IRContext* context) {

Callers 5

ApplyMethod · 0.85
ComputeClosureOfFactsMethod · 0.85

Calls 2

NumInOperandsMethod · 0.80
opcodeMethod · 0.45

Tested by

no test coverage detected