LLVM  8.0.1
Functions | Variables
OptBisect.cpp File Reference

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

#include "llvm/IR/OptBisect.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/RegionInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <limits>
#include <string>
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 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 Region &R)
 
static std::string getDescription (const CallGraphSCC &SCC)
 

Variables

static cl::opt< int > OptBisectLimit ("opt-bisect-limit", cl::Hidden, cl::init(std::numeric_limits< 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

◆ getDescription() [1/6]

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

◆ getDescription() [2/6]

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

Definition at line 54 of file OptBisect.cpp.

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

◆ getDescription() [3/6]

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

◆ getDescription() [4/6]

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

Definition at line 63 of file OptBisect.cpp.

◆ getDescription() [5/6]

static std::string getDescription ( const Region R)
static

Definition at line 69 of file OptBisect.cpp.

◆ getDescription() [6/6]

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

Definition at line 75 of file OptBisect.cpp.

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

◆ printPassMessage()

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

Definition at line 43 of file OptBisect.cpp.

References llvm::errs().

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

Variable Documentation

◆ OptBisectLimit

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