Skip to content

Commit c51e819

Browse files
committed
remove entries from MachinePR.def
1 parent b9b0624 commit c51e819

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
@@ -515,8 +515,6 @@ PassBuilder::PassBuilder(TargetMachine *TM, PipelineTuningOptions PTO,
515515
PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
516516
#include "PassRegistry.def"
517517

518-
#define FUNCTION_PASS(NAME, CREATE_PASS) \
519-
PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
520518
#define MACHINE_FUNCTION_ANALYSIS(NAME, CREATE_PASS) \
521519
PIC->addClassToPassName(decltype(CREATE_PASS)::name(), NAME);
522520
#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
@@ -376,6 +376,7 @@ FUNCTION_PASS("dwarf-eh-prepare", DwarfEHPreparePass(TM))
376376
FUNCTION_PASS("expand-large-div-rem", ExpandLargeDivRemPass(TM))
377377
FUNCTION_PASS("expand-fp", ExpandFpPass(TM))
378378
FUNCTION_PASS("expand-memcmp", ExpandMemCmpPass(TM))
379+
FUNCTION_PASS("expand-reductions", ExpandReductionsPass())
379380
FUNCTION_PASS("extra-vector-passes",
380381
ExtraFunctionPassManager<ShouldRunExtraVectorPasses>())
381382
FUNCTION_PASS("fix-irreducible", FixIrreduciblePass())
@@ -468,6 +469,7 @@ FUNCTION_PASS("print<stack-safety-local>", StackSafetyPrinterPass(errs()))
468469
FUNCTION_PASS("print<uniformity>", UniformityInfoPrinterPass(errs()))
469470
FUNCTION_PASS("reassociate", ReassociatePass())
470471
FUNCTION_PASS("redundant-dbg-inst-elim", RedundantDbgInstEliminationPass())
472+
FUNCTION_PASS("replace-with-veclib", ReplaceWithVeclib())
471473
FUNCTION_PASS("reg2mem", RegToMemPass())
472474
FUNCTION_PASS("safe-stack", SafeStackPass(TM))
473475
FUNCTION_PASS("sandbox-vectorizer", SandboxVectorizerPass())
@@ -489,6 +491,7 @@ FUNCTION_PASS("trigger-verifier-error", TriggerVerifierErrorPass())
489491
FUNCTION_PASS("tsan", ThreadSanitizerPass())
490492
FUNCTION_PASS("typepromotion", TypePromotionPass(TM))
491493
FUNCTION_PASS("unify-loop-exits", UnifyLoopExitsPass())
494+
FUNCTION_PASS("unreachableblockelim", UnreachableBlockElimPass())
492495
FUNCTION_PASS("vector-combine", VectorCombinePass())
493496
FUNCTION_PASS("verify", VerifierPass())
494497
FUNCTION_PASS("verify<cycles>", CycleInfoVerifierPass())

0 commit comments

Comments
 (0)