#include "polly/Support/DumpFunctionPass.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassInstrumentation.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"
#include "llvm/Transforms/IPO/GlobalDCE.h"
#include "llvm/Transforms/IPO/StripDeadPrototypes.h"
#include "llvm/Transforms/Utils/Cloning.h"
#define DEBUG_TYPE …
usingnamespacellvm;
usingnamespacepolly;
namespace {
static void runDumpFunction(llvm::Function &F, StringRef Suffix) { … }
class DumpFunctionWrapperPass final : public FunctionPass { … };
char DumpFunctionWrapperPass::ID;
}
FunctionPass *polly::createDumpFunctionWrapperPass(std::string Suffix) { … }
llvm::PreservedAnalyses DumpFunctionPass::run(Function &F,
FunctionAnalysisManager &AM) { … }
INITIALIZE_PASS_BEGIN(DumpFunctionWrapperPass, "polly-dump-function",
"Polly - Dump Function", false, false)
INITIALIZE_PASS_END(DumpFunctionWrapperPass, "polly-dump-function",
"Polly - Dump Function", false, false)