| 1 | //===- PassRegistry.def - Registry of passes --------------------*- C++ -*-===// |
| 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 sub-passes that are part of the |
| 10 | // SandboxVectorizer pass. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | // NOTE: NO INCLUDE GUARD DESIRED! |
| 15 | |
| 16 | #ifndef REGION_PASS |
| 17 | #define REGION_PASS(NAME, CLASS_NAME) |
| 18 | #endif |
| 19 | |
| 20 | REGION_PASS("null" , ::llvm::sandboxir::NullPass) |
| 21 | REGION_PASS("pack-reuse" , ::llvm::sandboxir::PackReuse) |
| 22 | REGION_PASS("print-instruction-count" , ::llvm::sandboxir::PrintInstructionCount) |
| 23 | REGION_PASS("print-region" , ::llvm::sandboxir::PrintRegion) |
| 24 | REGION_PASS("tr-save" , ::llvm::sandboxir::TransactionSave) |
| 25 | REGION_PASS("tr-accept" , ::llvm::sandboxir::TransactionAlwaysAccept) |
| 26 | REGION_PASS("tr-revert" , ::llvm::sandboxir::TransactionAlwaysRevert) |
| 27 | REGION_PASS("tr-accept-or-revert" , ::llvm::sandboxir::TransactionAcceptOrRevert) |
| 28 | REGION_PASS("bottom-up-vec" , ::llvm::sandboxir::BottomUpVec) |
| 29 | |
| 30 | #undef REGION_PASS |
| 31 | |
| 32 | #ifndef FUNCTION_PASS_WITH_PARAMS |
| 33 | #define FUNCTION_PASS_WITH_PARAMS(NAME, CLASS_NAME) |
| 34 | #endif |
| 35 | |
| 36 | FUNCTION_PASS_WITH_PARAMS("seed-collection" , ::llvm::sandboxir::SeedCollection) |
| 37 | FUNCTION_PASS_WITH_PARAMS("regions-from-bbs" , ::llvm::sandboxir::RegionsFromBBs) |
| 38 | FUNCTION_PASS_WITH_PARAMS("regions-from-metadata" , ::llvm::sandboxir::RegionsFromMetadata) |
| 39 | |
| 40 | #undef FUNCTION_PASS_WITH_PARAMS |
| 41 | |