MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / createCooperativeMatrixReduce

Method createCooperativeMatrixReduce

SPIRV/SpvBuilder.cpp:4182–4191  ·  view source on GitHub ↗

coopmat reduce

Source from the content-addressed store, hash-verified

4180
4181// coopmat reduce
4182Id Builder::createCooperativeMatrixReduce(Op opcode, Id typeId, Id source, unsigned int mask, Id func)
4183{
4184 Instruction* op = new Instruction(getUniqueId(), typeId, opcode);
4185 op->addIdOperand(source);
4186 op->addImmediateOperand(mask);
4187 op->addIdOperand(func);
4188 addInstruction(std::unique_ptr<Instruction>(op));
4189
4190 return op->getResultId();
4191}
4192
4193// coopmat per-element operation
4194Id Builder::createCooperativeMatrixPerElementOp(Id typeId, const std::vector<Id>& operands)

Callers 1

visitAggregateMethod · 0.80

Calls 3

addIdOperandMethod · 0.80
addImmediateOperandMethod · 0.80
getResultIdMethod · 0.80

Tested by

no test coverage detected