LLVM API Documentation

llvm::ValID Struct Reference

#include <ParserInternals.h>

Collaboration diagram for llvm::ValID:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  NumberVal, NameVal, ConstSIntVal, ConstUIntVal,
  ConstFPVal, ConstNullVal, ConstUndefVal, ConstZeroVal,
  ConstantVal, InlineAsmVal
}

Public Member Functions

void destroy () const
ValID copy () const
std::string getName () const
bool operator< (const ValID &V) const

Static Public Member Functions

static ValID create (int Num)
static ValID create (char *Name)
static ValID create (int64_t Val)
static ValID create (uint64_t Val)
static ValID create (double Val)
static ValID createNull ()
static ValID createUndef ()
static ValID createZeroInit ()
static ValID create (Constant *Val)
static ValID createInlineAsm (const std::string &AsmString, const std::string &Constraints, bool HasSideEffects)

Public Attributes

enum llvm::ValID:: { ... }  Type
union {
   int   Num
   char *   Name
   int64_t   ConstPool64
   uint64_t   UConstPool64
   double   ConstPoolFP
   Constant *   ConstantValue
   InlineAsmDescriptor *   IAD
}; 

Detailed Description

Definition at line 93 of file ParserInternals.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NumberVal 
NameVal 
ConstSIntVal 
ConstUIntVal 
ConstFPVal 
ConstNullVal 
ConstUndefVal 
ConstZeroVal 
ConstantVal 
InlineAsmVal 

Definition at line 94 of file ParserInternals.h.


Member Function Documentation

static ValID llvm::ValID::create ( int  Num  )  [inline, static]

Definition at line 109 of file ParserInternals.h.

References D, and NumberVal.

static ValID llvm::ValID::create ( char *  Name  )  [inline, static]

Definition at line 113 of file ParserInternals.h.

References D, and NameVal.

static ValID llvm::ValID::create ( int64_t  Val  )  [inline, static]

Definition at line 117 of file ParserInternals.h.

References ConstSIntVal, and D.

static ValID llvm::ValID::create ( uint64_t  Val  )  [inline, static]

Definition at line 121 of file ParserInternals.h.

References ConstUIntVal, and D.

static ValID llvm::ValID::create ( double  Val  )  [inline, static]

Definition at line 125 of file ParserInternals.h.

References ConstFPVal, and D.

static ValID llvm::ValID::createNull (  )  [inline, static]

Definition at line 129 of file ParserInternals.h.

References ConstNullVal, and D.

static ValID llvm::ValID::createUndef (  )  [inline, static]

Definition at line 133 of file ParserInternals.h.

References ConstUndefVal, and D.

static ValID llvm::ValID::createZeroInit (  )  [inline, static]

Definition at line 137 of file ParserInternals.h.

References ConstZeroVal, and D.

static ValID llvm::ValID::create ( Constant Val  )  [inline, static]

Definition at line 141 of file ParserInternals.h.

References ConstantVal, D, and Val.

static ValID llvm::ValID::createInlineAsm ( const std::string &  AsmString,
const std::string &  Constraints,
bool  HasSideEffects 
) [inline, static]

Definition at line 145 of file ParserInternals.h.

References D, and InlineAsmVal.

void llvm::ValID::destroy (  )  const [inline]

Definition at line 154 of file ParserInternals.h.

References IAD, InlineAsmVal, Name, and NameVal.

ValID llvm::ValID::copy (  )  const [inline]

Definition at line 161 of file ParserInternals.h.

References Name, NameVal, and strdup.

std::string llvm::ValID::getName (  )  const [inline]

Definition at line 168 of file ParserInternals.h.

References ConstantVal, ConstantValue, ConstFPVal, ConstNullVal, ConstPool64, ConstPoolFP, ConstSIntVal, ConstUIntVal, ConstUndefVal, ConstZeroVal, llvm::ConstantBool::False, llvm::ftostr(), llvm::itostr(), Name, NameVal, Num, NumberVal, and llvm::ConstantBool::True.

bool llvm::ValID::operator< ( const ValID V  )  const [inline]

Definition at line 189 of file ParserInternals.h.

References ConstantVal, ConstantValue, ConstFPVal, ConstNullVal, ConstPool64, ConstPoolFP, ConstSIntVal, ConstUIntVal, ConstUndefVal, ConstZeroVal, Name, NameVal, Num, NumberVal, UConstPool64, and V.


Member Data Documentation

enum { ... } llvm::ValID::Type

int llvm::ValID::Num

Definition at line 100 of file ParserInternals.h.

Referenced by getName(), and operator<().

char* llvm::ValID::Name

Definition at line 101 of file ParserInternals.h.

Referenced by copy(), destroy(), getName(), and operator<().

int64_t llvm::ValID::ConstPool64

Definition at line 102 of file ParserInternals.h.

Referenced by getName(), and operator<().

uint64_t llvm::ValID::UConstPool64

Definition at line 103 of file ParserInternals.h.

Referenced by operator<().

double llvm::ValID::ConstPoolFP

Definition at line 104 of file ParserInternals.h.

Referenced by getName(), and operator<().

Constant* llvm::ValID::ConstantValue

Definition at line 105 of file ParserInternals.h.

Referenced by getName(), and operator<().

InlineAsmDescriptor* llvm::ValID::IAD

Definition at line 106 of file ParserInternals.h.

Referenced by destroy().

union { ... }


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