comma::IntegerLiteral Class Reference

#include <Expr.h>

Inheritance diagram for comma::IntegerLiteral:
Inheritance graph
[legend]
Collaboration diagram for comma::IntegerLiteral:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IntegerLiteral (const llvm::APInt &value, Location loc)
 IntegerLiteral (const llvm::APInt &value, IntegerType *type, Location loc)
 Constructs an integer literal with the given integer type.
bool isUniversalInteger () const
 Returns true if this literal is of the universal integer type.
void setValue (const llvm::APInt &V)
 Sets the literal value of this integer.



const llvm::APInt & getValue () const
 Returns the literal value of this integer.
llvm::APInt & getValue ()
 Returns the literal value of this integer.

Static Public Member Functions

static bool classof (const IntegerLiteral *node)
 Support isa and dyn_cast.
static bool classof (const Ast *node)

Detailed Description

Definition at line 454 of file Expr.h.


Constructor & Destructor Documentation

comma::IntegerLiteral::IntegerLiteral ( const llvm::APInt &  value,
Location  loc 
) [inline]

Constructs an integer literal with an initial type of universal_integer.

Definition at line 459 of file Expr.h.

comma::IntegerLiteral::IntegerLiteral ( const llvm::APInt &  value,
IntegerType type,
Location  loc 
) [inline]

Constructs an integer literal with the given integer type.

Definition at line 464 of file Expr.h.


Member Function Documentation

static bool comma::IntegerLiteral::classof ( const Ast node  )  [inline, static]

Reimplemented from comma::Expr.

Definition at line 483 of file Expr.h.

static bool comma::IntegerLiteral::classof ( const IntegerLiteral node  )  [inline, static]

Support isa and dyn_cast.

Reimplemented from comma::Expr.

Definition at line 482 of file Expr.h.

llvm::APInt& comma::IntegerLiteral::getValue (  )  [inline]

Returns the literal value of this integer.

Definition at line 475 of file Expr.h.

const llvm::APInt& comma::IntegerLiteral::getValue (  )  const [inline]

Returns the literal value of this integer.

Definition at line 474 of file Expr.h.

bool comma::IntegerLiteral::isUniversalInteger (  )  const [inline]

Returns true if this literal is of the universal integer type.

Definition at line 468 of file Expr.h.

void comma::IntegerLiteral::setValue ( const llvm::APInt &  V  )  [inline]

Sets the literal value of this integer.

Definition at line 479 of file Expr.h.


The documentation for this class was generated from the following file:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1