LLVM API Documentation
#include "llvm/Transforms/IPO.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/ValueHandle.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include <vector>
Go to the source code of this file.
Defines | |
#define | DEBUG_TYPE "mergefunc" |
Functions | |
STATISTIC (NumFunctionsMerged,"Number of functions merged") | |
STATISTIC (NumThunksWritten,"Number of thunks generated") | |
STATISTIC (NumAliasesWritten,"Number of aliases generated") | |
STATISTIC (NumDoubleWeak,"Number of new functions created") | |
static Value * | createCast (IRBuilder< false > &Builder, Value *V, Type *DestTy) |
Variables | |
static cl::opt< unsigned > | NumFunctionsForSanityCheck ("mergefunc-sanity", cl::desc("How many functions in module could be used for ""MergeFunctions pass sanity check. ""'0' disables this check. Works only with '-debug' key."), cl::init(0), cl::Hidden) |
#define DEBUG_TYPE "mergefunc" |
Definition at line 108 of file MergeFunctions.cpp.
Definition at line 1295 of file MergeFunctions.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateBitCast(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateExtractValue(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateInsertValue(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateIntToPtr(), llvm::IRBuilder< preserveNames, T, Inserter >::CreatePtrToInt(), llvm::UndefValue::get(), llvm::Type::getStructElementType(), llvm::Type::getStructNumElements(), llvm::Value::getType(), I, llvm::Type::isIntegerTy(), llvm::Type::isPointerTy(), llvm::Type::isStructTy(), and llvm::makeArrayRef().