[ObjCARC][test] Use `opt -passes=` syntax
authorArthur Eubanks <aeubanks@google.com>
Sun, 2 Oct 2022 20:20:21 +0000 (13:20 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 18 Oct 2022 16:54:05 +0000 (09:54 -0700)
51 files changed:
llvm/test/Transforms/ObjCARC/allocas.ll
llvm/test/Transforms/ObjCARC/apelim.ll
llvm/test/Transforms/ObjCARC/basic.ll
llvm/test/Transforms/ObjCARC/cfg-hazards.ll
llvm/test/Transforms/ObjCARC/clang-arc-use-barrier.ll
llvm/test/Transforms/ObjCARC/code-motion.ll
llvm/test/Transforms/ObjCARC/comdat-ipo.ll
llvm/test/Transforms/ObjCARC/contract-attached-call-no-marker.ll
llvm/test/Transforms/ObjCARC/contract-catchswitch.ll
llvm/test/Transforms/ObjCARC/contract-end-of-use-list.ll
llvm/test/Transforms/ObjCARC/contract-marker-funclet.ll
llvm/test/Transforms/ObjCARC/contract-marker.ll
llvm/test/Transforms/ObjCARC/contract-replace-arg-use.ll
llvm/test/Transforms/ObjCARC/contract-rv-attr.ll
llvm/test/Transforms/ObjCARC/contract-storestrong-funclet.ll
llvm/test/Transforms/ObjCARC/contract-storestrong-ivar.ll
llvm/test/Transforms/ObjCARC/contract-storestrong.ll
llvm/test/Transforms/ObjCARC/contract-testcases.ll
llvm/test/Transforms/ObjCARC/contract.ll
llvm/test/Transforms/ObjCARC/empty-block.ll
llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll
llvm/test/Transforms/ObjCARC/escape.ll
llvm/test/Transforms/ObjCARC/expand.ll
llvm/test/Transforms/ObjCARC/funclet.ll
llvm/test/Transforms/ObjCARC/inert-global.ll
llvm/test/Transforms/ObjCARC/inlined-autorelease-return-value.ll
llvm/test/Transforms/ObjCARC/intrinsic-use-isolated.ll
llvm/test/Transforms/ObjCARC/intrinsic-use.ll
llvm/test/Transforms/ObjCARC/invoke-2.ll
llvm/test/Transforms/ObjCARC/invoke.ll
llvm/test/Transforms/ObjCARC/move-and-form-retain-autorelease.ll
llvm/test/Transforms/ObjCARC/move-and-merge-autorelease.ll
llvm/test/Transforms/ObjCARC/nested.ll
llvm/test/Transforms/ObjCARC/opt-catchswitch.ll
llvm/test/Transforms/ObjCARC/opt-max-ptr-states.ll
llvm/test/Transforms/ObjCARC/path-overflow.ll
llvm/test/Transforms/ObjCARC/pointer-types.ll
llvm/test/Transforms/ObjCARC/post-inlining.ll
llvm/test/Transforms/ObjCARC/pr12270.ll
llvm/test/Transforms/ObjCARC/related-check.ll
llvm/test/Transforms/ObjCARC/retain-block-side-effects.ll
llvm/test/Transforms/ObjCARC/retain-not-declared.ll
llvm/test/Transforms/ObjCARC/rle-s2l.ll
llvm/test/Transforms/ObjCARC/rv.ll
llvm/test/Transforms/ObjCARC/split-backedge.ll
llvm/test/Transforms/ObjCARC/tail-call-invariant-enforcement.ll
llvm/test/Transforms/ObjCARC/unsafe-claim-rv.ll
llvm/test/Transforms/ObjCARC/weak-contract.ll
llvm/test/Transforms/ObjCARC/weak-copies.ll
llvm/test/Transforms/ObjCARC/weak-dce.ll
llvm/test/Transforms/ObjCARC/weak.ll

index e00467e..7399bfd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 declare i8* @llvm.objc.retain(i8*)
 declare i8* @llvm.objc.retainAutoreleasedReturnValue(i8*)
index b13442b..947f445 100644 (file)
@@ -1,4 +1,3 @@
-; RUN: opt -S -objc-arc-apelim < %s | FileCheck %s
 ; RUN: opt -S -passes=objc-arc-apelim < %s | FileCheck %s
 ; rdar://10227311
 
index ce0e31a..62ce2cf 100644 (file)
@@ -1,4 +1,3 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
 ; RUN: opt -aa-pipeline=basic-aa -passes=objc-arc -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64"
index 221e51b..9c132c1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 ; rdar://9503416
 
 ; Detect loop boundaries and don't move retains and releases
index a00c117..bb93ace 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S %s | FileCheck %s
 
 %0 = type opaque
 
index 9d311e1..11785ac 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 declare void @alterRefCount()
 declare void @use(i8*)
index d7d1d6d..5881d51 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc-apelim < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc-apelim < %s | FileCheck %s
 
 ; See PR26774
 
index 4fc238d..0da8c9b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 ; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 ; CHECK-LABEL: define void @test0() {
index 90b6522..620e610 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc-contract < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc-contract < %s | FileCheck %s
 
 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
 target triple = "i686--windows-msvc19.11.0"
index 364d722..a967d06 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S < %s -objc-arc-expand -objc-arc-contract | FileCheck %s
+; RUN: opt -S < %s -passes=objc-arc-expand,objc-arc-contract | FileCheck %s
 ; Don't crash.  Reproducer for a use_iterator bug from r203364.
 ; rdar://problem/16333235
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
index efcbdca..b2e856d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=i686-unknown-windows-msvc -objc-arc-contract -S -o - %s | FileCheck %s
+; RUN: opt -mtriple=i686-unknown-windows-msvc -passes=objc-arc-contract -S -o - %s | FileCheck %s
 
 ; Generated (and lightly modified and cleaned up) from the following source:
 ; id f();
index e221706..d3706de 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc-contract < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc-contract < %s | FileCheck %s
 
 ; CHECK-LABEL: define void @foo() {
 ; CHECK:      %call = tail call i32* @qux()
index 28e2f6e..d9c76b9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 declare i8* @llvm.objc.autoreleaseReturnValue(i8*)
 declare i8* @foo1()
index f8dc187..033c0b3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 ; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 ; CHECK-LABEL: define void @test0() {
index afeab0e..40e22a5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=i686-unknown-windows-msvc -objc-arc-contract -S -o - %s | FileCheck %s
+; RUN: opt -mtriple=i686-unknown-windows-msvc -passes=objc-arc-contract -S -o - %s | FileCheck %s
 
 declare void @f()
 declare i32 @__CxxFrameHandler3(...)
index 79db46a..6be0381 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 ; CHECK: tail call void @llvm.objc.storeStrong(i8**
 
index 9c45e33..f132dbf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64"
 
index f6e96d4..b88c936 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 ; rdar://9511608
 
 %0 = type opaque
index 36f0a84..c293939 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 ; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64"
index 68372e7..7d7b5db 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 ; rdar://10210274
 
 %0 = type opaque
index 04788d5..03257d2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 ; rdar://11744105
 ; bugzilla://14584
 
index f9eeca8..62afe5d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 ; rdar://11229925
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
index 07b412f..dcfa6d5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-expand -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-expand -S < %s | FileCheck %s
 ; RUN: opt -passes=objc-arc-expand -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64"
index 346a690..610c84f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple x86_64-unknown-windows-msvc -objc-arc -S -o - %s | FileCheck %s
+; RUN: opt -mtriple x86_64-unknown-windows-msvc -passes=objc-arc -S -o - %s | FileCheck %s
 
 ; bool g();
 ; id h();
index 464d78b..6069854 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 %0 = type opaque
 %struct.__NSConstantString_tag = type { i32*, i32, i8*, i64 }
index 4832393..c992801 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64"
 
index 4ccad03..49437a3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 ; This file makes sure that clang.arc.used is removed even if no other ARC
 ; interesting calls are in the module.
index 539f3b7..e9c11eb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64"
 
index fabe3e8..261ed94 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple x86_64-unknown-windows-msvc -objc-arc -o - %s | llvm-dis -o - - | FileCheck %s
+; RUN: opt -mtriple x86_64-unknown-windows-msvc -passes=objc-arc -o - %s | llvm-dis -o - - | FileCheck %s
 
 target triple = "x86_64-unknown-windows-msvc"
 
index b6c3d1a..d6c25b9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 
 declare i8* @llvm.objc.retain(i8*)
 declare void @llvm.objc.release(i8*)
index 203ff67..15355c0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc-contract < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc-contract < %s | FileCheck %s
 
 ; The optimizer should be able to move the autorelease past a control triangle
 ; and various scary looking things and fold it into an objc_retainAutorelease.
index 46d25bd..a8ec6a0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc -objc-arc-contract < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc,objc-arc-contract < %s | FileCheck %s
 
 ; The optimizer should be able to move the autorelease past two phi nodes
 ; and fold it with the release in bb65.
index 56d26f7..e1c46a0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 %struct.__objcFastEnumerationState = type { i64, i8**, i64*, [5 x i64] }
 
index 2cce994..28cf7d1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 
 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
 target triple = "i686--windows-msvc"
index 57a1277..68733b2 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt -objc-arc -S < %s | FileCheck -check-prefix=ENABLE -check-prefix=CHECK %s
-; RUN: opt -objc-arc -arc-opt-max-ptr-states=1 -S < %s | FileCheck -check-prefix=DISABLE -check-prefix=CHECK %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck -check-prefix=ENABLE -check-prefix=CHECK %s
+; RUN: opt -passes=objc-arc -arc-opt-max-ptr-states=1 -S < %s | FileCheck -check-prefix=DISABLE -check-prefix=CHECK %s
 
 @g0 = common global i8* null, align 8
 
index 1579a42..3415bb1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s
+; RUN: opt -passes=objc-arc -S < %s
 ; rdar://12277446
 ; rdar://12480535
 ; rdar://14590914
index b7fcad0..b70dbdb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 ; Don't hoist @llvm.objc.release past a use of its pointer, even
 ; if the use has function type, because clang uses function types
index 8e4e762..50adf64 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 
 declare void @use_pointer(i8*)
 declare i8* @returner()
index b1d9902..30573e3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -disable-output -objc-arc-contract < %s
+; RUN: opt -disable-output -passes=objc-arc-contract < %s
 ; test that we don't crash on unreachable code
 %2 = type opaque
 
index 376ce66..293297d 100644 (file)
@@ -1,7 +1,7 @@
 ; Make sure this succeeds without hitting an assertion and the output is deterministic
 ; RUN: mkdir -p %t
-; RUN: opt -objc-arc %s -S -o %t/out1.ll
-; RUN: opt -objc-arc %s -S -o %t/out2.ll
+; RUN: opt -passes=objc-arc %s -S -o %t/out1.ll
+; RUN: opt -passes=objc-arc %s -S -o %t/out2.ll
 ; RUN: diff -u %t/out1.ll %t/out2.ll
 
 %0 = type opaque
index b9c53fb..6adb864 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -aa-pipeline=objc-arc-aa -gvn < %s | FileCheck %s
+; RUN: opt -S -aa-pipeline=objc-arc-aa,basic-aa -passes=gvn < %s | FileCheck %s
 ; rdar://10050579
 
 ; objc_retainBlock stores into %repeater so the load from after the
index 50f7b08..a20ec8d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc -objc-arc-contract < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc,objc-arc-contract < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
 declare i8* @llvm.objc.unretainedObject(i8*)
index eb8a00a..e13ff35 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 
 declare i8* @llvm.objc.loadWeak(i8**)
 declare i8* @llvm.objc.loadWeakRetained(i8**)
index 7fda98c..e0c1de2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64"
 
index e9239ae..e284971 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 
 ; Handle a retain+release pair entirely contained within a split loop backedge.
 ; rdar://11256239
index b05a16d..320d791 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 declare void @llvm.objc.release(i8* %x)
 declare i8* @llvm.objc.retain(i8* %x)
index a76a792..a0d900f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 ; Generated by compiling:
 ;
index ca37711..bb3d445 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
 
 declare i8* @llvm.objc.initWeak(i8**, i8*)
 
index 6673a4a..dcb8ec2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
 target triple = "x86_64-apple-darwin11.0.0"
index 28d931c..82d03c7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -objc-arc < %s | FileCheck %s
+; RUN: opt -S -passes=objc-arc < %s | FileCheck %s
 ; rdar://11434915
 
 ; Delete the weak calls and replace them with just the net retain.
index 00a4e9f..504df9a 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -objc-arc -S < %s | FileCheck %s
+; RUN: opt -passes=objc-arc -S < %s | FileCheck %s
 
 declare i8* @llvm.objc.initWeak(i8**, i8*)
 declare i8* @llvm.objc.storeWeak(i8**, i8*)