1//===- PassRegistry.def - Registry of 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 sub-passes that are part of the 10// SandboxVectorizer pass. 11// 12//===----------------------------------------------------------------------===// 13 14// NOTE: NO INCLUDE GUARD DESIRED! 15 16#ifndef REGION_PASS 17#define REGION_PASS(NAME, CLASS_NAME) 18#endif 19 20REGION_PASS("null", ::llvm::sandboxir::NullPass) 21REGION_PASS("print-instruction-count", ::llvm::sandboxir::PrintInstructionCount) 22 23#undef REGION_PASS 24 25#ifndef FUNCTION_PASS_WITH_PARAMS 26#define FUNCTION_PASS_WITH_PARAMS(NAME, CLASS_NAME) 27#endif 28 29FUNCTION_PASS_WITH_PARAMS("bottom-up-vec", ::llvm::sandboxir::BottomUpVec) 30FUNCTION_PASS_WITH_PARAMS("regions-from-metadata", ::llvm::sandboxir::RegionsFromMetadata) 31 32#undef FUNCTION_PASS_WITH_PARAMS 33