LLVM  4.0.0
Functions | Variables
OptBisect.cpp File Reference

This file implements support for a bisecting optimizations based on a command line option. More...

#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/Analysis/LazyCallGraph.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/OptBisect.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for OptBisect.cpp:

Go to the source code of this file.

Functions

static void printPassMessage (const StringRef &Name, int PassNum, StringRef TargetDesc, bool Running)
 
static void printCaseMessage (int CaseNum, StringRef Msg, bool Running)
 
static std::string getDescription (const Module &M)
 
static std::string getDescription (const Function &F)
 
static std::string getDescription (const BasicBlock &BB)
 
static std::string getDescription (const Loop &L)
 
static std::string getDescription (const CallGraphSCC &SCC)
 

Variables

static cl::opt< int > OptBisectLimit ("opt-bisect-limit", cl::Hidden, cl::init(INT_MAX), cl::Optional, cl::desc("Maximum optimization to perform"))
 

Detailed Description

This file implements support for a bisecting optimizations based on a command line option.

Definition in file OptBisect.cpp.

Function Documentation

static std::string getDescription ( const Module M)
static

Definition at line 50 of file OptBisect.cpp.

References llvm::Module::getName(), and llvm::StringRef::str().

Referenced by llvm::OptBisect::shouldRunPass().

static std::string getDescription ( const Function F)
static

Definition at line 54 of file OptBisect.cpp.

References llvm::Value::getName(), and llvm::StringRef::str().

static std::string getDescription ( const BasicBlock BB)
static
static std::string getDescription ( const Loop L)
static

Definition at line 63 of file OptBisect.cpp.

static std::string getDescription ( const CallGraphSCC SCC)
static

Definition at line 70 of file OptBisect.cpp.

References Desc, F, and llvm::Value::getName().

static void printCaseMessage ( int  CaseNum,
StringRef  Msg,
bool  Running 
)
static

Definition at line 42 of file OptBisect.cpp.

References llvm::errs().

Referenced by llvm::OptBisect::shouldRunCase().

static void printPassMessage ( const StringRef Name,
int  PassNum,
StringRef  TargetDesc,
bool  Running 
)
static

Definition at line 35 of file OptBisect.cpp.

References llvm::errs().

Variable Documentation

cl::opt<int> OptBisectLimit("opt-bisect-limit", cl::Hidden, cl::init(INT_MAX), cl::Optional, cl::desc("Maximum optimization to perform"))
static