LLVM API Documentation

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

DeadArgumentElimination.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Constant.h"
#include "llvm/Instructions.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/iterator"
#include <set>

Include dependency graph for DeadArgumentElimination.cpp:

Go to the source code of this file.

Functions

ModulePassllvm::createDeadArgEliminationPass ()
ModulePassllvm::createDeadArgHackingPass ()
static bool CallPassesValueThoughVararg (Instruction *Call, const Value *Arg)


Function Documentation

static bool CallPassesValueThoughVararg Instruction Call,
const Value Arg
[inline, static]
 

Definition at line 112 of file DeadArgumentElimination.cpp.

References llvm::CallSite::arg_begin(), llvm::CallSite::arg_end(), llvm::CallSite::getCalledValue(), and llvm::Value::getType().


Variable Documentation

Statistic NumArgumentsEliminated("deadargelim","Number of unread args removed") [static]
 

Statistic NumRetValsEliminated("deadargelim","Number of unused return values removed") [static]
 

RegisterOpt<DAE> X("deadargelim","Dead Argument Elimination") [static]
 

RegisterPass<DAH> Y("deadarghaX0r","Dead Argument Hacking (BUGPOINT USE ONLY; DO NOT USE)") [static]