Writes the operands of an operation to the bytecode
| 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, |
nothing calls this directly
no test coverage detected