Polly 22.0.0git
polly::DumpModulePass Struct Referencefinal

A pass that prints the module into a file. More...

#include <DumpModulePass.h>

Inheritance diagram for polly::DumpModulePass:
[legend]

Public Member Functions

 DumpModulePass (std::string Filename, bool IsSuffix)
llvm::PreservedAnalyses run (llvm::Module &M, llvm::ModuleAnalysisManager &AM)

Public Attributes

std::string Filename
bool IsSuffix

Detailed Description

A pass that prints the module into a file.

The meaning of Filename depends on IsSuffix. If IsSuffix==false, then the module is written to the Filename. If it is true, the filename is generated from the module's name, Filename with an '.ll' extension.

The intent of IsSuffix is to avoid the file being overwritten when processing multiple modules and/or with multiple dump passes in the pipeline.

Definition at line 29 of file DumpModulePass.h.

Constructor & Destructor Documentation

◆ DumpModulePass()

polly::DumpModulePass::DumpModulePass ( std::string Filename,
bool IsSuffix )
inline

Definition at line 33 of file DumpModulePass.h.

References Filename, and IsSuffix.

Member Function Documentation

◆ run()

llvm::PreservedAnalyses DumpModulePass::run ( llvm::Module & M,
llvm::ModuleAnalysisManager & AM )

Definition at line 51 of file DumpModulePass.cpp.

References Filename, and IsSuffix.

Member Data Documentation

◆ Filename

std::string polly::DumpModulePass::Filename

Definition at line 30 of file DumpModulePass.h.

Referenced by DumpModulePass(), and run().

◆ IsSuffix

bool polly::DumpModulePass::IsSuffix

Definition at line 31 of file DumpModulePass.h.

Referenced by DumpModulePass(), and run().


The documentation for this struct was generated from the following files: