diff --git a/src/mapleall/maple_be/include/cg/cg_option.h b/src/mapleall/maple_be/include/cg/cg_option.h index 3b26a2e7225302d3ee6f3d2b9ff5e7b063350895..644845b99fb8fb072d6c2cdc9851572bbdf2e61c 100644 --- a/src/mapleall/maple_be/include/cg/cg_option.h +++ b/src/mapleall/maple_be/include/cg/cg_option.h @@ -569,30 +569,6 @@ class CGOptions : public MapleDriverOptionBase { return fastAlloc; } - static void EnableDumpBefore() { - dumpBefore = true; - } - - static void DisableDumpBefore() { - dumpBefore = false; - } - - static bool IsDumpBefore() { - return dumpBefore; - } - - static bool IsDumpAfter() { - return dumpAfter; - } - - static void EnableDumpAfter() { - dumpAfter = true; - } - - static void DisableDumpAfter() { - dumpAfter = false; - } - static bool IsEnableTimePhases() { return timePhases; } @@ -1163,8 +1139,6 @@ class CGOptions : public MapleDriverOptionBase { static std::string dumpFunc; static std::string duplicateAsmFile; static bool useBarriersForVolatile; - static bool dumpBefore; - static bool dumpAfter; static bool timePhases; static bool doEBO; static bool doCGSSA; diff --git a/src/mapleall/maple_be/include/cg/cg_phasemanager.h b/src/mapleall/maple_be/include/cg/cg_phasemanager.h index 3b67edcc3feae0f7e886937993c91d9ee02dc109..b8107659a1aaea9e5ebf8d4a0772008434ba0d2d 100644 --- a/src/mapleall/maple_be/include/cg/cg_phasemanager.h +++ b/src/mapleall/maple_be/include/cg/cg_phasemanager.h @@ -64,7 +64,7 @@ class CgFuncPM : public FunctionPM { void DoFuncCGLower(const MIRModule &m, MIRFunction &mirFunc); void DoPhasesPopulate(const MIRModule &m); /* Tool functions */ - void DumpFuncCGIR(CGFunc &f, const std::string phaseName, bool isBefore); + void DumpFuncCGIR(const CGFunc &f, const std::string& phaseName) const; /* For Emit */ void InitProfile(MIRModule &m) const; void EmitGlobalInfo(MIRModule &m) const; diff --git a/src/mapleall/maple_be/src/cg/cg_option.cpp b/src/mapleall/maple_be/src/cg/cg_option.cpp index f49050c1ff0385fb3af62d3ea2dacc4fa79f61a6..69cab0d773662857e272f1e902d64024632cca97 100644 --- a/src/mapleall/maple_be/src/cg/cg_option.cpp +++ b/src/mapleall/maple_be/src/cg/cg_option.cpp @@ -28,8 +28,6 @@ using namespace mapleOption; const std::string kMplcgVersion = ""; -bool CGOptions::dumpBefore = false; -bool CGOptions::dumpAfter = false; bool CGOptions::timePhases = false; std::unordered_set CGOptions::dumpPhases = {}; std::unordered_set CGOptions::skipPhases = {}; @@ -149,8 +147,6 @@ enum OptionIndex : uint64 { kEhList, kObjMap, kCGDumpcfg, - kCGDumpBefore, - kCGDumpAfter, kCGTimePhases, kCGDumpFunc, kDebuggingInfo, @@ -838,26 +834,6 @@ const Descriptor kUsage[] = { " \t(can only specify once)\n", "mplcg", {} }, - { kCGDumpBefore, - kEnable, - "", - "dump-before", - kBuildTypeExperimental, - kArgCheckPolicyBool, - " --dump-before \tDo extra IR dump before the specified phase\n" - " --no-dump-before \tDon't extra IR dump before the specified phase\n", - "mplcg", - {} }, - { kCGDumpAfter, - kEnable, - "", - "dump-after", - kBuildTypeExperimental, - kArgCheckPolicyBool, - " --dump-after \tDo extra IR dump after the specified phase\n" - " --no-dump-after \tDon't extra IR dump after the specified phase\n", - "mplcg", - {} }, { kCGTimePhases, kEnable, "", @@ -1220,12 +1196,6 @@ bool CGOptions::SolveOptions(const std::vector