File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1227,7 +1227,8 @@ FunctionPass *llvm::createSPIRVStructurizerPass() {
12271227 return new SPIRVStructurizer ();
12281228}
12291229
1230- PreservedAnalyses SPIRVStructurizerWrapper::run (Function &F, FunctionAnalysisManager &AF){
1230+ PreservedAnalyses SPIRVStructurizerWrapper::run (Function &F,
1231+ FunctionAnalysisManager &AF) {
12311232 FunctionPass *StructurizerPass = createSPIRVStructurizerPass ();
12321233 if (!StructurizerPass->runOnFunction (F))
12331234 return PreservedAnalyses::all ();
Original file line number Diff line number Diff line change 1- // ===- SPIRVStructurizerWrapper.h - New pass manager wrapper from SPIRV Structurizer -----------*- C++ -*-===//
1+ // ===- SPIRVStructurizerWrapper.h - New pass manager wrapper from SPIRV
2+ // Structurizer -----------*- C++ -*-===//
23//
34// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45// See https://llvm.org/LICENSE.txt for license information.
1718
1819namespace llvm {
1920
20- class SPIRVStructurizerWrapper : public PassInfoMixin <SPIRVStructurizerWrapper> {
21+ class SPIRVStructurizerWrapper
22+ : public PassInfoMixin<SPIRVStructurizerWrapper> {
2123public:
2224 PreservedAnalyses run (Function &M, FunctionAnalysisManager &AM);
2325};
Original file line number Diff line number Diff line change 1212
1313#include " SPIRVTargetMachine.h"
1414#include " SPIRV.h"
15- #include " SPIRVStructurizerWrapper.h"
1615#include " SPIRVCallLowering.h"
1716#include " SPIRVGlobalRegistry.h"
1817#include " SPIRVLegalizerInfo.h"
18+ #include " SPIRVStructurizerWrapper.h"
1919#include " SPIRVTargetObjectFile.h"
2020#include " SPIRVTargetTransformInfo.h"
2121#include " TargetInfo/SPIRVTargetInfo.h"
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class SPIRVTargetMachine : public CodeGenTargetMachineImpl {
4343 TargetLoweringObjectFile *getObjFileLowering () const override {
4444 return TLOF.get ();
4545 }
46-
46+
4747 void registerPassBuilderCallbacks (PassBuilder &PB) override ;
4848};
4949} // namespace llvm
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ static bool shouldPinPassToLegacyPM(StringRef Pass) {
376376 " expand-large-fp-convert" ,
377377 " callbrprepare" ,
378378 " scalarizer" ,
379- };
379+ };
380380 for (const auto &P : PassNamePrefix)
381381 if (Pass.starts_with (P))
382382 return true ;
You can’t perform that action at this time.
0 commit comments