示例#1
0
 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);
 }
示例#2
0
 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);
 }