LLVM API Documentation

LowerSwitch.cpp File Reference

#include "llvm/Transforms/Scalar.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/Statistic.h"
#include <algorithm>
#include <iostream>

Include dependency graph for LowerSwitch.cpp:

Go to the source code of this file.

Typedefs

typedef std::pair< Constant *,
BasicBlock * > 
Case
typedef std::vector< Case
>::iterator 
CaseItr

Functions

FunctionPassllvm::createLowerSwitchPass ()
std::ostream & operator<< (std::ostream &O, const std::vector< LowerSwitch::Case > &C)

Variables

Statistic NumLowered ("lowerswitch","Number of SwitchInst's replaced")
RegisterOpt< LowerSwitch > X ("lowerswitch","Lower SwitchInst's to branches")


Typedef Documentation

typedef std::pair<Constant*, BasicBlock*> Case

Definition at line 36 of file LowerSwitch.cpp.

typedef std::vector<Case>::iterator CaseItr

Definition at line 37 of file LowerSwitch.cpp.


Function Documentation

std::ostream& operator<< ( std::ostream &  O,
const std::vector< LowerSwitch::Case > &  C 
)

Definition at line 85 of file LowerSwitch.cpp.

References B, and E.


Variable Documentation

Statistic NumLowered("lowerswitch","Number of SwitchInst's replaced") [static]

RegisterOpt<LowerSwitch> X("lowerswitch","Lower SwitchInst's to branches") [static]