#include "polly/Support/DumpModulePass.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ToolOutputFile.h"
#define DEBUG_TYPE …
usingnamespacellvm;
usingnamespacepolly;
namespace {
static void runDumpModule(llvm::Module &M, StringRef Filename, bool IsSuffix) { … }
class DumpModuleWrapperPass final : public ModulePass { … };
char DumpModuleWrapperPass::ID;
}
ModulePass *polly::createDumpModuleWrapperPass(std::string Filename,
bool IsSuffix) { … }
llvm::PreservedAnalyses DumpModulePass::run(llvm::Module &M,
llvm::ModuleAnalysisManager &AM) { … }
INITIALIZE_PASS_BEGIN(DumpModuleWrapperPass, "polly-dump-module",
"Polly - Dump Module", false, false)
INITIALIZE_PASS_END(DumpModuleWrapperPass, "polly-dump-module",
"Polly - Dump Module", false, false)