Home | History | Annotate | Download | only in IR

Lines Matching refs:Pass

1 //===- Pass.cpp - LLVM Pass Infrastructure Implementation -----------------===//
10 // This file implements the LLVM Pass infrastructure. It is primarily
16 #include "llvm/Pass.h"
25 // Pass Implementation
29 Pass::~Pass() {
36 Pass *ModulePass::createPrinterPass(raw_ostream &O,
45 bool Pass::mustPreserveAnalysisID(char &AID) const {
49 // dumpPassStructure - Implement the -debug-pass=Structure option
50 void Pass::dumpPassStructure(unsigned Offset) {
54 /// getPassName - Return a nice clean name for a pass. This usually
58 const char *Pass::getPassName() const {
63 return "Unnamed pass: implement Pass::getPassName()";
66 void Pass::preparePassManager(PMStack &) {
70 PassManagerType Pass::getPotentialPassManagerType() const {
75 void Pass::getAnalysisUsage(AnalysisUsage &) const {
79 void Pass::releaseMemory() {
83 void Pass::verifyAnalysis() const {
87 void *Pass::getAdjustedAnalysisPointer(AnalysisID AID) {
91 ImmutablePass *Pass::getAsImmutablePass() {
95 PMDataManager *Pass::getAsPMDataManager() {
99 void Pass::setResolver(AnalysisResolver *AR) {
104 // print - Print out the internal state of the pass. This is called by Analyze
108 void Pass::print(raw_ostream &O,const Module*) const {
109 O << "Pass::print not implemented for pass: '" << getPassName() << "'!\n";
113 void Pass::dump() const {
131 Pass *FunctionPass::createPrinterPass(raw_ostream &O,
144 Pass *BasicBlockPass::createPrinterPass(raw_ostream &O,
163 const PassInfo *Pass::lookupPassInfo(const void *TI) {
167 const PassInfo *Pass::lookupPassInfo(StringRef Arg) {
171 Pass *Pass::createPass(AnalysisID ID) {
178 Pass *PassInfo::createPass() const {
240 // setPreservesCFG - This function should be called to by the pass, iff they do
247 // that only depend on the CFG are preserved by this pass.
256 const PassInfo *PI = Pass::lookupPassInfo(Arg);
257 // If the pass exists, preserve it. Otherwise silently do nothing.