1//===- SPIRVPassRegistry.def - Registry of SPIRV 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// SPIRV backend.
11//
12//===----------------------------------------------------------------------===//
13
14// NOTE: NO INCLUDE GUARD DESIRED!
15
16#ifndef MODULE_PASS
17#define MODULE_PASS(NAME, CREATE_PASS)
18#endif
19MODULE_PASS("spirv-cbuffer-access", SPIRVCBufferAccess())
20MODULE_PASS("spirv-legalize-zero-size-arrays", SPIRVLegalizeZeroSizeArrays(*static_cast<const SPIRVTargetMachine *>(this)))
21MODULE_PASS("spirv-pushconstant-access", SPIRVPushConstantAccess(*static_cast<const SPIRVTargetMachine *>(this)))
22#undef MODULE_PASS
23
24#ifndef FUNCTION_PASS
25#define FUNCTION_PASS(NAME, CREATE_PASS)
26#endif
27FUNCTION_PASS("spirv-structurizer", SPIRVStructurizerWrapper())
28#undef FUNCTION_PASS
29