llvm-project/llvm/lib/Target/SPIRV/SPIRVStructurizerWrapper.h
Rahul Joshi a8a33bab69
[NFC][SPIRV] Misc code cleanup in SPIRV Target (#133764)
- Use static instead of anonymous namespace for file local functions.
- Enclose file-local classes in anonymous namespace.
- Eliminate `llvm::` qualifier when file has `using namespace llvm`.
- Eliminate namespace surrounding entire code in
SPIRVConvergenceRegionAnalysis.cpp file.
- Eliminate call to `initializeSPIRVStructurizerPass` from the pass
constructor (https://github.com/llvm/llvm-project/issues/111767)
2025-04-01 08:35:06 -07:00

30 lines
941 B
C++

//===- SPIRVStructurizerWrapper.h - New pass manager wrapper from SPIRV
// Structurizer -----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// \file New pass manager wrapper from SPIRV Structurizer.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVSTRUCTURIZER_H
#define LLVM_LIB_TARGET_SPIRV_SPIRVSTRUCTURIZER_H
#include "llvm/IR/PassManager.h"
namespace llvm {
class SPIRVStructurizerWrapper
: public PassInfoMixin<SPIRVStructurizerWrapper> {
public:
PreservedAnalyses run(Function &M, FunctionAnalysisManager &AM);
};
} // namespace llvm
#endif // LLVM_LIB_TARGET_SPIRV_SPIRVSTRUCTURIZER_H