Lines Matching full:pass
1 //===- Pass.cpp - LLVM Pass Infrastructure Implementation -----------------===//
10 // This file implements the LLVM Pass infrastructure. It is primarily
16 #include "llvm/Pass.h"
28 // Pass Implementation
32 Pass::~Pass() {
39 Pass *ModulePass::createPrinterPass(raw_ostream &O,
48 bool Pass::mustPreserveAnalysisID(char &AID) const {
52 // dumpPassStructure - Implement the -debug-pass=Structure option
53 void Pass::dumpPassStructure(unsigned Offset) {
57 /// getPassName - Return a nice clean name for a pass. This usually
61 const char *Pass::getPassName() const {
66 return "Unnamed pass: implement Pass::getPassName()";
69 void Pass::preparePassManager(PMStack &) {
73 PassManagerType Pass::getPotentialPassManagerType() const {
78 void Pass::getAnalysisUsage(AnalysisUsage &) const {
82 void Pass::releaseMemory() {
86 void Pass::verifyAnalysis() const {
90 void *Pass::getAdjustedAnalysisPointer(AnalysisID AID) {
94 ImmutablePass *Pass::getAsImmutablePass() {
98 PMDataManager *Pass::getAsPMDataManager() {
102 void Pass::setResolver(AnalysisResolver *AR) {
107 // print - Print out the internal state of the pass. This is called by Analyze
111 void Pass::print(raw_ostream &O,const Module*) const {
112 O << "Pass::print not implemented for pass: '" << getPassName() << "'!\n";
116 void Pass::dump() const {
134 Pass *FunctionPass::createPrinterPass(raw_ostream &O,
145 DEBUG(dbgs() << "Skipping pass '" << getPassName()
156 Pass *BasicBlockPass::createPrinterPass(raw_ostream &O,
176 DEBUG(dbgs() << "Skipping pass '" << getPassName()
187 const PassInfo *Pass::lookupPassInfo(const void *TI) {
191 const PassInfo *Pass::lookupPassInfo(StringRef Arg) {
195 Pass *Pass::createPass(AnalysisID ID) {
254 // setPreservesCFG - This function should be called to by the pass, iff they do
261 // that only depend on the CFG are preserved by this pass.
270 const PassInfo *PI = Pass::lookupPassInfo(Arg);
271 // If the pass exists, preserve it. Otherwise silently do nothing.