llvm-project/clang/test/Driver/debug-pass-structure.c

45 lines
2.3 KiB
C

// Test that we print pass structure with new and legacy PM.
// RUN: %clang -fexperimental-new-pass-manager -fdebug-pass-structure -fintegrated-as -O3 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=NEWPM
// RUN: %clang -flegacy-pass-manager -fdebug-pass-structure -O0 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LEGACYPM
// REQUIRES: asserts
// NEWPM: Annotation2MetadataPass on [module]
// NEWPM-NEXT: ForceFunctionAttrsPass on [module]
// NEWPM-NEXT: InferFunctionAttrsPass on [module]
// NEWPM-NEXT: InnerAnalysisManagerProxy<{{.*}}> analysis on [module]
// NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module]
// NEWPM-NEXT: OpenMPOptPass on [module]
// NEWPM-NEXT: IPSCCPPass on [module]
// NEWPM-NEXT: CalledValuePropagationPass on [module]
// NEWPM-NEXT: GlobalOptPass on [module]
// NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module]
// NEWPM-NEXT: DeadArgumentEliminationPass on [module]
// NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module]
// NEWPM-NEXT: ModuleInlinerWrapperPass on [module]
// NEWPM-NEXT: InlineAdvisorAnalysis analysis on [module]
// NEWPM-NEXT: RequireAnalysisPass<{{.*}}> on [module]
// NEWPM-NEXT: GlobalsAA analysis on [module]
// NEWPM-NEXT: CallGraphAnalysis analysis on [module]
// NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module]
// NEWPM-NEXT: RequireAnalysisPass<{{.*}}> on [module]
// NEWPM-NEXT: ProfileSummaryAnalysis analysis on [module]
// NEWPM-NEXT: ModuleToPostOrderCGSCCPassAdaptor on [module]
// NEWPM-NEXT: InnerAnalysisManagerProxy<{{.*}}> analysis on [module]
// NEWPM-NEXT: LazyCallGraphAnalysis analysis on [module]
// NEWPM-NEXT: GlobalOptPass on [module]
// NEWPM-NEXT: GlobalDCEPass on [module]
// NEWPM-NEXT: EliminateAvailableExternallyPass on [module]
// NEWPM-NEXT: ReversePostOrderFunctionAttrsPass on [module]
// NEWPM-NEXT: RequireAnalysisPass<{{.*}}> on [module]
// NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module]
// CGProfilePass is disabled with non-integrated assemblers
// NEWPM-NEXT: CGProfilePass on [module]
// NEWPM-NEXT: GlobalDCEPass on [module]
// NEWPM-NEXT: ConstantMergePass on [module]
// NEWPM-NEXT: RelLookupTableConverterPass on [module]
// NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module]
// NEWPM-NEXT: PrintModulePass on [module]
// LEGACYPM: Pass Arguments: