LLVM API Documentation

Constants.h File Reference

#include "llvm/Constant.h"
#include "llvm/Type.h"
#include "llvm/OperandTraits.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/SmallVector.h"

Include dependency graph for Constants.h:

Go to the source code of this file.

Namespaces

namespace  llvm

Classes

class  llvm::ConstantInt
 Class for constant integers. More...
class  llvm::ConstantFP
class  llvm::ConstantAggregateZero
class  llvm::ConstantArray
struct  llvm::OperandTraits< ConstantArray >
class  llvm::ConstantStruct
struct  llvm::OperandTraits< ConstantStruct >
class  llvm::ConstantVector
struct  llvm::OperandTraits< ConstantVector >
class  llvm::ConstantPointerNull
class  llvm::ConstantExpr
struct  llvm::OperandTraits< ConstantExpr >
class  llvm::UndefValue


Detailed Description

This file contains the declarations for the subclasses of Constant, which represent the different flavors of constant values that live in LLVM. Note that Constants are immutable (once created they never change) and are fully shared by structural equivalence. This means that two structurally equivalent constants will always have the same address. Constant's are created on demand as needed and never deleted: thus clients don't have to worry about the lifetime of the objects.

Definition in file Constants.h.