public void Emit( PTXCodeGenerator codeGenerator, string command, PrimitiveRegister register, int offset) { using var commandEmitter = codeGenerator.BeginCommand(command); commandEmitter.AppendAddressSpace(TargetType.AddressSpace); commandEmitter.AppendSuffix(register.BasicValueType); commandEmitter.AppendArgumentValue(AddressRegister, offset); commandEmitter.AppendArgument(register); }
public void Emit( PTXCodeGenerator codeGenerator, string command, PrimitiveRegister[] primitiveRegisters, int offset) { using var commandEmitter = codeGenerator.BeginCommand(command); commandEmitter.AppendAddressSpace(Emitter.TargetType.AddressSpace); commandEmitter.AppendVectorSuffix(primitiveRegisters.Length); commandEmitter.AppendSuffix( ResolveIOType(primitiveRegisters[0].BasicValueType)); commandEmitter.AppendArgumentValue(Emitter.AddressRegister, offset); commandEmitter.AppendVectorArgument(primitiveRegisters); }