1 //===- NVPTXPassRegistry.def
- Registry of NVPTX passes
---------*- C
++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file is used as the registry of passes that are part of the
12 //===----------------------------------------------------------------------===//
14 // NOTE
: NO INCLUDE GUARD DESIRED
!
17 #define
MODULE_PASS(NAME
, CREATE_PASS
)
19 MODULE_PASS("generic-to-nvvm", GenericToNVVMPass())
20 MODULE_PASS("nvptx-lower-ctor-dtor", NVPTXCtorDtorLoweringPass())
23 #ifndef FUNCTION_ANALYSIS
24 #define
FUNCTION_ANALYSIS(NAME
, CREATE_PASS
)
27 #ifndef FUNCTION_ALIAS_ANALYSIS
28 #define
FUNCTION_ALIAS_ANALYSIS(NAME
, CREATE_PASS
) \
29 FUNCTION_ANALYSIS(NAME
, CREATE_PASS
)
31 FUNCTION_ALIAS_ANALYSIS("nvptx-aa", NVPTXAA())
32 #undef FUNCTION_ALIAS_ANALYSIS
33 #undef FUNCTION_ANALYSIS
36 #define
FUNCTION_PASS(NAME
, CREATE_PASS
)
38 FUNCTION_PASS("nvvm-intr-range", NVVMIntrRangePass())
39 FUNCTION_PASS("nvvm-reflect", NVVMReflectPass())