Skip to content

Commit e4dea2d

Browse files
[X86][NewPM] Add Skeleton for X86 Pass Registry (#150573)
This patch adds most of the x86 legacy passes to the pass registry for the NewPM. This is intended to outline the work that needs to be done to get them all ported over. At least two of the dummy function passes (lower-amx-intrinsics, lower-amx-type) sort of already have NewPM versions, but leaving them as dummy function passes for now because they need some touch up before they actually work.
1 parent 0f3c94a commit e4dea2d

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

llvm/lib/Target/X86/X86PassRegistry.def

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,52 @@
1212

1313
// NOTE: NO INCLUDE GUARD DESIRED!
1414

15+
#ifndef DUMMY_FUNCTION_PASS
16+
#define DUMMY_FUNCTION_PASS(NAME, CREATE_PASS)
17+
#endif
18+
DUMMY_FUNCTION_PASS("lower-amx-intrinsics", X86LowerAMXIntrinsics(*this))
19+
DUMMY_FUNCTION_PASS("lower-amx-type", X86LowerAMXTypePass(*this))
20+
DUMMY_FUNCTION_PASS("x86-partial-reduction", X86PartialReduction())
21+
DUMMY_FUNCTION_PASS("x86-winehstate", WinEHStatePass())
22+
#undef DUMMY_FUNCTION_PASS
23+
1524
#ifndef MACHINE_FUNCTION_PASS
1625
#define MACHINE_FUNCTION_PASS(NAME, CREATE_PASS)
1726
#endif
1827
MACHINE_FUNCTION_PASS("x86-isel", X86ISelDAGToDAGPass(*this))
1928
#undef MACHINE_FUNCTION_PASS
29+
30+
#ifndef DUMMY_MACHINE_FUNCTION_PASS
31+
#define DUMMY_MACHINE_FUNCTION_PASS(NAME, PASS_NAME)
32+
#endif
33+
DUMMY_MACHINE_FUNCTION_PASS("x86-avoid-SFB", X86AvoidSFBPass())
34+
DUMMY_MACHINE_FUNCTION_PASS("x86-avoid-trailing-call", X86AvoidTrailingCallPass())
35+
DUMMY_MACHINE_FUNCTION_PASS("x86-cf-opt", X86CallFrameOptimization())
36+
DUMMY_MACHINE_FUNCTION_PASS("x86-cmov-conversion", X86CmovConverterPass())
37+
DUMMY_MACHINE_FUNCTION_PASS("x86-codege", FPS())
38+
DUMMY_MACHINE_FUNCTION_PASS("x86-compress-evex", CompressEVEXPass())
39+
DUMMY_MACHINE_FUNCTION_PASS("x86-domain-reassignment", X86DomainReassignment())
40+
DUMMY_MACHINE_FUNCTION_PASS("x86-dyn-alloca-expander", X86DynAllocaExpander())
41+
DUMMY_MACHINE_FUNCTION_PASS("x86-execution-domain-fix", X86ExecutionDomainFix())
42+
DUMMY_MACHINE_FUNCTION_PASS("fastpretileconfig", X86FastPreTileConfig())
43+
DUMMY_MACHINE_FUNCTION_PASS("fasttileconfig", X86FastTileConfig())
44+
DUMMY_MACHINE_FUNCTION_PASS("x86-fixup-LEAs", FixupLEAPass())
45+
DUMMY_MACHINE_FUNCTION_PASS("x86-fixup-bw-inst", FixupBWInstPass())
46+
DUMMY_MACHINE_FUNCTION_PASS("x86-fixup-inst-tuning", X86FixupInstTuningPass())
47+
DUMMY_MACHINE_FUNCTION_PASS("x86-fixup-setcc", X86FixupSetCCPass())
48+
DUMMY_MACHINE_FUNCTION_PASS("x86-fixup-vector-constants", X86FixupVectorConstantsPass())
49+
DUMMY_MACHINE_FUNCTION_PASS("x86-flags-copy-lowering", X86FlagsCopyLoweringPass())
50+
DUMMY_MACHINE_FUNCTION_PASS("x86-lower-tile-copy", X86LowerTileCopy())
51+
DUMMY_MACHINE_FUNCTION_PASS("x86-lvi-load", X86LoadValueInjectionLoadHardeningPass())
52+
DUMMY_MACHINE_FUNCTION_PASS("x86-lvi-ret", X86LoadValueInjectionRetHardeningPass())
53+
DUMMY_MACHINE_FUNCTION_PASS("x86-optimize-LEAs", X86OptimizeLEAPass())
54+
DUMMY_MACHINE_FUNCTION_PASS("x86-pseudo", X86ExpandPseudo())
55+
DUMMY_MACHINE_FUNCTION_PASS("x86-return-thunks", X86ReturnThunks())
56+
DUMMY_MACHINE_FUNCTION_PASS("x86-seses", X86SpeculativeExecutionSideEffectSuppression())
57+
DUMMY_MACHINE_FUNCTION_PASS("x86-slh", X86SpeculativeLoadHardeningPass())
58+
DUMMY_MACHINE_FUNCTION_PASS("x86-suppress-apx-for-relocation", X86SuppressAPXForRelocationPass())
59+
DUMMY_MACHINE_FUNCTION_PASS("tile-pre-config", X86PreTileConfig())
60+
DUMMY_MACHINE_FUNCTION_PASS("tileconfig", X86TileConfig())
61+
DUMMY_MACHINE_FUNCTION_PASS("x86-wineh-unwindv2", X86WinEHUnwindV2())
62+
DUMMY_MACHINE_FUNCTION_PASS("x86argumentstackrebase", X86ArgumentStackSlotPass())
63+
#undef DUMMY_MACHINE_FUNCTION_PASS

0 commit comments

Comments
 (0)