Home | History | Annotate | Download | only in VMCore

Lines Matching defs: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
28 Pass::Pass(PassKind K, char &pid) : Resolver(0), PassID(&pid), Kind(K) { }
31 Pass::~Pass() {
38 Pass *ModulePass::createPrinterPass(raw_ostream &O,
47 bool Pass::mustPreserveAnalysisID(char &AID) const {
52 void Pass::dumpPassStructure(unsigned Offset) {
56 /// getPassName - Return a nice clean name for a pass. This usually
60 const char *Pass::getPassName() const {
65 return "Unnamed pass: implement Pass::getPassName()";
68 void Pass::preparePassManager(PMStack &) {
72 PassManagerType Pass::getPotentialPassManagerType() const {
77 void Pass::getAnalysisUsage(AnalysisUsage &) const {
81 void Pass::releaseMemory() {
85 void Pass::verifyAnalysis() const {
89 void *Pass::getAdjustedAnalysisPointer(AnalysisID AID) {
93 ImmutablePass *Pass::getAsImmutablePass() {
97 PMDataManager *Pass::getAsPMDataManager() {
101 void Pass::setResolver(AnalysisResolver *AR) {
106 // print - Print out the internal state of the pass. This is called by Analyze
110 void Pass::print(raw_ostream &O,const Module*) const {
111 O << "Pass::print not implemented for pass: '" << getPassName() << "'!\n";
115 void Pass::dump() const {
133 Pass *FunctionPass::createPrinterPass(raw_ostream &O,
156 Pass *BasicBlockPass::createPrinterPass(raw_ostream &O,
187 const PassInfo *Pass::lookupPassInfo(const void *TI) {
191 const PassInfo *Pass::lookupPassInfo(StringRef Arg) {
195 Pass *PassInfo::createPass() const {
257 // setPreservesCFG - This function should be called to by the pass, iff they do
264 // that only depend on the CFG are preserved by this pass.
273 const PassInfo *PI = Pass::lookupPassInfo(Arg);
274 // If the pass exists, preserve it. Otherwise silently do nothing.