LLVM  6.0.0svn
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::ValID Struct Reference

ValID - Represents a reference of a definition of some sort with no type. More...

#include "AsmParser/LLParser.h"

Collaboration diagram for llvm::ValID:
Collaboration graph
[legend]

Public Types

enum  {
  t_LocalID, t_GlobalID, t_LocalName, t_GlobalName,
  t_APSInt, t_APFloat, t_Null, t_Undef,
  t_Zero, t_None, t_EmptyArray, t_Constant,
  t_InlineAsm, t_ConstantStruct, t_PackedConstantStruct
}
 

Public Member Functions

 ValID ()=default
 
 ValID (const ValID &RHS)
 
bool operator< (const ValID &RHS) const
 

Public Attributes

enum llvm::ValID:: { ... }  Kind = t_LocalID
 
LLLexer::LocTy Loc
 
unsigned UIntVal
 
FunctionTypeFTy = nullptr
 
std::string StrVal
 
std::string StrVal2
 
APSInt APSIntVal
 
APFloat APFloatVal {0.0}
 
ConstantConstantVal
 
std::unique_ptr< Constant *[]> ConstantStructElts
 

Detailed Description

ValID - Represents a reference of a definition of some sort with no type.

There are several cases where we have to parse the value but where the type can depend on later context. This may either be a numeric reference or a symbolic (var) reference. This is just a discriminated union.

Definition at line 47 of file LLParser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
t_LocalID 
t_GlobalID 
t_LocalName 
t_GlobalName 
t_APSInt 
t_APFloat 
t_Null 
t_Undef 
t_Zero 
t_None 
t_EmptyArray 
t_Constant 
t_InlineAsm 
t_ConstantStruct 
t_PackedConstantStruct 

Definition at line 48 of file LLParser.h.

Constructor & Destructor Documentation

◆ ValID() [1/2]

llvm::ValID::ValID ( )
default

◆ ValID() [2/2]

llvm::ValID::ValID ( const ValID RHS)
inline

Definition at line 70 of file LLParser.h.

References assert(), and ConstantStructElts.

Member Function Documentation

◆ operator<()

bool llvm::ValID::operator< ( const ValID RHS) const
inline

Member Data Documentation

◆ APFloatVal

APFloat llvm::ValID::APFloatVal {0.0}

Definition at line 65 of file LLParser.h.

Referenced by FunctionNumber().

◆ APSIntVal

APSInt llvm::ValID::APSIntVal

Definition at line 64 of file LLParser.h.

Referenced by FunctionNumber().

◆ ConstantStructElts

std::unique_ptr<Constant *[]> llvm::ValID::ConstantStructElts

Definition at line 67 of file LLParser.h.

Referenced by FunctionNumber(), and ValID().

◆ ConstantVal

Constant* llvm::ValID::ConstantVal

Definition at line 66 of file LLParser.h.

Referenced by FunctionNumber(), and isValidVisibilityForLinkage().

◆ FTy

FunctionType* llvm::ValID::FTy = nullptr

Definition at line 62 of file LLParser.h.

Referenced by FunctionNumber().

◆ Kind

enum { ... } llvm::ValID::Kind

◆ Loc

LLLexer::LocTy llvm::ValID::Loc

Definition at line 60 of file LLParser.h.

Referenced by FunctionNumber(), and llvm::LLParser::getContext().

◆ StrVal

std::string llvm::ValID::StrVal

Definition at line 63 of file LLParser.h.

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

◆ StrVal2

std::string llvm::ValID::StrVal2

Definition at line 63 of file LLParser.h.

Referenced by FunctionNumber().

◆ UIntVal

unsigned llvm::ValID::UIntVal

Definition at line 61 of file LLParser.h.

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


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