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

Function InOperandIndexFromOperandIndex

source/fuzz/fuzzer_util.cpp:817–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817uint32_t InOperandIndexFromOperandIndex(const opt::Instruction& inst,
818 uint32_t absolute_index) {
819 // Subtract the number of non-input operands from the index
820 return absolute_index - inst.NumOperands() + inst.NumInOperands();
821}
822
823bool IsNullConstantSupported(opt::IRContext* ir_context,
824 const opt::Instruction& type_inst) {

Callers 4

ApplyMethod · 0.85
ApplyMethod · 0.85
MaybeAddUseToReplaceMethod · 0.85
ApplyMethod · 0.85

Calls 2

NumOperandsMethod · 0.80
NumInOperandsMethod · 0.80

Tested by

no test coverage detected