LLVM API Documentation

PartialSpecialization.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/Constant.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/Compiler.h"
#include "llvm/ADT/DenseSet.h"
#include <map>

Include dependency graph for PartialSpecialization.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "partialspecialization"

Functions

 STATISTIC (numSpecialized,"Number of specialized functions created")
static FunctionSpecializeFunction (Function *F, DenseMap< const Value *, Value * > &replacements)
ModulePassllvm::createPartialSpecializationPass ()

Variables

static const int CallsMin = 5
static const double ConstValPercent = .1
static RegisterPass< PartSpec > X ("partialspecialization","Partial Specialization")


Define Documentation

#define DEBUG_TYPE   "partialspecialization"

Definition at line 21 of file PartialSpecialization.cpp.


Function Documentation

static Function* SpecializeFunction ( Function F,
DenseMap< const Value *, Value * > &  replacements 
) [static]

STATISTIC ( numSpecialized  ,
"Number of specialized functions created"   
)


Variable Documentation

const int CallsMin = 5 [static]

Definition at line 38 of file PartialSpecialization.cpp.

const double ConstValPercent = .1 [static]

Definition at line 41 of file PartialSpecialization.cpp.

char ID [static]

Definition at line 48 of file PartialSpecialization.cpp.

RegisterPass<PartSpec> X("partialspecialization","Partial Specialization") [static]




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.