public static void Exit(EmitterContext context) { OpCodeExit op = (OpCodeExit)context.CurrOp; // TODO: Figure out how this is supposed to work in the // presence of other condition codes. if (op.Condition == Condition.Always) { context.Return(); } }
public static void Exit(EmitterContext context) { if (context.IsNonMain) { context.Config.GpuAccessor.Log("Invalid exit on non-main function."); return; } OpCodeExit op = (OpCodeExit)context.CurrOp; // TODO: Figure out how this is supposed to work in the // presence of other condition codes. if (op.Condition == Condition.Always) { context.Return(); } }