1 | //===- NVPTXPassRegistry.def - Registry of NVPTX 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 passes that are part of the |
10 | // NVPTX 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("generic-to-nvvm" , GenericToNVVMPass()) |
20 | MODULE_PASS("nvptx-lower-ctor-dtor" , NVPTXCtorDtorLoweringPass()) |
21 | MODULE_PASS("nvvm-reflect" , NVVMReflectPass()) |
22 | #undef MODULE_PASS |
23 | |
24 | #ifndef FUNCTION_ANALYSIS |
25 | #define FUNCTION_ANALYSIS(NAME, CREATE_PASS) |
26 | #endif |
27 | |
28 | #ifndef FUNCTION_ALIAS_ANALYSIS |
29 | #define FUNCTION_ALIAS_ANALYSIS(NAME, CREATE_PASS) \ |
30 | FUNCTION_ANALYSIS(NAME, CREATE_PASS) |
31 | #endif |
32 | FUNCTION_ALIAS_ANALYSIS("nvptx-aa" , NVPTXAA()) |
33 | #undef FUNCTION_ALIAS_ANALYSIS |
34 | #undef FUNCTION_ANALYSIS |
35 | |
36 | #ifndef FUNCTION_PASS |
37 | #define FUNCTION_PASS(NAME, CREATE_PASS) |
38 | #endif |
39 | FUNCTION_PASS("nvvm-intr-range" , NVVMIntrRangePass()) |
40 | FUNCTION_PASS("nvptx-copy-byval-args" , NVPTXCopyByValArgsPass()) |
41 | FUNCTION_PASS("nvptx-lower-args" , NVPTXLowerArgsPass(*this)) |
42 | FUNCTION_PASS("nvptx-tag-invariant-loads" , NVPTXTagInvariantLoadsPass()) |
43 | #undef FUNCTION_PASS |
44 | |