comma::primitive_ops Namespace Reference

Enumerations

enum  PrimitiveID {
  NotPrimitive, ADD_op, SUB_op, MUL_op,
  DIV_op, MOD_op, REM_op, POW_op,
  EQ_op, NE_op, LT_op, GT_op,
  LE_op, GE_op, LOR_op, LAND_op,
  LXOR_op, LNOT_op, POS_op, NEG_op,
  ENUM_op, FIRST_PREDICATE_OP = EQ_op, LAST_PREDICATE_OP = LNOT_op, FIRST_PRIMITIVE_OP = ADD_op,
  LAST_PRIMITIVE_OP = ENUM_op, FIRST_BINARY_OP = ADD_op, LAST_BINARY_OP = LXOR_op, FIRST_UNARY_OP = LNOT_op,
  LAST_UNARY_OP = NEG_op
}

Functions

bool denotesOperator (PrimitiveID ID)
 Returns true if ID names an operator.
bool denotesPredicateOp (PrimitiveID ID)
 Returns true if ID names a primitive comparison operation.
bool denotesUnaryOp (PrimitiveID ID)
 Returns true if ID names a primitive unary operation.
bool denotesBinaryOp (PrimitiveID ID)
 Returns true if ID names a primitive binary operation.
bool denotesBinaryOp (const llvm::StringRef &string)
 Returns true if the given string names a binary operator.
bool denotesUnaryOp (const llvm::StringRef &string)
 Returns true if the given string names a unary operator.
bool denotesOperator (const llvm::StringRef &string)
 Returns true if the given string names an operator.
bool denotesBinaryOp (const comma::IdentifierInfo *idInfo)
 Returns true if the given IdentifierInfo names a binary operator.
bool denotesUnaryOp (const comma::IdentifierInfo *idInfo)
 Returns true if the given IdentifierInfo names a unary operator.
bool denotesOperator (const comma::IdentifierInfo *idInfo)
 Returns true if the given IdentifierInfo names an operator.
const char * getOpName (PrimitiveID ID)
 Returns the name of a primitive unary operator.

Enumeration Type Documentation

Enumerator:
NotPrimitive 
ADD_op 
SUB_op 
MUL_op 
DIV_op 
MOD_op 
REM_op 
POW_op 
EQ_op 
NE_op 
LT_op 
GT_op 
LE_op 
GE_op 
LOR_op 
LAND_op 
LXOR_op 
LNOT_op 
POS_op 
NEG_op 
ENUM_op 
FIRST_PREDICATE_OP 
LAST_PREDICATE_OP 
FIRST_PRIMITIVE_OP 
LAST_PRIMITIVE_OP 
FIRST_BINARY_OP 
LAST_BINARY_OP 
FIRST_UNARY_OP 
LAST_UNARY_OP 

Definition at line 20 of file PrimitiveOps.h.


Function Documentation

bool comma::primitive_ops::denotesBinaryOp ( const comma::IdentifierInfo idInfo  ) 

Returns true if the given IdentifierInfo names a binary operator.

Definition at line 83 of file PrimitiveOps.cpp.

bool comma::primitive_ops::denotesBinaryOp ( const llvm::StringRef &  string  ) 

Returns true if the given string names a binary operator.

Definition at line 14 of file PrimitiveOps.cpp.

bool comma::primitive_ops::denotesBinaryOp ( PrimitiveID  ID  )  [inline]

Returns true if ID names a primitive binary operation.

Definition at line 93 of file PrimitiveOps.h.

bool comma::primitive_ops::denotesOperator ( const comma::IdentifierInfo idInfo  ) 

Returns true if the given IdentifierInfo names an operator.

Definition at line 95 of file PrimitiveOps.cpp.

bool comma::primitive_ops::denotesOperator ( const llvm::StringRef &  string  ) 

Returns true if the given string names an operator.

Definition at line 77 of file PrimitiveOps.cpp.

bool comma::primitive_ops::denotesOperator ( PrimitiveID  ID  )  [inline]

Returns true if ID names an operator.

Definition at line 78 of file PrimitiveOps.h.

bool comma::primitive_ops::denotesPredicateOp ( PrimitiveID  ID  )  [inline]

Returns true if ID names a primitive comparison operation.

Definition at line 83 of file PrimitiveOps.h.

bool comma::primitive_ops::denotesUnaryOp ( const comma::IdentifierInfo idInfo  ) 

Returns true if the given IdentifierInfo names a unary operator.

Definition at line 89 of file PrimitiveOps.cpp.

bool comma::primitive_ops::denotesUnaryOp ( const llvm::StringRef &  string  ) 

Returns true if the given string names a unary operator.

Definition at line 59 of file PrimitiveOps.cpp.

bool comma::primitive_ops::denotesUnaryOp ( PrimitiveID  ID  )  [inline]

Returns true if ID names a primitive unary operation.

Definition at line 88 of file PrimitiveOps.h.

const char* comma::primitive_ops::getOpName ( PrimitiveID  ID  )  [inline]

Returns the name of a primitive unary operator.

Definition at line 116 of file PrimitiveOps.h.


Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1