diff --git a/Src/ILGPU/Backends/Velocity/VelocityTargetSpecializer.cs b/Src/ILGPU/Backends/Velocity/VelocityTargetSpecializer.cs index 23fab7e9f..e8cd73e95 100644 --- a/Src/ILGPU/Backends/Velocity/VelocityTargetSpecializer.cs +++ b/Src/ILGPU/Backends/Velocity/VelocityTargetSpecializer.cs @@ -35,14 +35,6 @@ internal static MethodInfo GetMethod(string name) => private static readonly MethodInfo MemoryBarrierMethod = GetMethod(nameof(MemoryBarrier)); - private static readonly MethodInfo GetGridIndexMethod = - GetMethod(nameof(GetGridIndexImpl)); - private static readonly MethodInfo GetGridDimMethod = - GetMethod(nameof(GetGridDimImpl)); - private static readonly MethodInfo GetGroupDimMethod = - GetMethod(nameof(GetGroupDimImpl)); - private static readonly MethodInfo GetUserSizeMethod = - GetMethod(nameof(GetUserSizeImpl)); private static readonly MethodInfo GetDynamicSharedMemoryMethod = GetMethod( @@ -54,8 +46,6 @@ internal static MethodInfo GetMethod(string name) => GetMethod(nameof(GetSharedMemoryFromPoolImpl)); private static readonly MethodInfo GetLocalMemoryFromPoolMethod = GetMethod(nameof(GetLocalMemoryFromPoolImpl)); - private static readonly MethodInfo ComputeGlobalBaseIndexMethod = - GetMethod(nameof(ComputeGlobalBaseIndexImpl)); private static readonly MethodInfo DebuggerBreakMethod = GetMethod(nameof(DebuggerBreakImpl)); @@ -64,36 +54,6 @@ internal static MethodInfo GetMethod(string name) => /// internal static void MemoryBarrier() => Interlocked.MemoryBarrier(); - /// - /// Wrapper around a group extension context. - /// - internal static int GetGridIndexImpl(VelocityGroupExecutionContext context) => - context.GridIdx; - - /// - /// Wrapper around a group extension context. - /// - internal static int GetGridDimImpl(VelocityGroupExecutionContext context) => - context.GridDim; - - /// - /// Wrapper around a group extension context. - /// - internal static int GetGroupDimImpl(VelocityGroupExecutionContext context) => - context.GroupDim; - - /// - /// Wrapper around a group extension context. - /// - internal static int GetUserSizeImpl(VelocityGroupExecutionContext context) => - context.UserSize; - - /// - /// Wrapper around a group extension context. - /// - internal static int ComputeGlobalBaseIndexImpl( - VelocityGroupExecutionContext context) => context.GroupOffset; - /// /// Wrapper around a group extension context. /// @@ -557,34 +517,6 @@ public static void MemoryBarrier(TILEmitter emitter) where TILEmitter : struct, IILEmitter => emitter.EmitCall(MemoryBarrierMethod); - public static void GetGridIndex(TILEmitter emitter) - where TILEmitter : struct, IILEmitter - { - emitter.Emit(OpCodes.Ldarg_0); - emitter.EmitCall(GetGridIndexMethod); - } - - public static void GetGridDim(TILEmitter emitter) - where TILEmitter : struct, IILEmitter - { - emitter.Emit(OpCodes.Ldarg_0); - emitter.EmitCall(GetGridDimMethod); - } - - public static void GetUserSize(TILEmitter emitter) - where TILEmitter : struct, IILEmitter - { - emitter.Emit(OpCodes.Ldarg_0); - emitter.EmitCall(GetUserSizeMethod); - } - - public static void GetGroupDim(TILEmitter emitter) - where TILEmitter : struct, IILEmitter - { - emitter.Emit(OpCodes.Ldarg_0); - emitter.EmitCall(GetGroupDimMethod); - } - public void GetDynamicSharedMemory(TILEmitter emitter) where TILEmitter : struct, IILEmitter { @@ -640,13 +572,6 @@ public void GetUnifiedLocalMemoryFromPool( ConvertScalarTo64(emitter, VelocityWarpOperationMode.U); } - public static void ComputeGlobalBaseIndex(TILEmitter emitter) - where TILEmitter : struct, IILEmitter - { - emitter.Emit(OpCodes.Ldarg_0); - emitter.EmitCall(ComputeGlobalBaseIndexMethod); - } - public static void DebuggerBreak(TILEmitter emitter) where TILEmitter : struct, IILEmitter => emitter.EmitCall(DebuggerBreakMethod);