xref: /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/NVPTXPassRegistry.def (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1*0fca6ea1SDimitry Andric//===- NVPTXPassRegistry.def - Registry of NVPTX passes ---------*- C++ -*-===//
2*0fca6ea1SDimitry Andric//
3*0fca6ea1SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0fca6ea1SDimitry Andric// See https://llvm.org/LICENSE.txt for license information.
5*0fca6ea1SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0fca6ea1SDimitry Andric//
7*0fca6ea1SDimitry Andric//===----------------------------------------------------------------------===//
8*0fca6ea1SDimitry Andric//
9*0fca6ea1SDimitry Andric// This file is used as the registry of passes that are part of the
10*0fca6ea1SDimitry Andric// NVPTX backend.
11*0fca6ea1SDimitry Andric//
12*0fca6ea1SDimitry Andric//===----------------------------------------------------------------------===//
13*0fca6ea1SDimitry Andric
14*0fca6ea1SDimitry Andric// NOTE: NO INCLUDE GUARD DESIRED!
15*0fca6ea1SDimitry Andric
16*0fca6ea1SDimitry Andric#ifndef MODULE_PASS
17*0fca6ea1SDimitry Andric#define MODULE_PASS(NAME, CREATE_PASS)
18*0fca6ea1SDimitry Andric#endif
19*0fca6ea1SDimitry AndricMODULE_PASS("generic-to-nvvm", GenericToNVVMPass())
20*0fca6ea1SDimitry AndricMODULE_PASS("nvptx-lower-ctor-dtor", NVPTXCtorDtorLoweringPass())
21*0fca6ea1SDimitry Andric#undef MODULE_PASS
22*0fca6ea1SDimitry Andric
23*0fca6ea1SDimitry Andric#ifndef FUNCTION_ANALYSIS
24*0fca6ea1SDimitry Andric#define FUNCTION_ANALYSIS(NAME, CREATE_PASS)
25*0fca6ea1SDimitry Andric#endif
26*0fca6ea1SDimitry Andric
27*0fca6ea1SDimitry Andric#ifndef FUNCTION_ALIAS_ANALYSIS
28*0fca6ea1SDimitry Andric#define FUNCTION_ALIAS_ANALYSIS(NAME, CREATE_PASS)                             \
29*0fca6ea1SDimitry Andric  FUNCTION_ANALYSIS(NAME, CREATE_PASS)
30*0fca6ea1SDimitry Andric#endif
31*0fca6ea1SDimitry AndricFUNCTION_ALIAS_ANALYSIS("nvptx-aa", NVPTXAA())
32*0fca6ea1SDimitry Andric#undef FUNCTION_ALIAS_ANALYSIS
33*0fca6ea1SDimitry Andric#undef FUNCTION_ANALYSIS
34*0fca6ea1SDimitry Andric
35*0fca6ea1SDimitry Andric#ifndef FUNCTION_PASS
36*0fca6ea1SDimitry Andric#define FUNCTION_PASS(NAME, CREATE_PASS)
37*0fca6ea1SDimitry Andric#endif
38*0fca6ea1SDimitry AndricFUNCTION_PASS("nvvm-intr-range", NVVMIntrRangePass())
39*0fca6ea1SDimitry AndricFUNCTION_PASS("nvvm-reflect", NVVMReflectPass())
40*0fca6ea1SDimitry Andric#undef FUNCTION_PASS
41