Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGenObjC/pass-by-value-noalias.m @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
1 // RUN: %clang_cc1 -no-opaque-pointers -fpass-by-value-is-noalias -triple arm64-apple-iphoneos -emit-llvm -disable-llvm-optzns -fobjc-runtime-has-weak -fobjc-arc -fobjc-dispatch-method=mixed %s -o - 2>&1 | FileCheck --check-prefix=WITH_NOALIAS %s | 1 // RUN: %clang_cc1 -fpass-by-value-is-noalias -triple arm64-apple-iphoneos -emit-llvm -disable-llvm-optzns -fobjc-runtime-has-weak -fobjc-arc -fobjc-dispatch-method=mixed %s -o - 2>&1 | FileCheck --check-prefix=WITH_NOALIAS %s |
2 // RUN: %clang_cc1 -no-opaque-pointers -triple arm64-apple-iphoneos -emit-llvm -disable-llvm-optzns -fobjc-runtime-has-weak -fobjc-arc -fobjc-dispatch-method=mixed %s -o - 2>&1 | FileCheck --check-prefix=NO_NOALIAS %s | 2 // RUN: %clang_cc1 -triple arm64-apple-iphoneos -emit-llvm -disable-llvm-optzns -fobjc-runtime-has-weak -fobjc-arc -fobjc-dispatch-method=mixed %s -o - 2>&1 | FileCheck --check-prefix=NO_NOALIAS %s |
3 | 3 |
4 @interface Bar | 4 @interface Bar |
5 @property char value; | 5 @property char value; |
6 @end | 6 @end |
7 | 7 |
15 int d; | 15 int d; |
16 int e; | 16 int e; |
17 Bar *__weak f; | 17 Bar *__weak f; |
18 }; | 18 }; |
19 | 19 |
20 // WITH_NOALIAS: define{{.*}} void @take(%struct.Foo* noundef %arg) | 20 // WITH_NOALIAS: define{{.*}} void @take(ptr noundef %arg) |
21 // NO_NOALIAS: define{{.*}} void @take(%struct.Foo* noundef %arg) | 21 // NO_NOALIAS: define{{.*}} void @take(ptr noundef %arg) |
22 void take(struct Foo arg) {} | 22 void take(struct Foo arg) {} |