| 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 |
| 19 | MODULE_PASS("systemz-align-globals" , SystemZAlignGlobalsPass()) |
| 20 | MODULE_PASS("systemz-asm-printer-begin" , SystemZAsmPrinterBeginPass()) |
| 21 | MODULE_PASS("systemz-asm-printer-end" , SystemZAsmPrinterEndPass()) |
| 22 | #undef MODULE_PASS |
| 23 | |
| 24 | #ifndef FUNCTION_PASS |
| 25 | #define FUNCTION_PASS(NAME, CREATE_PASS) |
| 26 | #endif |
| 27 | FUNCTION_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 |
| 33 | MACHINE_FUNCTION_PASS("systemz-asm-printer" , SystemZAsmPrinterPass()) |
| 34 | MACHINE_FUNCTION_PASS("systemz-copy-physregs" , SystemZCopyPhysRegsPass()) |
| 35 | MACHINE_FUNCTION_PASS("systemz-elim-compare" , SystemZElimComparePass()) |
| 36 | MACHINE_FUNCTION_PASS("systemz-isel" , SystemZISelDAGToDAGPass(*this, getOptLevel())) |
| 37 | MACHINE_FUNCTION_PASS("systemz-ld-cleanup" , SystemZLDCleanupPass()) |
| 38 | MACHINE_FUNCTION_PASS("systemz-long-branch" , SystemZLongBranchPass()) |
| 39 | MACHINE_FUNCTION_PASS("systemz-post-rewrite" , SystemZPostRewritePass()) |
| 40 | MACHINE_FUNCTION_PASS("systemz-shorten-inst" , SystemZShortenInstPass()) |
| 41 | #undef MACHINE_FUNCTION_PASS |
| 42 | |