xref: /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXPassRegistry.def (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1*0fca6ea1SDimitry Andric//===- DirectXPassRegistry.def - Registry of DirectX 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// DirectX 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_ANALYSIS
17*0fca6ea1SDimitry Andric#define MODULE_ANALYSIS(NAME, CREATE_PASS)
18*0fca6ea1SDimitry Andric#endif
19*0fca6ea1SDimitry AndricMODULE_ANALYSIS("dx-shader-flags", dxil::ShaderFlagsAnalysis())
20*0fca6ea1SDimitry AndricMODULE_ANALYSIS("dxil-resource", DXILResourceAnalysis())
21*0fca6ea1SDimitry Andric#undef MODULE_ANALYSIS
22*0fca6ea1SDimitry Andric
23*0fca6ea1SDimitry Andric#ifndef MODULE_PASS
24*0fca6ea1SDimitry Andric#define MODULE_PASS(NAME, CREATE_PASS)
25*0fca6ea1SDimitry Andric#endif
26*0fca6ea1SDimitry Andric// TODO: rename to print<foo> after NPM switch
27*0fca6ea1SDimitry AndricMODULE_PASS("print-dx-shader-flags", dxil::ShaderFlagsAnalysisPrinter(dbgs()))
28*0fca6ea1SDimitry AndricMODULE_PASS("print-dxil-resource", DXILResourcePrinterPass(dbgs()))
29*0fca6ea1SDimitry Andric#undef MODULE_PASS
30