Skip to content

Commit c32c7e2

Browse files
committed
remove entries from MachinePR.def
1 parent 069082c commit c32c7e2

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

llvm/include/llvm/Passes/MachinePassRegistry.def

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -42,40 +42,6 @@ FUNCTION_ANALYSIS("ssp-layout", SSPLayoutAnalysis())
4242
FUNCTION_ANALYSIS("target-ir", TargetIRAnalysis(std::move(TM.getTargetIRAnalysis())))
4343
#undef FUNCTION_ANALYSIS
4444

45-
#ifndef FUNCTION_PASS
46-
#define FUNCTION_PASS(NAME, CREATE_PASS)
47-
#endif
48-
FUNCTION_PASS("callbr-prepare", CallBrPreparePass())
49-
FUNCTION_PASS("cfguard", CFGuardPass())
50-
FUNCTION_PASS("codegenprepare", CodeGenPreparePass(TM))
51-
FUNCTION_PASS("consthoist", ConstantHoistingPass())
52-
FUNCTION_PASS("dwarf-eh-prepare", DwarfEHPreparePass(TM))
53-
FUNCTION_PASS("ee-instrument", EntryExitInstrumenterPass(false))
54-
FUNCTION_PASS("expand-large-div-rem", ExpandLargeDivRemPass(TM))
55-
FUNCTION_PASS("expand-fp", ExpandFpPass(TM))
56-
FUNCTION_PASS("expand-memcmp", ExpandMemCmpPass(TM))
57-
FUNCTION_PASS("expand-reductions", ExpandReductionsPass())
58-
FUNCTION_PASS("gc-lowering", GCLoweringPass())
59-
FUNCTION_PASS("indirectbr-expand", IndirectBrExpandPass(TM))
60-
FUNCTION_PASS("interleaved-access", InterleavedAccessPass(TM))
61-
FUNCTION_PASS("interleaved-load-combine", InterleavedLoadCombinePass(TM))
62-
FUNCTION_PASS("lower-constant-intrinsics", LowerConstantIntrinsicsPass())
63-
FUNCTION_PASS("lower-invoke", LowerInvokePass())
64-
FUNCTION_PASS("mergeicmps", MergeICmpsPass())
65-
FUNCTION_PASS("partially-inline-libcalls", PartiallyInlineLibCallsPass())
66-
FUNCTION_PASS("post-inline-ee-instrument", EntryExitInstrumenterPass(true))
67-
FUNCTION_PASS("replace-with-veclib", ReplaceWithVeclib())
68-
FUNCTION_PASS("safe-stack", SafeStackPass(TM))
69-
FUNCTION_PASS("scalarize-masked-mem-intrin", ScalarizeMaskedMemIntrinPass())
70-
FUNCTION_PASS("select-optimize", SelectOptimizePass(TM))
71-
FUNCTION_PASS("sjlj-eh-prepare", SjLjEHPreparePass(TM))
72-
FUNCTION_PASS("stack-protector", StackProtectorPass(TM))
73-
FUNCTION_PASS("unreachableblockelim", UnreachableBlockElimPass())
74-
FUNCTION_PASS("verify", VerifierPass())
75-
FUNCTION_PASS("wasm-eh-prepare", WasmEHPreparePass())
76-
FUNCTION_PASS("win-eh-prepare", WinEHPreparePass())
77-
#undef FUNCTION_PASS
78-
7945
#ifndef LOOP_PASS
8046
#define LOOP_PASS(NAME, CREATE_PASS)
8147
#endif
@@ -280,7 +246,6 @@ MACHINE_FUNCTION_PASS_WITH_PARAMS(
280246
#ifndef DUMMY_FUNCTION_PASS
281247
#define DUMMY_FUNCTION_PASS(NAME, PASS_NAME)
282248
#endif
283-
DUMMY_FUNCTION_PASS("tlshoist", TLSVariableHoistPass)
284249
#undef DUMMY_FUNCTION_PASS
285250

286251
#ifndef DUMMY_MACHINE_MODULE_PASS

llvm/lib/Passes/PassBuilder.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,6 @@ PassBuilder::PassBuilder(TargetMachine *TM, PipelineTuningOptions PTO,
513513
PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
514514
#include "PassRegistry.def"
515515

516-
#define FUNCTION_PASS(NAME, CREATE_PASS) \
517-
PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
518516
#define MACHINE_FUNCTION_ANALYSIS(NAME, CREATE_PASS) \
519517
PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
520518
#define MACHINE_FUNCTION_PASS(NAME, CREATE_PASS) \

llvm/lib/Passes/PassRegistry.def

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ FUNCTION_PASS("dwarf-eh-prepare", DwarfEHPreparePass(TM))
428428
FUNCTION_PASS("expand-large-div-rem", ExpandLargeDivRemPass(TM))
429429
FUNCTION_PASS("expand-fp", ExpandFpPass(TM))
430430
FUNCTION_PASS("expand-memcmp", ExpandMemCmpPass(TM))
431+
FUNCTION_PASS("expand-reductions", ExpandReductionsPass())
431432
FUNCTION_PASS("extra-vector-passes",
432433
ExtraFunctionPassManager<ShouldRunExtraVectorPasses>())
433434
FUNCTION_PASS("fix-irreducible", FixIrreduciblePass())
@@ -520,6 +521,7 @@ FUNCTION_PASS("print<stack-safety-local>", StackSafetyPrinterPass(errs()))
520521
FUNCTION_PASS("print<uniformity>", UniformityInfoPrinterPass(errs()))
521522
FUNCTION_PASS("reassociate", ReassociatePass())
522523
FUNCTION_PASS("redundant-dbg-inst-elim", RedundantDbgInstEliminationPass())
524+
FUNCTION_PASS("replace-with-veclib", ReplaceWithVeclib())
523525
FUNCTION_PASS("reg2mem", RegToMemPass())
524526
FUNCTION_PASS("safe-stack", SafeStackPass(TM))
525527
FUNCTION_PASS("sandbox-vectorizer", SandboxVectorizerPass())
@@ -541,6 +543,7 @@ FUNCTION_PASS("trigger-verifier-error", TriggerVerifierErrorPass())
541543
FUNCTION_PASS("tsan", ThreadSanitizerPass())
542544
FUNCTION_PASS("typepromotion", TypePromotionPass(TM))
543545
FUNCTION_PASS("unify-loop-exits", UnifyLoopExitsPass())
546+
FUNCTION_PASS("unreachableblockelim", UnreachableBlockElimPass())
544547
FUNCTION_PASS("vector-combine", VectorCombinePass())
545548
FUNCTION_PASS("verify", VerifierPass())
546549
FUNCTION_PASS("verify<cycles>", CycleInfoVerifierPass())

0 commit comments

Comments
 (0)