// $Id: TEA.java,v 1.3 2000/10/09 14:19:29 a-hasega Exp $
// $RWC_Release: Omni-1.6 $
// $RWC_Copyright:
//  Omni Compiler Software Version 1.5-1.6
//  Copyright (C) 2002 PC Cluster Consortium
//  
//  This software is free software; you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License version
//  2.1 published by the Free Software Foundation.
//  
//  Omni Compiler Software Version 1.0-1.4
//  Copyright (C) 1999, 2000, 2001.
//   Tsukuba Research Center, Real World Computing Partnership, Japan.
//  
//  Please check the Copyright and License information in the files named
//  COPYRIGHT and LICENSE under the top  directory of the Omni Compiler
//  Software release kit.
//  
//  
//  $
package exc.tea;

import exc.object.*;

//
// for tea pragma
//
public class TEA {
  public final static int TIMER = 100;
  public final static int LOG_FUNC = 101;
  public final static int LOG_EVENT = 102;
  public final static int LOG_BEGIN = 103;
  public final static int LOG_END = 104;
  public final static int FOR = 110;
  public final static int DATAMAP = 111;

  public final static int FOR_UNROLL = 0;
  public final static int FOR_BLOCK = 1;

  public final static int MAP_NONE = 0;   /* * */
  public final static int MAP_EXPR = 1;   /* any expression */
  public final static int MAP_BLOCK = 2;  /* block */
  public final static int MAP_CYCLIC = 3; /* cyclic(N)*/

  public final static String mapProp = "TEA_mapping_info";

  public static String pragmaName(int pg){
    switch(pg){
    case TIMER:
      return "TIMER";
    case LOG_FUNC:
      return "LOG_FUNC";
    case LOG_EVENT:
      return "LOG_EVENT";
    case LOG_BEGIN:
      return "LOG_BEGIN";
    case LOG_END:
      return "LOG_END";
    case FOR:
      return "LOG_FOR";
    case DATAMAP:
      return "DATAMAP";
    default:
      return "???";
    }
  }
}


