LLVM API Documentation

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

SCCP.cpp File Reference

#include "llvm/Transforms/Scalar.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/GlobalVariable.h"
#include "llvm/Instructions.h"
#include "llvm/Pass.h"
#include "llvm/Type.h"
#include "llvm/Support/InstVisitor.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/hash_map"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h"
#include <algorithm>
#include <set>

Include dependency graph for SCCP.cpp:

Go to the source code of this file.

Classes

class  SCCPSolver

Defines

#define DEBUG_TYPE   "sccp"

Functions

static ConstantGetGEPGlobalInitializer (Constant *C, ConstantExpr *CE)
FunctionPassllvm::createSCCPPass ()


Define Documentation

#define DEBUG_TYPE   "sccp"
 

Definition at line 24 of file SCCP.cpp.


Function Documentation

static Constant* GetGEPGlobalInitializer Constant C,
ConstantExpr CE
[static]
 

GetGEPGlobalInitializer - Given a constant and a getelementptr constantexpr, return the constant value being addressed by the constant expression, or null if something is funny.

Definition at line 645 of file SCCP.cpp.

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


Variable Documentation

Statistic NumDeadBlocks("sccp","Number of basic blocks unreachable") [static]
 

Statistic NumInstRemoved("sccp","Number of instructions removed") [static]
 

RegisterOpt<SCCP> X("sccp","Sparse Conditional Constant Propagation") [static]