Example #1
0
            public override void Compile(CallStatement call, ICompilerBackend backend)
            {
                switch (_type)
                {
                    case EBarrierType.Global:
                        backend.InstallBarrier();
                        break;

                    case EBarrierType.PortIO:
                        backend.InstallBarrier(InstructionCodes.WrPort, InstructionCodes.RdPort);
                        break;

                    default:
                        throw new NotImplementedException();
                }
            }
Example #2
0
            public override void Compile(CallStatement call, ICompilerBackend backend)
            {
                switch (_type)
                {
                case EBarrierType.Global:
                    backend.InstallBarrier();
                    break;

                case EBarrierType.PortIO:
                    backend.InstallBarrier(InstructionCodes.WrPort, InstructionCodes.RdPort);
                    break;

                default:
                    throw new NotImplementedException();
                }
            }
Example #3
0
 public override void Compile(CallStatement call, ICompilerBackend backend)
 {
 }
Example #4
0
 /// <summary>
 /// Compiles the method call
 /// </summary>
 /// <param name="call">method call statement</param>
 /// <param name="backend">compiler interface to emit XIL instructions</param>
 public abstract void Compile(CallStatement call, ICompilerBackend backend);
 public override void Compile(CallStatement call, ICompilerBackend backend)
 {
 }
 /// <summary>
 /// Compiles the method call
 /// </summary>
 /// <param name="call">method call statement</param>
 /// <param name="backend">compiler interface to emit XIL instructions</param>
 public abstract void Compile(CallStatement call, ICompilerBackend backend);