MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / writeOperands

Method writeOperands

lib/Bytecode/Writer/BytecodeWriter.cpp:996–1004  ·  view source on GitHub ↗

Writes the operands of an operation to the bytecode

Source from the content-addressed store, hash-verified

994
995 // Writes the operands of an operation to the bytecode
996 void writeOperands(ValueRange operands, EncodingWriter &writer,
997 bool encodeSize = true) {
998 if (encodeSize)
999 writer.writeVarInt(operands.size());
1000 for (Value operand : operands) {
1001 uint64_t operandIndex = valueIndexMap.lookup(operand);
1002 writer.writeVarInt(operandIndex);
1003 }
1004 }
1005
1006 // Writes result types from a TypeRange to the bytecode.
1007 LogicalResult writeResultTypes(TypeRange resultTypes, EncodingWriter &writer,

Callers

nothing calls this directly

Calls 2

writeVarIntMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected