1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file is used as the registry of passes that are part of the SystemZ
10// backend.
11//
12//===----------------------------------------------------------------------===//
13
14// NOTE: NO INCLUDE GUARD DESIRED!
15
16#ifndef MODULE_PASS
17#define MODULE_PASS(NAME, CREATE_PASS)
18#endif
19MODULE_PASS("systemz-align-globals", SystemZAlignGlobalsPass())
20MODULE_PASS("systemz-asm-printer-begin", SystemZAsmPrinterBeginPass())
21MODULE_PASS("systemz-asm-printer-end", SystemZAsmPrinterEndPass())
22#undef MODULE_PASS
23
24#ifndef FUNCTION_PASS
25#define FUNCTION_PASS(NAME, CREATE_PASS)
26#endif
27FUNCTION_PASS("systemz-tdc", SystemZTDCPass(*this))
28#undef FUNCTION_PASS
29
30#ifndef MACHINE_FUNCTION_PASS
31#define MACHINE_FUNCTION_PASS(NAME, CREATE_PASS)
32#endif
33MACHINE_FUNCTION_PASS("systemz-asm-printer", SystemZAsmPrinterPass())
34MACHINE_FUNCTION_PASS("systemz-copy-physregs", SystemZCopyPhysRegsPass())
35MACHINE_FUNCTION_PASS("systemz-elim-compare", SystemZElimComparePass())
36MACHINE_FUNCTION_PASS("systemz-isel", SystemZISelDAGToDAGPass(*this, getOptLevel()))
37MACHINE_FUNCTION_PASS("systemz-ld-cleanup", SystemZLDCleanupPass())
38MACHINE_FUNCTION_PASS("systemz-long-branch", SystemZLongBranchPass())
39MACHINE_FUNCTION_PASS("systemz-post-rewrite", SystemZPostRewritePass())
40MACHINE_FUNCTION_PASS("systemz-shorten-inst", SystemZShortenInstPass())
41#undef MACHINE_FUNCTION_PASS
42