brintos

brintos / llvm-project-archived public Read only

0
0
Text · 14.9 KiB · 4253b64 Raw
283 lines · plain
1; RUN: opt -disable-output -debug-pass-manager \2; RUN:     -passes=no-op-module,no-op-module %s 2>&1 \3; RUN:     | FileCheck %s --check-prefix=CHECK-TWO-NOOP-MP4; CHECK-TWO-NOOP-MP: Running pass: NoOpModulePass5; CHECK-TWO-NOOP-MP: Running pass: NoOpModulePass6 7; RUN: opt -disable-output -debug-pass-manager \8; RUN:     -passes='module(no-op-module,no-op-module)' %s 2>&1 \9; RUN:     | FileCheck %s --check-prefix=CHECK-NESTED-TWO-NOOP-MP10; CHECK-NESTED-TWO-NOOP-MP: Running pass: NoOpModulePass11; CHECK-NESTED-TWO-NOOP-MP: Running pass: NoOpModulePass12 13; RUN: opt -disable-output -debug-pass-manager \14; RUN:     -passes=no-op-function,no-op-function %s 2>&1 \15; RUN:     | FileCheck %s --check-prefix=CHECK-TWO-NOOP-FP16; CHECK-TWO-NOOP-FP: Running pass: NoOpFunctionPass17; CHECK-TWO-NOOP-FP: Running pass: NoOpFunctionPass18 19; RUN: opt -disable-output -debug-pass-manager \20; RUN:     -passes='function(no-op-function,no-op-function)' %s 2>&1 \21; RUN:     | FileCheck %s --check-prefix=CHECK-NESTED-TWO-NOOP-FP22; CHECK-NESTED-TWO-NOOP-FP: Running pass: NoOpFunctionPass23; CHECK-NESTED-TWO-NOOP-FP: Running pass: NoOpFunctionPass24 25; RUN: opt -disable-output -debug-pass-manager \26; RUN:     -passes='no-op-module,function(no-op-function,no-op-function),no-op-module' %s 2>&1 \27; RUN:     | FileCheck %s --check-prefix=CHECK-MIXED-FP-AND-MP28; CHECK-MIXED-FP-AND-MP: Running pass: NoOpModulePass29; CHECK-MIXED-FP-AND-MP: Running pass: NoOpFunctionPass30; CHECK-MIXED-FP-AND-MP: Running pass: NoOpFunctionPass31; CHECK-MIXED-FP-AND-MP: Running pass: NoOpModulePass32 33; RUN: opt -disable-output -debug-pass-manager \34; RUN:     -aa-pipeline= -passes='require<aa>' %s 2>&1 \35; RUN:     | FileCheck %s --check-prefix=CHECK-EMPTY-AA36; CHECK-EMPTY-AA: Running analysis: AAManager37; CHECK-EMPTY-AA-NOT: Running analysis: BasicAA38 39; RUN: opt -disable-output -debug-pass-manager \40; RUN:     -aa-pipeline=basic-aa -passes='require<aa>' %s 2>&1 \41; RUN:     | FileCheck %s --check-prefix=CHECK-BASIC-AA42; CHECK-BASIC-AA: Running analysis: AAManager43; CHECK-BASIC-AA: Running analysis: BasicAA44; CHECK-BASIC-AA-NOT: Running analysis: TypeBasedAA45 46; RUN: opt -disable-output -debug-pass-manager \47; RUN:     -aa-pipeline=basic-aa,tbaa -passes='require<aa>' %s 2>&1 \48; RUN:     | FileCheck %s --check-prefix=CHECK-TWO-AA49; CHECK-TWO-AA: Running analysis: AAManager50; CHECK-TWO-AA: Running analysis: BasicAA51; CHECK-TWO-AA: Running analysis: TypeBasedAA52 53; RUN: opt -disable-output -debug-pass-manager \54; RUN:     -aa-pipeline=default -passes='require<aa>' %s 2>&1 \55; RUN:     | FileCheck %s --check-prefix=CHECK-DEFAULT-AA56; CHECK-DEFAULT-AA: Running analysis: AAManager57; CHECK-DEFAULT-AA-DAG: Running analysis: BasicAA58; CHECK-DEFAULT-AA-DAG: Running analysis: TypeBasedAA59 60; RUN: not opt -passes='function<no-rerun>(no-op-function)' %s 2>&1 \61; RUN:     | FileCheck %s --check-prefix=CHECK-RERUN-BAD62; CHECK-RERUN-BAD: cannot have a no-rerun module to function adaptor63 64; RUN: not opt -disable-output -debug-pass-manager \65; RUN:     -passes='no-op-module)' %s 2>&1 \66; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED167; CHECK-UNBALANCED1: invalid pipeline 'no-op-module)'68 69; RUN: not opt -disable-output -debug-pass-manager \70; RUN:     -passes='module(no-op-module))' %s 2>&1 \71; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED272; CHECK-UNBALANCED2: invalid pipeline 'module(no-op-module))'73 74; RUN: not opt -disable-output -debug-pass-manager \75; RUN:     -passes='module(no-op-module' %s 2>&1 \76; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED377; CHECK-UNBALANCED3: invalid pipeline 'module(no-op-module'78 79; RUN: not opt -disable-output -debug-pass-manager \80; RUN:     -passes='no-op-function)' %s 2>&1 \81; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED482; CHECK-UNBALANCED4: invalid pipeline 'no-op-function)'83 84; RUN: not opt -disable-output -debug-pass-manager \85; RUN:     -passes='function(no-op-function))' %s 2>&1 \86; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED587; CHECK-UNBALANCED5: invalid pipeline 'function(no-op-function))'88 89; RUN: not opt -disable-output -debug-pass-manager \90; RUN:     -passes='function(function(no-op-function)))' %s 2>&1 \91; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED692; CHECK-UNBALANCED6: invalid pipeline 'function(function(no-op-function)))'93 94; RUN: not opt -disable-output -debug-pass-manager \95; RUN:     -passes='function(no-op-function' %s 2>&1 \96; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED797; CHECK-UNBALANCED7: invalid pipeline 'function(no-op-function'98 99; RUN: not opt -disable-output -debug-pass-manager \100; RUN:     -passes='function(function(no-op-function)' %s 2>&1 \101; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED8102; CHECK-UNBALANCED8: invalid pipeline 'function(function(no-op-function)'103 104; RUN: not opt -disable-output -debug-pass-manager \105; RUN:     -passes='no-op-module,)' %s 2>&1 \106; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED9107; CHECK-UNBALANCED9: invalid pipeline 'no-op-module,)'108 109; RUN: not opt -disable-output -debug-pass-manager \110; RUN:     -passes='no-op-function,)' %s 2>&1 \111; RUN:     | FileCheck %s --check-prefix=CHECK-UNBALANCED10112; CHECK-UNBALANCED10: invalid pipeline 'no-op-function,)'113 114; RUN: opt -disable-output -debug-pass-manager \115; RUN:     -passes=no-op-cgscc,no-op-cgscc %s 2>&1 \116; RUN:     | FileCheck %s --check-prefix=CHECK-TWO-NOOP-CG117; CHECK-TWO-NOOP-CG: Running pass: NoOpCGSCCPass118; CHECK-TWO-NOOP-CG: Running pass: NoOpCGSCCPass119 120; RUN: opt -disable-output -debug-pass-manager \121; RUN:     -passes='module(function(no-op-function),cgscc(no-op-cgscc,function(no-op-function),no-op-cgscc),function(no-op-function))' %s 2>&1 \122; RUN:     | FileCheck %s --check-prefix=CHECK-NESTED-MP-CG-FP123; CHECK-NESTED-MP-CG-FP: Running pass: NoOpFunctionPass124; CHECK-NESTED-MP-CG-FP: Running pass: NoOpCGSCCPass125; CHECK-NESTED-MP-CG-FP: Running pass: NoOpFunctionPass126; CHECK-NESTED-MP-CG-FP: Running pass: NoOpCGSCCPass127; CHECK-NESTED-MP-CG-FP: Running pass: NoOpFunctionPass128 129; RUN: opt -disable-output -debug-pass-manager \130; RUN:     -passes='no-op-loop,no-op-loop' %s 2>&1 \131; RUN:     | FileCheck %s --check-prefix=CHECK-TWO-NOOP-LOOP132; CHECK-TWO-NOOP-LOOP: Running pass: NoOpLoopPass133; CHECK-TWO-NOOP-LOOP: Running pass: NoOpLoopPass134 135; RUN: opt -disable-output -debug-pass-manager \136; RUN:     -passes='module(function(loop(no-op-loop)))' %s 2>&1 \137; RUN:     | FileCheck %s --check-prefix=CHECK-NESTED-FP-LP138; RUN: opt -disable-output -debug-pass-manager \139; RUN:     -passes='function(loop(no-op-loop))' %s 2>&1 \140; RUN:     | FileCheck %s --check-prefix=CHECK-NESTED-FP-LP141; RUN: opt -disable-output -debug-pass-manager \142; RUN:     -passes='loop(no-op-loop)' %s 2>&1 \143; RUN:     | FileCheck %s --check-prefix=CHECK-NESTED-FP-LP144; RUN: opt -disable-output -debug-pass-manager \145; RUN:     -passes='no-op-loop' %s 2>&1 \146; RUN:     | FileCheck %s --check-prefix=CHECK-NESTED-FP-LP147; CHECK-NESTED-FP-LP: Running pass: NoOpLoopPass148 149; RUN: opt -disable-output -debug-pass-manager=verbose \150; RUN:     -passes='module(no-op-function,no-op-loop,no-op-cgscc,cgscc(no-op-function,no-op-loop),function(no-op-loop))' %s 2>&1 \151; RUN:     | FileCheck %s --check-prefix=CHECK-ADAPTORS152; CHECK-ADAPTORS: Running pass: ModuleToFunctionPassAdaptor153; CHECK-ADAPTORS: Running pass: NoOpFunctionPass154; CHECK-ADAPTORS: Running pass: ModuleToFunctionPassAdaptor155; CHECK-ADAPTORS: Running pass: FunctionToLoopPassAdaptor156; CHECK-ADAPTORS: Running pass: NoOpLoopPass on loop157; CHECK-ADAPTORS: Running pass: ModuleToPostOrderCGSCCPassAdaptor158; CHECK-ADAPTORS: Running pass: NoOpCGSCCPass159; CHECK-ADAPTORS: Running pass: ModuleToPostOrderCGSCCPassAdaptor160; CHECK-ADAPTORS: Running pass: PassManager{{.*}}SCC161; CHECK-ADAPTORS: Running pass: CGSCCToFunctionPassAdaptor162; CHECK-ADAPTORS: Running pass: NoOpFunctionPass163; CHECK-ADAPTORS: Running pass: CGSCCToFunctionPassAdaptor164; CHECK-ADAPTORS: Running pass: FunctionToLoopPassAdaptor165; CHECK-ADAPTORS: Running pass: NoOpLoopPass on loop166; CHECK-ADAPTORS: Running pass: ModuleToFunctionPassAdaptor167; CHECK-ADAPTORS: Running pass: PassManager{{.*}}Function168; CHECK-ADAPTORS: Running pass: FunctionToLoopPassAdaptor169; CHECK-ADAPTORS: Running pass: NoOpLoopPass on loop170 171; RUN: opt -disable-output -debug-pass-manager \172; RUN:     -passes='module(function(no-op-function,loop(no-op-loop,no-op-loop)))' %s 2>&1 \173; RUN:     | FileCheck %s --check-prefix=CHECK-MANAGERS-NO-VERBOSE174; RUN: opt -disable-output -debug-pass-manager=verbose \175; RUN:     -passes='module(function(no-op-function,loop(no-op-loop,no-op-loop)))' %s 2>&1 \176; RUN:     | FileCheck %s --check-prefix=CHECK-MANAGERS177; CHECK-MANAGERS: Running pass: PassManager{{.*}}Function178; CHECK-MANAGERS: Running pass: PassManager{{.*}}Loop179; CHECK-MANAGERS-NO-VERBOSE-NOT: PassManager180 181; RUN: opt -disable-output -debug-pass-manager \182; RUN:     -passes='cgscc(print)' %s 2>&1 \183; RUN:     | FileCheck %s --check-prefix=CHECK-PRINT-IN-CGSCC184; CHECK-PRINT-IN-CGSCC: Running pass: PrintFunctionPass185; CHECK-PRINT-IN-CGSCC: Running pass: VerifierPass186 187; RUN: not opt -disable-output -debug-pass-manager \188; RUN:     -passes='function(no-op-function)function(no-op-function)' %s 2>&1 \189; RUN:     | FileCheck %s --check-prefix=CHECK-MISSING-COMMA1190; CHECK-MISSING-COMMA1: invalid pipeline 'function(no-op-function)function(no-op-function)'191 192; RUN: not opt -disable-output -debug-pass-manager \193; RUN:     -passes='function()' %s 2>&1 \194; RUN:     | FileCheck %s --check-prefix=CHECK-EMPTY-INNER-PIPELINE195; CHECK-EMPTY-INNER-PIPELINE: unknown function pass ''196 197; RUN: not opt -disable-output -debug-pass-manager \198; RUN:     -passes='no-op-module(no-op-module,whatever)' %s 2>&1 \199; RUN:     | FileCheck %s --check-prefix=CHECK-PIPELINE-ON-MODULE-PASS200; CHECK-PIPELINE-ON-MODULE-PASS: invalid use of 'no-op-module' pass as module pipeline201 202; RUN: not opt -disable-output -debug-pass-manager \203; RUN:     -passes='no-op-cgscc(no-op-cgscc,whatever)' %s 2>&1 \204; RUN:     | FileCheck %s --check-prefix=CHECK-PIPELINE-ON-CGSCC-PASS205; CHECK-PIPELINE-ON-CGSCC-PASS: invalid use of 'no-op-cgscc' pass as cgscc pipeline206 207; RUN: not opt -disable-output -debug-pass-manager \208; RUN:     -passes='no-op-function(no-op-function,whatever)' %s 2>&1 \209; RUN:     | FileCheck %s --check-prefix=CHECK-PIPELINE-ON-FUNCTION-PASS210; CHECK-PIPELINE-ON-FUNCTION-PASS: invalid use of 'no-op-function' pass as function pipeline211 212; RUN: not opt -disable-output -debug-pass-manager \213; RUN:     -passes='no-op-loop(no-op-loop,whatever)' %s 2>&1 \214; RUN:     | FileCheck %s --check-prefix=CHECK-PIPELINE-ON-LOOP-PASS215; CHECK-PIPELINE-ON-LOOP-PASS: invalid use of 'no-op-loop' pass as loop pipeline216 217; RUN: not opt -disable-output -debug-pass-manager \218; RUN:     -passes='no-op-function()' %s 2>&1 \219; RUN:     | FileCheck %s --check-prefix=CHECK-EMPTY-PIPELINE-ON-PASS220; CHECK-EMPTY-PIPELINE-ON-PASS: invalid use of 'no-op-function' pass as function pipeline221 222; RUN: not opt -passes='no-op-module,bad' \223; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-MODULE224; CHECK-UNKNOWN-MODULE: unknown module pass 'bad'225 226; RUN: not opt -passes='no-op-loop,bad' \227; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-LOOP228; CHECK-UNKNOWN-LOOP: unknown loop pass 'bad'229 230; RUN: not opt -passes='no-op-cgscc,bad' \231; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-CGSCC232; CHECK-UNKNOWN-CGSCC: unknown cgscc pass 'bad'233 234; RUN: not opt -passes='no-op-function,bad' \235; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-FUNCTION236; RUN: not opt -passes='function(bad,pipeline,text)' \237; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-FUNCTION238; RUN: not opt -passes='module(no-op-module,function(bad,pipeline,text))' \239; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-FUNCTION240; RUN: not opt -passes='no-op-module,function(bad,pipeline,text)' \241; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-FUNCTION242; RUN: not opt -passes='module(cgscc(function(bad,pipeline,text)))' \243; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-FUNCTION244; CHECK-UNKNOWN-FUNCTION: unknown function pass 'bad'245 246; RUN: not opt -aa-pipeline=bad -passes=no-op-function \247; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=AA-PIPELINE-ERR248; AA-PIPELINE-ERR: unknown alias analysis name 'bad'249; RUN: opt -passes-ep-peephole=bad -passes=no-op-function \250; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-PEEPHOLE-ERR251; PASSES-EP-PEEPHOLE-ERR: Could not parse -passes-ep-peephole pipeline: unknown function pass 'bad'252; RUN: opt -passes-ep-late-loop-optimizations=bad -passes=no-op-function \253; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-LATELOOPOPT-ERR254; PASSES-EP-LATELOOPOPT-ERR: Could not parse -passes-ep-late-loop-optimizations pipeline: unknown loop pass 'bad'255; RUN: opt -passes-ep-loop-optimizer-end=bad -passes=no-op-function \256; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-LOOPOPTEND-ERR257; PASSES-EP-LOOPOPTEND-ERR: Could not parse -passes-ep-loop-optimizer-end pipeline: unknown loop pass 'bad'258; RUN: opt -passes-ep-scalar-optimizer-late=bad -passes=no-op-function \259; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-SCALAROPTLATE-ERR260; PASSES-EP-SCALAROPTLATE-ERR: Could not parse -passes-ep-scalar-optimizer-late pipeline: unknown function pass 'bad'261; RUN: opt -passes-ep-cgscc-optimizer-late=bad -passes=no-op-function \262; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-CGSCCOPTLATE-ERR263; PASSES-EP-CGSCCOPTLATE-ERR: Could not parse -passes-ep-cgscc-optimizer-late pipeline: unknown cgscc pass 'bad'264; RUN: opt -passes-ep-vectorizer-start=bad -passes=no-op-function \265; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-VECTORIZERSTART-ERR266; PASSES-EP-VECTORIZERSTART-ERR: Could not parse -passes-ep-vectorizer-start pipeline: unknown function pass 'bad'267; RUN: opt -passes-ep-vectorizer-end=bad -passes=no-op-function \268; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-VECTORIZEREND-ERR269; PASSES-EP-VECTORIZEREND-ERR: Could not parse -passes-ep-vectorizer-end pipeline: unknown function pass 'bad'270; RUN: opt -passes-ep-pipeline-start=bad -passes=no-op-function \271; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-PIPELINESTART-ERR272; PASSES-EP-PIPELINESTART-ERR: Could not parse -passes-ep-pipeline-start pipeline: unknown pass name 'bad'273; RUN: opt -passes-ep-pipeline-early-simplification=bad -passes=no-op-function \274; RUN:       /dev/null -disable-output 2>&1 | FileCheck %s -check-prefix=PASSES-EP-PIPELINEEARLYSIMPLIFICATION-ERR275; PASSES-EP-PIPELINEEARLYSIMPLIFICATION-ERR: Could not parse -passes-ep-pipeline-early-simplification pipeline: unknown pass name 'bad'276 277define void @f() {278entry:279 br label %loop280loop:281 br label %loop282}283