LLVM 22.0.0git
llvm::ValID Struct Reference

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

#include "llvm/AsmParser/LLParser.h"

Public Types

enum  {
  t_LocalID , t_GlobalID , t_LocalName , t_GlobalName ,
  t_APSInt , t_APFloat , t_Null , t_Undef ,
  t_Zero , t_None , t_Poison , t_EmptyArray ,
  t_Constant , t_ConstantSplat , 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
bool NoCFI = false

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 53 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_Poison 
t_EmptyArray 
t_Constant 
t_ConstantSplat 
t_InlineAsm 
t_ConstantStruct 
t_PackedConstantStruct 

Definition at line 54 of file LLParser.h.

Constructor & Destructor Documentation

◆ ValID() [1/2]

llvm::ValID::ValID ( )
default

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

◆ ValID() [2/2]

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

Definition at line 85 of file LLParser.h.

References APFloatVal, APSIntVal, assert(), ConstantVal, FTy, Kind, Loc, NoCFI, RHS, StrVal, StrVal2, UIntVal, and ValID().

Member Function Documentation

◆ operator<()

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

Definition at line 93 of file LLParser.h.

References assert(), Kind, RHS, StrVal, t_GlobalID, t_GlobalName, t_LocalID, t_LocalName, UIntVal, and ValID().

Member Data Documentation

◆ APFloatVal

APFloat llvm::ValID::APFloatVal {0.0}

Definition at line 79 of file LLParser.h.

Referenced by ValID().

◆ APSIntVal

APSInt llvm::ValID::APSIntVal

Definition at line 78 of file LLParser.h.

Referenced by ValID().

◆ ConstantStructElts

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

Definition at line 81 of file LLParser.h.

◆ ConstantVal

Constant* llvm::ValID::ConstantVal

Definition at line 80 of file LLParser.h.

Referenced by ValID().

◆ FTy

FunctionType* llvm::ValID::FTy = nullptr

Definition at line 76 of file LLParser.h.

Referenced by ValID().

◆ []

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

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

◆ Loc

LLLexer::LocTy llvm::ValID::Loc

Definition at line 74 of file LLParser.h.

Referenced by ValID().

◆ NoCFI

bool llvm::ValID::NoCFI = false

Definition at line 82 of file LLParser.h.

Referenced by ValID().

◆ StrVal

std::string llvm::ValID::StrVal

Definition at line 77 of file LLParser.h.

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

◆ StrVal2

std::string llvm::ValID::StrVal2

Definition at line 77 of file LLParser.h.

Referenced by ValID().

◆ UIntVal

unsigned llvm::ValID::UIntVal

Definition at line 75 of file LLParser.h.

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


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