/// <summary cref="IValueVisitor.Visit(WarpSizeValue)"/> public void Visit(WarpSizeValue value) { var register = AllocatePrimitive(value); using (var command = BeginMove()) { command.AppendSuffix(BasicValueType.Int32); command.AppendArgument(register); command.AppendConstant(PTXBackend.WarpSize); } }
/// <summary> /// Specializes warp size values. /// </summary> private static void Specialize( RewriterContext context, AcceleratorSpecializer specializer, WarpSizeValue value) { if (!specializer.WarpSize.HasValue) { return; } Specialize(context, value, specializer.WarpSize.Value); }
/// <summary> /// Specializes warp size values. /// </summary> private static void Specialize( RewriterContext context, SpecializerData data, WarpSizeValue value) { var warpSizeValue = data.WarpSize; if (!warpSizeValue.HasValue) { return; } Specialize(context, value, warpSizeValue.Value); }
public void Visit(WarpSizeValue value) { }
/// <summary cref="IValueVisitor.Visit(WarpSizeValue)"/> public void Visit(WarpSizeValue value) => CodeGenerator.GenerateCode(value);
/// <summary cref="IValueVisitor.Visit(WarpSizeValue)"/> public void Visit(WarpSizeValue value) => MakeIntrinsicValue( value, CLInstructions.GetWarpSize);
/// <summary cref="IBackendCodeGenerator.GenerateCode(WarpSizeValue)"/> public void GenerateCode(WarpSizeValue value) => MakeIntrinsicValue( value, CLInstructions.GetWarpSize);
/// <summary cref="IBackendCodeGenerator.GenerateCode(WarpSizeValue)"/> public void GenerateCode(WarpSizeValue value) => throw new InvalidCodeGenerationException();