| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | selector-1.m | 12 SEL func(void) 19 SEL s = @selector((retain)); 20 SEL s1 = @selector((meth1:)); 21 SEL s2 = @selector((retainArgument::)); 24 SEL s5 = @selector((meth1:with:with:)); 27 SEL s9 = @selector((:enum:bool:)); 30 SEL s = @selector(retain); 31 SEL s1 = @selector(meth1:); 32 SEL s2 = @selector(retainArgument::); 35 SEL s5 = @selector(meth1:with:with:); [all …]
|
| H A D | undeclared-selector.m | 3 typedef struct objc_selector *SEL; typedef 20 SEL d = @selector(methodD); /* Ok */ 21 SEL e = @selector(methodE); 26 SEL e = @selector(methodE); /* Ok */ 31 SEL e = @selector(methodE); /* Ok */ 38 SEL a = @selector(methodA); /* Ok */ 39 SEL b = @selector(methodB); /* Ok */ 40 SEL c = @selector(methodC); // expected-warning {{undeclared selector 'methodC'}} 41 SEL d = @selector(methodD); /* Ok */ 42 SEL e = @selector(methodE); /* Ok */
|
| H A D | warn-incompatible-builtin-types.m | 10 SEL s1, s2; 24 s1 = i; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'id'}} 25 i = s1; // expected-warning {{incompatible pointer types assigning to 'id' from 'SEL'}} 29 s1 = c; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'Class'}} 31 c = s1; // expected-warning {{incompatible pointer types assigning to 'Class' from 'SEL'}} 37 f = s1; // expected-warning {{incompatible pointer types assigning to 'Foo *' from 'SEL'}} 41 s1 = f; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'Foo *'}}
|
| H A D | arc-peformselector.m | 16 SEL sel1; 18 - (id)performSelector:(SEL)aSelector; argument 19 - (id)performSelector:(SEL)aSelector withObject:(id)object; argument 20 - (id)performSelector:(SEL)aSelector withObject:(id)object1 withObject:(id)object2; argument 22 - (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(double)delay inModes:(… argument 46 - (id)performSelector:(SEL)aSelector { return 0; } argument 47 - (id)performSelector:(SEL)aSelector withObject:(id)object { return 0; } argument 48 - (id)performSelector:(SEL)aSelector withObject:(id)object1 withObject:(id)object2 { return 0; } argument 49 - (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(double)delay inModes:(… argument
|
| H A D | selector-3.m | 16 SEL a,b,c; 26 SEL func(void) 37 - (int)respondsToSelector:(SEL)aSelector; argument 68 extern SEL MySelector(SEL s); 125 SEL s = @selector(compare:); // spurious warning 134 SEL s = @selector(compare:); 148 SEL properties[] = {
|
| H A D | warn-cast-of-sel-expr.m | 5 SEL s; 7 SEL sel_registerName(const char *); 10 (char *)s; // expected-warning {{cast of type 'SEL' to 'char *' is deprecated; use sel_getName ins… 12 (const char *)sel_registerName("foo"); // expected-warning {{cast of type 'SEL' to 'const char *' … 23 (SEL)sel_registerName("foo"); // ok
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Mips/llvm-ir/ |
| H A D | select-int.ll | 12 ; RUN: -check-prefixes=ALL,SEL,SEL-32 26 ; RUN: -check-prefixes=ALL,SEL,SEL-64 50 ; SEL: andi $[[T0:[0-9]+]], $4, 1 53 ; SEL: or $2, $[[T2]], $[[T1]] 86 ; SEL: andi $[[T0:[0-9]+]], $4, 1 89 ; SEL: or $2, $[[T2]], $[[T1]] 122 ; SEL: andi $[[T0:[0-9]+]], $4, 1 126 ; SEL-64: sll $2, $[[T3]], 0 245 ; SEL-32: jr $ra 246 ; SEL-32: seleqz $2, $4, $[[T2]] [all …]
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | selector-1.m | 7 SEL s = @selector(retain); 8 SEL s1 = @selector(meth1:); 9 SEL s2 = @selector(retainArgument::); 10 SEL s3 = @selector(retainArgument:::::); 11 SEL s4 = @selector(retainArgument:with:); 12 SEL s5 = @selector(meth1:with:with:); 13 SEL s6 = @selector(getEnum:enum:bool:); 14 SEL s7 = @selector(char:float:double:unsigned:short:long:); 15 SEL s9 = @selector(:enum:bool:);
|
| /llvm-project-15.0.7/llvm/test/Transforms/AggressiveInstCombine/ |
| H A D | trunc_select.ll | 10 ; CHECK-NEXT: ret i16 [[SEL]] 24 ; CHECK-NEXT: ret i8 [[SEL]] 40 ; CHECK-NEXT: ret i16 [[SEL]] 55 ; CHECK-NEXT: ret i16 [[SEL]] 68 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[COND:%.*]], i16 4, i16 [[A:%.*]] 69 ; CHECK-NEXT: ret i16 [[SEL]] 82 ; CHECK-NEXT: ret i8 [[SEL]] 95 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[COND:%.*]], i8 4, i8 [[A:%.*]] 96 ; CHECK-NEXT: ret i8 [[SEL]] 111 ; CHECK-NEXT: ret i16 [[SEL]] [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/CodeGenPrepare/X86/ |
| H A D | select.ll | 15 ; CHECK-NEXT: ret i32 [[SEL]] 38 ; CHECK-NEXT: ret float [[SEL]] 53 ; DEBUG-NEXT: ret float [[SEL]] 73 ; CHECK-NEXT: ret float [[SEL]] 88 ; DEBUG-NEXT: ret float [[SEL]], !dbg 111 ; CHECK-NEXT: ret float [[SEL]] 129 ; CHECK-NEXT: ret float [[SEL]] 147 ; CHECK-NEXT: ret float [[SEL]] 166 ; CHECK-NEXT: ret float [[SEL]] 187 ; CHECK-NEXT: ret i64* [[SEL]] [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | fneg-fabs.ll | 12 ; CHECK-NEXT: ret double [[SEL]] 25 ; CHECK-NEXT: ret double [[SEL]] 38 ; CHECK-NEXT: ret double [[SEL]] 50 ; CHECK-NEXT: ret double [[SEL]] 62 ; CHECK-NEXT: ret double [[SEL]] 74 ; CHECK-NEXT: ret double [[SEL]] 90 ; CHECK-NEXT: ret double [[SEL]] 103 ; CHECK-NEXT: ret double [[SEL]] 116 ; CHECK-NEXT: ret double [[SEL]] 128 ; CHECK-NEXT: ret double [[SEL]] [all …]
|
| H A D | cast-select.ll | 7 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[CMP]], i32 0, i32 [[Z:%.*]] 8 ; CHECK-NEXT: [[R:%.*]] = zext i32 [[SEL]] to i64 21 ; CHECK-NEXT: [[R:%.*]] = zext <2 x i8> [[SEL]] to <2 x i32> 33 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[CMP]], i8 42, i8 [[Z:%.*]] 34 ; CHECK-NEXT: [[R:%.*]] = sext i8 [[SEL]] to i64 47 ; CHECK-NEXT: [[R:%.*]] = sext <2 x i8> [[SEL]] to <2 x i32> 73 ; CHECK-NEXT: [[R:%.*]] = trunc <2 x i64> [[SEL]] to <2 x i32> 86 ; CHECK-NEXT: [[R:%.*]] = fpext float [[SEL]] to double 99 ; CHECK-NEXT: [[R:%.*]] = fpext <2 x float> [[SEL]] to <2 x double> 112 ; CHECK-NEXT: [[R:%.*]] = fptrunc double [[SEL]] to float [all …]
|
| H A D | prevent-cmp-merge.ll | 13 ; CHECK-NEXT: [[SEL:%.*]] = or i1 [[CMP1]], [[CMP2]] 14 ; CHECK-NEXT: ret i1 [[SEL]] 29 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[CMP1]], i1 true, i1 [[CMP2]] 30 ; CHECK-NEXT: ret i1 [[SEL]] 45 ; CHECK-NEXT: [[SEL:%.*]] = xor i1 [[CMP1]], [[CMP2]] 46 ; CHECK-NEXT: ret i1 [[SEL]] 61 ; CHECK-NEXT: [[SEL:%.*]] = or i1 [[CMP1]], [[CMP2]] 62 ; CHECK-NEXT: ret i1 [[SEL]] 77 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[CMP1]], i1 true, i1 [[CMP2]] 78 ; CHECK-NEXT: ret i1 [[SEL]]
|
| H A D | wcslen-5.ll | 23 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[TMP0:%.*]], i32* [[PS3_PI]], i32* getelementptr inbounds… 24 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @wcslen(i32* [[SEL]]) 42 ; XFAIL-CHECK-NEXT: [[SEL:%.*]] = select i1 %0, i64 [[DIF_I]], i64 5 43 ; XFAIL-CHECK-NEXT: ret i64 [[SEL]] 48 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @wcslen(i32* [[SEL]]) 69 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @wcslen(i32* [[SEL]]) 87 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @wcslen(i32* [[SEL]]) 105 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @wcslen(i32* [[SEL]]) 125 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @wcslen(i32* [[SEL]]) 143 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[TMP0:%.*]], i32* [[PS3_PI]], i32* [[PS5_PJ]] [all …]
|
| H A D | strlen-4.ll | 23 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @strlen(i8* noundef nonnull dereferenceable(1) [[SEL]]) 41 ; XFAIL-CHECK-NEXT: [[SEL:%.*]] = select i1 %0, i64 [[DIF_I]], i64 5 42 ; XFAIL-CHECK-NEXT: ret i64 [[SEL]] 47 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @strlen(i8* noundef nonnull dereferenceable(1) [[SEL]]) 68 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @strlen(i8* noundef nonnull dereferenceable(1) [[SEL]]) 86 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @strlen(i8* noundef nonnull dereferenceable(1) [[SEL]]) 104 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @strlen(i8* noundef nonnull dereferenceable(1) [[SEL]]) 124 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @strlen(i8* noundef nonnull dereferenceable(1) [[SEL]]) 142 ; CHECK-NEXT: [[SEL:%.*]] = select i1 [[X:%.*]], i8* [[PS3_PI]], i8* [[PS5_PJ]] 143 ; CHECK-NEXT: [[LEN:%.*]] = tail call i64 @strlen(i8* noundef nonnull [[SEL]]) [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenObjCXX/ |
| H A D | msabi-objc-types.mm | 71 void n(SEL) {} 74 void n(SEL *) {} 77 void n(const SEL *) {} 80 void n(SEL &) {} 83 void n(const SEL &) {} 86 void n(SEL &&) {} 146 void m(SEL) {} 149 void m(SEL *) {} 155 void m(SEL &) {} 161 void m(SEL &&) {} [all …]
|
| /llvm-project-15.0.7/clang/test/Rewriter/ |
| H A D | objc-modern-numeric-literal.mm | 59 // CHECK: NSNumber *theLetterZ = ((NSNumber *(*)(Class, SEL, char))(void *)objc_msgSend)(objc_getC… 60 // CHECK: NSNumber *fortyTwo = ((NSNumber *(*)(Class, SEL, int))(void *)objc_msgSend)(objc_getClas… 61 // CHECK: NSNumber *fortyTwoUnsigned = ((NSNumber *(*)(Class, SEL, unsigned int))(void *)objc_msgS… 62 // CHECK: NSNumber *fortyTwoLong = ((NSNumber *(*)(Class, SEL, long))(void *)objc_msgSend)(objc_ge… 63 // CHECK: NSNumber *fortyTwoLongLong = ((NSNumber *(*)(Class, SEL, long long))(void *)objc_msgSend… 64 // CHECK: NSNumber *piFloat = ((NSNumber *(*)(Class, SEL, float))(void *)objc_msgSend)(objc_getCla… 65 // CHECK: NSNumber *piDouble = ((NSNumber *(*)(Class, SEL, double))(void *)objc_msgSend)(objc_getC… 66 // CHECK: NSNumber *yesNumber = ((NSNumber *(*)(Class, SEL, BOOL))(void *)objc_msgSend)(objc_getCl… 67 // CHECK: NSNumber *noNumber = ((NSNumber *(*)(Class, SEL, BOOL))(void *)objc_msgSend)(objc_getCla… 68 // CHECK: NSNumber *trueNumber = ((NSNumber *(*)(Class, SEL, BOOL))(void *)objc_msgSend)(objc_getC… [all …]
|
| H A D | objc-modern-boxing.mm | 4 …tax-only -Werror -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -U__declspec… 64 // CHECK: NSNumber *theLetterZ = ((NSNumber *(*)(Class, SEL, char))(void *)objc_msgSend)(objc_getC… 65 // CHECK: NSNumber *fortyTwo = ((NSNumber *(*)(Class, SEL, int))(void *)objc_msgSend)(objc_getClas… 66 // CHECK: NSNumber *fortyTwoUnsigned = ((NSNumber *(*)(Class, SEL, unsigned int))(void *)objc_msgS… 67 // CHECK: NSNumber *fortyTwoLong = ((NSNumber *(*)(Class, SEL, long))(void *)objc_msgSend)(objc_ge… 68 // CHECK: NSNumber *fortyTwoLongLong = ((NSNumber *(*)(Class, SEL, long long))(void *)objc_msgSend… 69 // CHECK: NSNumber *piFloat = ((NSNumber *(*)(Class, SEL, float))(void *)objc_msgSend)(objc_getCla… 70 // CHECK: NSNumber *piDouble = ((NSNumber *(*)(Class, SEL, double))(void *)objc_msgSend)(objc_getC… 71 // CHECK: NSNumber *nsb = ((NSNumber *(*)(Class, SEL, BOOL))(void *)objc_msgSend)(objc_getClass("N… 72 // CHECK: NSString *duplicateString = ((NSString *(*)(Class, SEL, const char *))(void *)objc_msgSe…
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | sel-address.mm | 4 void f(const SEL& v2) {} 5 void g(SEL* _Nonnull); 9 SEL s = @selector(dealloc); 10 SEL* ps = &s; 14 SEL* ps2 = &@selector(dealloc);
|
| /llvm-project-15.0.7/llvm/test/Transforms/SimplifyCFG/AMDGPU/ |
| H A D | cttz-ctlz.ll | 10 ; SI-NEXT: ret i64 [[SEL]] 30 ; SI-NEXT: ret i32 [[SEL]] 50 ; SI-NEXT: ret i16 [[SEL]] 70 ; SI-NEXT: ret i64 [[SEL]] 90 ; SI-NEXT: ret i32 [[SEL]] 110 ; SI-NEXT: ret i16 [[SEL]] 130 ; ALL-NEXT: ret i64 [[SEL]] 149 ; ALL-NEXT: ret i32 [[SEL]] 169 ; ALL-NEXT: ret i16 [[SEL]] 189 ; ALL-NEXT: ret i64 [[SEL]] [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | encode-test.m | 66 __attribute__((objc_gc(weak))) SEL selector; 69 - (SEL**) meth : (SEL) arg : (SEL*****) arg1 : (SEL*)arg2 : (SEL**) arg3; argument 74 - (SEL**) meth : (SEL) arg : (SEL*****) arg1 : (SEL*)arg2 : (SEL**) arg3 {} argument 182 const char g15[] = @encode(SEL);
|
| H A D | nsvalue-objc-boxable-mac.m | 25 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 27 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 42 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 44 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 59 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 61 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 76 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 80 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 95 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 97 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… [all …]
|
| H A D | nsvalue-objc-boxable-ios.m | 25 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 27 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 42 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 44 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 59 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 61 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 76 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 80 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 95 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 97 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… [all …]
|
| H A D | nsvalue-objc-boxable-ios-arc.m | 25 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 27 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 44 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 46 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 63 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 65 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 82 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 86 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… 103 // CHECK: [[SEL:%.*]] = load i8*, i8** [[VALUE_SEL]] 105 …// CHECK: call {{.*objc_msgSend.*}}(i8* noundef [[RECV]], i8* noundef [[SEL]], i8* noundef [[… [all …]
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | comdat-selection.s | 8 # RUN: sed -e s/SEL/discard/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=obj -o %t.discard.obj 9 # RUN: sed -e s/SEL/discard/ -e s/.long/.short/ -e s/1/2/ %s | llvm-mc -triple x86_64-pc-win32 -fil… 10 # RUN: sed -e s/SEL/one_only/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=obj -o %t.one_only.obj 11 # RUN: sed -e s/SEL/same_size/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=obj -o %t.same_size.o… 12 # RUN: sed -e s/SEL/same_size/ -e s/.long/.short/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=ob… 13 # RUN: sed -e s/SEL/same_contents/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=obj -o %t.same_co… 14 # RUN: sed -e s/SEL/same_contents/ -e s/.long/.short/ %s | llvm-mc -triple x86_64-pc-win32 -filetyp… 15 # RUN: sed -e s/SEL/same_contents/ -e s/1/2/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=obj -o … 16 # RUN: sed -e s/SEL/largest/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=obj -o %t.largest.obj 18 # RUN: sed -e s/SEL/newest/ %s | llvm-mc -triple x86_64-pc-win32 -filetype=obj -o %t.newest.obj [all …]
|