LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Constants.cpp File Reference

#include "llvm/Constants.h"
#include "ConstantFolding.h"
#include "llvm/DerivedTypes.h"
#include "llvm/GlobalValue.h"
#include "llvm/Instructions.h"
#include "llvm/SymbolTable.h"
#include "llvm/Module.h"
#include "llvm/ADT/StringExtras.h"
#include <algorithm>
#include <iostream>

Include dependency graph for Constants.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm

Classes

struct  llvm::ConstantCreator< ConstantClass, TypeClass, ValType >
struct  llvm::ConvertConstantType< ConstantClass, TypeClass >
struct  llvm::ConstantCreator< ConstantFP, Type, uint64_t >
struct  llvm::ConstantCreator< ConstantFP, Type, uint32_t >
struct  llvm::ConstantCreator< ConstantAggregateZero, Type, ValType >
struct  llvm::ConvertConstantType< ConstantAggregateZero, Type >
struct  llvm::ConvertConstantType< ConstantArray, ArrayType >
struct  llvm::ConvertConstantType< ConstantStruct, StructType >
struct  llvm::ConvertConstantType< ConstantPacked, PackedType >
struct  llvm::ConstantCreator< ConstantPointerNull, PointerType, ValType >
struct  llvm::ConvertConstantType< ConstantPointerNull, PointerType >
struct  llvm::ConstantCreator< UndefValue, Type, ValType >
struct  llvm::ConvertConstantType< UndefValue, Type >
struct  llvm::ConstantCreator< ConstantExpr, Type, ExprMapKeyType >
struct  llvm::ConvertConstantType< ConstantExpr, Type >

Typedefs

typedef std::pair< unsigned,
std::vector< Constant * > > 
ExprMapKeyType

Functions

static bool isSetCC (unsigned Opcode)
static char getValType (ConstantAggregateZero *CPZ)
static std::vector< Constant * > getValType (ConstantArray *CA)
static std::vector< Constant * > getValType (ConstantStruct *CS)
static std::vector< Constant * > getValType (ConstantPacked *CP)
static char getValType (ConstantPointerNull *)
static char getValType (UndefValue *)
static ExprMapKeyType getValType (ConstantExpr *CE)

Variables

static ValueMap< int64_t,
Type, ConstantSInt
SIntConstants
static ValueMap< uint64_t,
Type, ConstantUInt
UIntConstants
static ValueMap< uint64_t,
Type, ConstantFP
DoubleConstants
static ValueMap< uint32_t,
Type, ConstantFP
FloatConstants
static ValueMap< char, Type,
ConstantAggregateZero
AggZeroConstants
static ValueMap< std::vector<
Constant * >, ArrayType,
ConstantArray
ArrayConstants
static ValueMap< std::vector<
Constant * >, StructType,
ConstantStruct
StructConstants
static ValueMap< std::vector<
Constant * >, PackedType,
ConstantPacked
PackedConstants
static ValueMap< char, PointerType,
ConstantPointerNull
NullPtrConstants
static ValueMap< char, Type,
UndefValue
UndefValueConstants
static ValueMap< ExprMapKeyType,
Type, ConstantExpr
ExprConstants


Typedef Documentation

typedef std::pair<unsigned, std::vector<Constant*> > ExprMapKeyType
 

Definition at line 1158 of file Constants.cpp.


Function Documentation

static ExprMapKeyType getValType ConstantExpr CE  )  [static]
 

Definition at line 1219 of file Constants.cpp.

References llvm::User::getNumOperands(), llvm::ConstantExpr::getOpcode(), and llvm::ConstantExpr::getOperand().

static char getValType UndefValue  )  [static]
 

Definition at line 1137 of file Constants.cpp.

static char getValType ConstantPointerNull  )  [static]
 

Definition at line 1094 of file Constants.cpp.

static std::vector<Constant*> getValType ConstantPacked CP  )  [static]
 

Definition at line 1031 of file Constants.cpp.

References llvm::User::getNumOperands(), and llvm::Constant::getOperand().

static std::vector<Constant*> getValType ConstantStruct CS  )  [static]
 

Definition at line 980 of file Constants.cpp.

References llvm::User::getNumOperands(), and llvm::Constant::getOperand().

static std::vector<Constant*> getValType ConstantArray CA  )  [static]
 

Definition at line 880 of file Constants.cpp.

References llvm::User::getNumOperands(), and llvm::Constant::getOperand().

static char getValType ConstantAggregateZero CPZ  )  [static]
 

Definition at line 841 of file Constants.cpp.

static bool isSetCC unsigned  Opcode  )  [static]
 

Definition at line 303 of file Constants.cpp.

References llvm::ISD::SetEQ, llvm::ISD::SetGE, llvm::ISD::SetGT, llvm::ISD::SetLE, llvm::ISD::SetLT, and llvm::ISD::SetNE.


Variable Documentation

ValueMap<char, Type, ConstantAggregateZero> AggZeroConstants [static]
 

Definition at line 839 of file Constants.cpp.

ValueMap<std::vector<Constant*>, ArrayType, ConstantArray> ArrayConstants [static]
 

Definition at line 889 of file Constants.cpp.

ValueMap<uint64_t, Type, ConstantFP> DoubleConstants [static]
 

Definition at line 793 of file Constants.cpp.

ValueMap<ExprMapKeyType, Type, ConstantExpr> ExprConstants [static]
 

Definition at line 1227 of file Constants.cpp.

ValueMap<uint32_t, Type, ConstantFP> FloatConstants [static]
 

Definition at line 794 of file Constants.cpp.

ValueMap<char, PointerType, ConstantPointerNull> NullPtrConstants [static]
 

Definition at line 1092 of file Constants.cpp.

ValueMap<std::vector<Constant*>, PackedType, ConstantPacked> PackedConstants [static]
 

Definition at line 1040 of file Constants.cpp.

ValueMap< int64_t, Type, ConstantSInt> SIntConstants [static]
 

Definition at line 747 of file Constants.cpp.

ValueMap<std::vector<Constant*>, StructType, ConstantStruct> StructConstants [static]
 

Definition at line 978 of file Constants.cpp.

ValueMap<uint64_t, Type, ConstantUInt> UIntConstants [static]
 

Definition at line 748 of file Constants.cpp.

ValueMap<char, Type, UndefValue> UndefValueConstants [static]
 

Definition at line 1135 of file Constants.cpp.