[NFC] Port all Verifier tests to `-passes=` syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 21:52:21 +0000 (00:52 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 22:04:46 +0000 (01:04 +0300)
llvm/test/Verifier/dbg-invalid-vector.ll
llvm/test/Verifier/di-subroutine-localvar.ll
llvm/test/Verifier/fp-intrinsics.ll
llvm/test/Verifier/non-integral-pointers.ll
llvm/test/Verifier/preallocated-valid.ll
llvm/test/Verifier/recursive-struct-param.ll
llvm/test/Verifier/statepoint.ll
llvm/test/Verifier/swifttailcc-musttail-valid.ll
llvm/test/Verifier/tbaa.ll
llvm/test/Verifier/vp-intrinsics.ll
llvm/test/Verifier/weak-dllimport.ll

index 0f5156a..6b5e1ca 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -verify -disable-output <%s 2>&1 | FileCheck %s
+; RUN: opt -passes=verify -disable-output <%s 2>&1 | FileCheck %s
 ;
 ; This test creates an invalid vector by defining multiple elements for the
 ; vector's DICompositeType definition.  A vector should only have one element
index 76d6412..d4edc4a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax %s -verify 2>&1 | FileCheck %s
+; RUN: opt %s -passes=verify 2>&1 | FileCheck %s
 ; CHECK: invalid type
 ; CHECK: !20 = !DILocalVariable(name: "f", scope: !21, file: !13, line: 970, type: !14)
 ; CHECK: !14 = !DISubroutineType(types: !15)
index b3257e4..cabb1ae 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -verify -S < %s 2>&1 | FileCheck --check-prefix=CHECK1 %s
-; RUN: sed -e s/.T2:// %s | not opt -temporarily-allow-old-pass-syntax -verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK2 %s
-; RUN: sed -e s/.T3:// %s | not opt -temporarily-allow-old-pass-syntax -verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK3 %s
-; RUN: sed -e s/.T4:// %s | not opt -temporarily-allow-old-pass-syntax -verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK4 %s
-; RUN: sed -e s/.T5:// %s | not opt -temporarily-allow-old-pass-syntax -verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK5 %s
+; RUN: opt -passes=verify -S < %s 2>&1 | FileCheck --check-prefix=CHECK1 %s
+; RUN: sed -e s/.T2:// %s | not opt -passes=verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK2 %s
+; RUN: sed -e s/.T3:// %s | not opt -passes=verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK3 %s
+; RUN: sed -e s/.T4:// %s | not opt -passes=verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK4 %s
+; RUN: sed -e s/.T5:// %s | not opt -passes=verify -disable-output 2>&1 | FileCheck --check-prefix=CHECK5 %s
 
 ; Common declarations used for all runs.
 declare double @llvm.experimental.constrained.fadd.f64(double, double, metadata, metadata)
index 29b57b4..30090fe 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -temporarily-allow-old-pass-syntax -verify -S < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=verify -S < %s 2>&1 | FileCheck %s
 
 target datalayout = "e-ni:4:6"
 
index 09bd746..4a1bbb3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -S %s -verify
+; RUN: opt -S %s -passes=verify
 
 declare token @llvm.call.preallocated.setup(i32)
 declare i8* @llvm.call.preallocated.arg(token, i32)
index 57b49ab..6c8fe95 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -verify < %s
+; RUN: opt -passes=verify < %s
 
 %struct.__sFILE = type { %struct.__sFILE }
 
index 1b91aee..feb3679 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -S %s -verify | FileCheck %s
+; RUN: opt -S %s -passes=verify | FileCheck %s
 
 declare void @use(...)
 declare i8 addrspace(1)* @llvm.experimental.gc.relocate.p1i8(token, i32, i32)
index 916d2ca..d33a135 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -verify %s
+; RUN: opt -passes=verify %s
 
 define swifttailcc void @valid_attrs(i64* sret(i64) %ret, i8* byval(i8) %byval, i8* swiftself %self, i8* swiftasync %ctx) {
   musttail call swifttailcc void @valid_attrs(i64* sret(i64) %ret, i8* byval(i8) %byval, i8* swiftself %self, i8* swiftasync %ctx)
index 128c960..725f83c 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
-; RUN: llvm-as -disable-verify < %s | opt -temporarily-allow-old-pass-syntax -verify -S | FileCheck %s  --check-prefix=STRIP
+; RUN: llvm-as -disable-verify < %s | opt -passes=verify -S | FileCheck %s  --check-prefix=STRIP
 
 ; STRIP-NOT: tbaa
 ; STRIP: @f_0
index 0621bd0..9aeb3d6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax --verify --disable-output %s
+; RUN: opt -passes=verify --disable-output %s
 
 define void @test_vp_int(<8 x i32> %i0, <8 x i32> %i1, <8 x i1> %m, i32 %n) {
   %r0 = call <8 x i32> @llvm.vp.add.v8i32(<8 x i32> %i0, <8 x i32> %i1, <8 x i1> %m, i32 %n)
index 49bc1ca..4924389 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -verify < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=verify < %s 2>&1 | FileCheck %s
 ; CHECK-NOT: Global is marked as dllimport, but not external
 
 target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"