Ejemplo n.º 1
0
 /// <summary cref="IBackendCodeGenerator.GenerateCode(Barrier)"/>
 public void GenerateCode(Barrier barrier)
 {
     using var statement = BeginStatement(
               CLInstructions.GetBarrier(barrier.Kind));
     statement.BeginArguments();
     statement.AppendCommand(
         CLInstructions.GetMemoryFenceFlags(true));
     statement.EndArguments();
 }
Ejemplo n.º 2
0
 /// <summary cref="IValueVisitor.Visit(Barrier)"/>
 public void Visit(Barrier barrier)
 {
     using (var statement = BeginStatement(
                CLInstructions.GetBarrier(barrier.Kind))) { }
 }