Skip to content

Commit aecb692

Browse files
committed
sort registerPipelineParsingCallback
1 parent 28c03b7 commit aecb692

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

polly/lib/Support/RegisterPasses.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -772,12 +772,6 @@ void registerPollyPasses(PassBuilder &PB) {
772772
ExitOnError Err("Unable to parse Polly module pass: ");
773773
return Err(parseFunctionPipeline(Name, FPM, PIC, Pipeline));
774774
});
775-
PB.registerPipelineParsingCallback(
776-
[PIC](StringRef Name, ModulePassManager &MPM,
777-
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
778-
ExitOnError Err("Unable to parse Polly module pass: ");
779-
return Err(parseModulePipeline(Name, MPM, PIC, Pipeline));
780-
});
781775
PB.registerPipelineParsingCallback(
782776
[PIC](StringRef Name, FunctionPassManager &FPM,
783777
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
@@ -789,6 +783,12 @@ void registerPollyPasses(PassBuilder &PB) {
789783
ExitOnError Err("Unable to parse Polly call graph pass: ");
790784
return Err(parseCGPipeline(Name, CGPM, PIC, Pipeline));
791785
});
786+
PB.registerPipelineParsingCallback(
787+
[PIC](StringRef Name, ModulePassManager &MPM,
788+
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
789+
ExitOnError Err("Unable to parse Polly module pass: ");
790+
return Err(parseModulePipeline(Name, MPM, PIC, Pipeline));
791+
});
792792
PB.registerParseTopLevelPipelineCallback(
793793
[PIC](llvm::ModulePassManager &MPM,
794794
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {

0 commit comments

Comments
 (0)