LLVM  8.0.1
Macros | Enumerations | Functions | Variables
Value.cpp File Reference
#include "llvm/IR/Value.h"
#include "LLVMContextImpl.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/DerivedUser.h"
#include "llvm/IR/GetElementPtrTypeIterator.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/Statepoint.h"
#include "llvm/IR/ValueHandle.h"
#include "llvm/IR/ValueSymbolTable.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include "llvm/IR/Value.def"
#include "llvm/IR/Instruction.def"
Include dependency graph for Value.cpp:

Go to the source code of this file.

Macros

#define HANDLE_VALUE(Name)
 
#define HANDLE_MEMORY_VALUE(Name)
 
#define HANDLE_INSTRUCTION(Name)   /* nothing */
 
#define HANDLE_INST(N, OPC, CLASS)
 
#define HANDLE_USER_INST(N, OPC, CLASS)
 

Enumerations

enum  PointerStripKind
 

Functions

static TypecheckType (Type *Ty)
 
static bool getSymTab (Value *V, ValueSymbolTable *&ST)
 
static bool contains (SmallPtrSetImpl< ConstantExpr *> &Cache, ConstantExpr *Expr, Constant *C)
 
static bool contains (Value *Expr, Value *V)
 

Variables

static cl::opt< unsignedNonGlobalValueMaxNameSize ("non-global-value-max-name-size", cl::Hidden, cl::init(1024), cl::desc("Maximum size for the name of non-global values."))
 

Macro Definition Documentation

◆ HANDLE_INST

#define HANDLE_INST (   N,
  OPC,
  CLASS 
)
Value:
case Value::InstructionVal + Instruction::OPC: \
delete static_cast<CLASS *>(this); \
break;

◆ HANDLE_INSTRUCTION

#define HANDLE_INSTRUCTION (   Name)    /* nothing */

◆ HANDLE_MEMORY_VALUE

#define HANDLE_MEMORY_VALUE (   Name)
Value:
case Value::Name##Val: \
static_cast<DerivedUser *>(this)->DeleteValue( \
static_cast<DerivedUser *>(this)); \
break;
Extension point for the Value hierarchy.
Definition: DerivedUser.h:28
amdgpu Simplify well known AMD library false Value Value const Twine & Name

◆ HANDLE_USER_INST

#define HANDLE_USER_INST (   N,
  OPC,
  CLASS 
)

◆ HANDLE_VALUE

#define HANDLE_VALUE (   Name)
Value:
case Value::Name##Val: \
delete static_cast<Name *>(this); \
break;
amdgpu Simplify well known AMD library false Value Value const Twine & Name

Enumeration Type Documentation

◆ PointerStripKind

Definition at line 460 of file Value.cpp.

Function Documentation

◆ checkType()

static Type* checkType ( Type Ty)
inlinestatic

Definition at line 48 of file Value.cpp.

References assert().

◆ contains() [1/2]

static bool contains ( SmallPtrSetImpl< ConstantExpr *> &  Cache,
ConstantExpr Expr,
Constant C 
)
static

◆ contains() [2/2]

static bool contains ( Value Expr,
Value V 
)
static

◆ getSymTab()

static bool getSymTab ( Value V,
ValueSymbolTable *&  ST 
)
static

Variable Documentation

◆ NonGlobalValueMaxNameSize

cl::opt<unsigned> NonGlobalValueMaxNameSize("non-global-value-max-name-size", cl::Hidden, cl::init(1024), cl::desc("Maximum size for the name of non-global values."))
static

Referenced by llvm::Value::getName().