Home
last modified time | relevance | path

Searched full:calling (Results 1 – 25 of 2513) sorted by relevance

12345678910>>...101

/llvm-project/llvm/test/Verifier/
H A Damdgpu-cc.ll5 ; CHECK: Calling convention requires void return type
11 ; CHECK: Calling convention does not support varargs or perfect forwarding!
17 ; CHECK: Calling convention does not allow sret
23 ; CHECK: Calling convention does not allow sret
29 ; CHECK: Calling convention does not support varargs or perfect forwarding!
35 ; CHECK: Calling convention does not support varargs or perfect forwarding!
41 ; CHECK: Calling convention does not support varargs or perfect forwarding!
47 ; CHECK: Calling convention does not support varargs or perfect forwarding!
53 ; CHECK: Calling convention requires void return type
59 ; CHECK: Calling convention does not support varargs or perfect forwarding!
[all …]
/llvm-project/clang/test/Sema/
H A Dno_callconv.cpp7 void __vectorcall func_vc() {} // expected-error {{'__vectorcall' calling convention is not support… in func_vc()
8 void __regcall func_rc() {} // expected-error {{'__regcall' calling convention is not supported for… in func_rc()
9 void __attribute__((vectorcall)) funcA() {} // expected-error {{'vectorcall' calling convention is … in funcA()
10 void __attribute__((regcall)) funcB() {} // expected-error {{'regcall' calling convention is not su… in funcB()
11 void __attribute__((ms_abi)) funcH() {} // expected-error {{'ms_abi' calling convention is not supp… in funcH()
12 void __attribute__((intel_ocl_bicc)) funcJ() {} // expected-error {{'intel_ocl_bicc' calling conven… in funcJ()
13 void __attribute__((swiftcall)) funcK() {} // expected-error {{'swiftcall' calling convention is no… in funcK()
14 void __attribute__((swiftasynccall)) funcKK() {} // expected-error {{'swiftasynccall' calling conve… in funcKK()
15 void __attribute__((pascal)) funcG() {} // expected-error {{'pascal' calling convention is not supp… in funcG()
16 void __attribute__((preserve_most)) funcL() {} // expected-error {{'preserve_most' calling conventi… in funcL()
[all …]
H A Dattr-enforce-tcb.c18 foo3(); // expected-warning {{calling 'foo3' is a violation of trusted computing base 'bar'}} in foo1()
19 foo4(); // expected-warning {{calling 'foo4' is a violation of trusted computing base 'bar'}} in foo1()
22 foo7(); // expected-warning {{calling 'foo7' is a violation of trusted computing base 'bar'}} in foo1()
39 foo1(); // expected-warning {{calling 'foo1' is a violation of trusted computing base 'bar2'}} in foo6()
40 foo4(); // expected-warning {{calling 'foo4' is a violation of trusted computing base 'bar'}} in foo6()
43 // expected-warning@#1 {{calling 'foo7' is a violation of trusted computing base 'bar2'}} in foo6()
44 // expected-warning@#1 {{calling 'foo7' is a violation of trusted computing base 'bar'}} in foo6()
53 // expected-warning@#2 {{calling 'foo1' is a violation of trusted computing base 'bar2'}} in foo10()
54 // expected-warning@#2 {{calling 'foo1' is a violation of trusted computing base 'bar3'}} in foo10()
56 // expected-warning@#3 {{calling 'foo3' is a violation of trusted computing base 'bar'}} in foo10()
[all …]
H A Dstdcall-fastcall-x64.c8 …// expected-warning{{'stdcall' calling convention is not supported for this target}} expected-warn…
9 void __attribute__((stdcall)) foo4(); // expected-warning{{'stdcall' calling convention is not supp…
10 void __attribute__((fastcall)) foo4(void); // expected-warning {{'fastcall' calling convention is n…
12 …int j) __attribute__((fastcall, cdecl)); // expected-warning{{'fastcall' calling convention is not…
13 …// expected-warning{{'stdcall' calling convention is not supported for this target}} expected-warn…
14 … __attribute__((fastcall, regparm(2))); // expected-warning {{'fastcall' calling convention is not…
15 …, int j) __attribute__((stdcall, cdecl)); // expected-warning{{'stdcall' calling convention is not…
16 …// expected-warning{{'stdcall' calling convention is not supported for this target}} expected-warn…
17 …nt j) __attribute__((cdecl, fastcall)); // expected-warning {{'fastcall' calling convention is not…
18 …, int j) __attribute__((cdecl, stdcall)); // expected-warning{{'stdcall' calling convention is not…
[all …]
H A Dcallingconv-cast.c1 // RUN: %clang_cc1 -fms-extensions -triple i686-pc-windows-msvc -Wcast-calling-convention -DMSVC -W…
2 // RUN: %clang_cc1 -fms-extensions -triple i686-pc-windows-msvc -Wcast-calling-convention -DMSVC -W…
3 // RUN: %clang_cc1 -fms-extensions -triple i686-pc-windows-msvc -Wcast-calling-convention -DMSVC -f…
4 // RUN: %clang_cc1 -triple i686-pc-windows-gnu -Wcast-calling-convention -fdiagnostics-parseable-fi…
6 // expected-note@+1 {{consider defining 'mismatched_before_winapi' with the 'stdcall' calling conve…
15 // expected-note@+1 3 {{consider defining 'mismatched' with the 'stdcall' calling convention}}
18 // expected-note@+1 {{consider defining 'mismatched_declaration' with the 'stdcall' calling convent…
21 // expected-note@+1 {{consider defining 'suggest_fix_first_redecl' with the 'stdcall' calling conve…
33 // expected-warning@+1 {{cast between incompatible calling conventions 'cdecl' and 'stdcall'}} in main()
36 // expected-warning@+1 {{cast between incompatible calling conventions 'cdecl' and 'stdcall'}} in main()
[all …]
H A Dcallingconv-iamcu.c3 void __attribute__((fastcall)) foo(float *a) { // expected-warning {{'fastcall' calling convention … in foo()
6 void __attribute__((stdcall)) bar(float *a) { // expected-warning {{'stdcall' calling convention is… in bar()
12 void __attribute__((fastcall)) test2(int a, ...) { // expected-warning {{'fastcall' calling convent… in test2()
14 void __attribute__((stdcall)) test3(int a, ...) { // expected-warning {{'stdcall' calling conventio… in test3()
16 void __attribute__((thiscall)) test4(int a, ...) { // expected-warning {{'thiscall' calling convent… in test4()
23 void (__attribute__((fastcall)) *pfoo)(float*) = foo; // expected-warning {{'fastcall' calling conv…
25 void (__attribute__((stdcall)) *pbar)(float*) = bar; // expected-warning {{'stdcall' calling conven…
32 …bute__((fastcall)) *Handler) (float *); // expected-warning {{'fastcall' calling convention is not…
41 int __attribute__((pcs("aapcs"))) pcs5(void); // expected-warning {{'pcs' calling convention is not…
42 int __attribute__((pcs("aapcs-vfp"))) pcs6(void); // expected-warning {{'pcs' calling convention is…
[all …]
H A Dcallingconv.c19 void __attribute__((fastcall)) test2(int a, ...) { // expected-warning {{fastcall calling conventio… in test2()
21 void __attribute__((stdcall)) test3(int a, ...) { // expected-warning {{stdcall calling convention … in test3()
23 … test4(int a, ...) { // expected-error {{variadic function cannot use thiscall calling convention}} in test4()
50 int __attribute__((pcs("aapcs"))) pcs5(void); // expected-warning {{'pcs' calling convention is not…
51 int __attribute__((pcs("aapcs-vfp"))) pcs6(void); // expected-warning {{'pcs' calling convention is…
54 …64_vector_pcs)) aavpcs(void); // expected-warning {{'aarch64_vector_pcs' calling convention is not…
55 …rch64_sve_pcs)) aasvepcs(void); // expected-warning {{'aarch64_sve_pcs' calling convention is not…
57 …dgpu_kernel)) amdgpu_kernel(void); // expected-warning {{'amdgpu_kernel' calling convention is not…
71 …ected-error {{function declared 'stdcall' here was previously declared without calling convention}} in typedef_fun()
75 void __vectorcall __builtin_unreachable(); // expected-warning {{vectorcall calling convention is n…
H A Ddecl-microsoft-call-conv.c22 …tcall(); // expected-error{{function with no prototype cannot use the fastcall calling convention}}
23 …call(); // expected-warning{{function with no prototype cannot use the stdcall calling convention}}
24 …scall(); // expected-error{{function with no prototype cannot use the thiscall calling convention}}
25 …oPascal(); // expected-error{{function with no prototype cannot use the pascal calling convention}}
26 …all(); // expected-error{{function with no prototype cannot use the vectorcall calling convention}}
34 // Regular calling convention is fine.
/llvm-project/llvm/include/llvm/IR/
H A DCallingConv.h1 //===- llvm/CallingConv.h - LLVM Calling Conventions ------------*- C++ -*-===//
9 // This file defines LLVM's set of calling conventions.
19 /// the well-known calling conventions.
23 /// LLVM IR allows to use arbitrary numbers as calling convention identifiers.
27 /// calling conventions.
28 /// LLVM Calling Convention Representation
30 /// The default llvm calling convention, compatible with C. This convention
31 /// is the only one that supports varargs calls. As with typical C calling
36 // Generic LLVM calling conventions. None of these support varargs calls,
68 /// Calling convention for Swift.
[all …]
/llvm-project/clang/test/SemaCXX/
H A Dincomplete-call.cpp19 f(); // expected-error {{calling 'f' with incomplete return type 'A'}} in g()
23 fp(); // expected-error {{calling function with incomplete return type 'A'}} in g()
24 ((Func)0)(); // expected-error {{calling function with incomplete return type 'A'}} in g()
27 b.f(); // expected-error {{calling 'f' with incomplete return type 'A'}} in g()
29 b.operator()(); // expected-error {{calling 'operator()' with incomplete return type 'A'}} in g()
30 b.operator A(); // expected-error {{calling 'operator A' with incomplete return type 'A'}} in g()
31 b.operator!(); // expected-error {{calling 'operator!' with incomplete return type 'A'}} in g()
33 !b; // expected-error {{calling 'operator!' with incomplete return type 'A'}} in g()
34 b(); // expected-error {{calling 'operator()' with incomplete return type 'A'}} in g()
35 b++; // expected-error {{calling 'operator++' with incomplete return type 'A'}} in g()
[all …]
H A Dborland-extensions.cpp10 // expected-warning@+1 {{'_pascal' calling convention is not supported for this target}}
13 // expected-warning@+1 {{'__pascal' calling convention is not supported for this target}}
15 // expected-warning@+1 {{'__pascal' calling convention is not supported for this target}}
19 // expected-warning@+1 {{'__pascal' calling convention is not supported for this target}}
21 // expected-warning@+1 {{'__pascal' calling convention is not supported for this target}}
24 // expected-warning@+1 {{'__pascal' calling convention is not supported for this target}}
35 // 3. test other calling conventions
37 // expected-warning@+1 {{'_fastcall' calling convention is not supported for this target}}
39 // expected-warning@+1 {{'_stdcall' calling convention is not supported for this target}}
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cert/
H A Doop57-cpp.cpp48 …// CHECK-MESSAGES-NOT: :[[@LINE-1]]:3: warning: calling 'memset' on a non-trivially default constr… in foo()
50 …// CHECK-MESSAGES-NOT: :[[@LINE-1]]:3: warning: calling 'memset' on a non-trivially default constr… in foo()
52 …// CHECK-MESSAGES-NOT: :[[@LINE-1]]:3: warning: calling 'memcpy' on a non-trivially copyable class… in foo()
54 …// CHECK-MESSAGES-NOT: :[[@LINE-1]]:3: warning: calling 'memmove' on a non-trivially copyable clas… in foo()
56 …// CHECK-MESSAGES-NOT: :[[@LINE-1]]:3: warning: calling 'strcpy' on a non-trivially copyable class… in foo()
58 …SAGES-NOT: :[[@LINE-1]]:3: warning: consider using comparison operators instead of calling 'memcmp' in foo()
60 …SAGES-NOT: :[[@LINE-1]]:3: warning: consider using comparison operators instead of calling 'strcmp' in foo()
66 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling 'memset' on a non-trivially default constructi… in bar()
69 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling 'memset' on a non-trivially default constructi… in bar()
71 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling 'memcpy' on a non-trivially copyable class is … in bar()
[all …]
/llvm-project/clang/test/Analysis/inlining/
H A Dpath-notes.cpp15 // expected-note@-2 {{Calling 'Foo::use'}} in Foo()
26 // expected-note@-2 {{Calling constructor for 'Foo'}} in ~Bar()
34 } // expected-note {{Calling '~Bar'}} in test()
48 // expected-note@-2 {{Calling 'method'}} in testAnonymous()
103 // expected-note@-1 {{Calling move constructor for 'Dereferencer'}}
106 // expected-note@-1 {{Calling move assignment operator for 'Dereferencer'}}
113 // expected-note@-1 {{Calling implicit default constructor for 'Wrapper'}} in testDefaultConstruction()
114 // expected-note@-2 {{Calling default constructor for 'Dereferencer'}} in testDefaultConstruction()
121 // expected-note@-1 {{Calling implicit copy constructor for 'Wrapper'}} in testCopyConstruction()
122 // expected-note@-2 {{Calling copy constructor for 'Dereferencer'}} in testCopyConstruction()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-equals-delete.cpp6 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member…
9 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member…
12 …// CHECK-MESSAGES: :[[@LINE-1]]:20: warning: use '= delete' to prohibit calling of a special membe…
15 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member…
18 …// CHECK-MESSAGES: :[[@LINE-1]]:20: warning: use '= delete' to prohibit calling of a special membe…
21 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member…
29 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member…
32 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member…
35 …// CHECK-MESSAGES: :[[@LINE-1]]:28: warning: use '= delete' to prohibit calling of a special membe…
38 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use '= delete' to prohibit calling of a special member…
[all …]
H A Duse-emplace.cpp878 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
883 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
887 …// CHECK-MESSAGES: :[[@LINE-1]]:26: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
891 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
895 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
899 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
904 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
910 …// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
915 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
917 …// CHECK-MESSAGES: :[[@LINE-1]]:19: warning: unnecessary temporary object created while calling em… in testSomeEmplaceCases()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dcopy-constructor-init.cpp82 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor other than the copy constru…
88 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
94 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
100 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
106 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
112 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
118 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
128 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
134 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
140 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: calling a base constructor
[all …]
/llvm-project/clang/test/CodeGenCXX/
H A Dmicrosoft-abi-methods.cpp20 // Make sure that the call uses the right calling convention: in call_simple_method()
24 // Make sure that the definition uses the right calling convention: in call_simple_method()
32 // Make sure that the call uses the right calling convention: in call_cdecl_method()
36 // Make sure that the definition uses the right calling convention: in call_cdecl_method()
44 // Make sure that the call uses the right calling convention: in call_vararg_method()
48 // Make sure that the definition uses the right calling convention: in call_vararg_method()
54 // Make sure that the call uses the right calling convention: in call_static_method()
58 // Make sure that the definition uses the right calling convention: in call_static_method()
73 // the right calling convention: in constructors()
79 // the right calling convention: in constructors()
/llvm-project/clang/test/Analysis/diagnostics/
H A Dno-store-func-path-notes.cpp15 int out = initializer1(outP, 0); // expected-note{{Calling 'initializer1'}} in param_not_initialized_by_func()
34 s->initialize(&p, 0); //expected-note{{Calling 'S::initialize'}} in use()
60 init_in_nested_func(&y); // expected-note{{Calling 'init_in_nested_func'}} in call_init_nested()
77 partial_init_by_reference(a); // expected-note{{Calling 'partial_init_by_reference'}} in use_partial_init_by_reference()
92 partially_init_inherited_struct(&b); // expected-note{{Calling 'partially_init_inherited_struct'}} in use_partially_init_inherited_struct()
113 C c(0, 0); // expected-note{{Calling constructor for 'C'}} in use_constructor()
122 C c(0, 0, coin()); // expected-note{{Calling constructor for 'C'}} in use_other_constructor()
138 d->initialize(&p); // expected-note{{Calling 'D::initialize'}} in use_d_initializer()
160 pointerreference(p); //expected-note{{Calling 'pointerreference'}} in usepointerreference()
197 maybeInitialize(HasRef(z)); // expected-note{{Calling constructor for 'HasRef'}} in useMaybeInitializerWritingIntoField()
[all …]
H A Dno-store-func-path-notes.c19 int out = initializer1(&p, 0); // expected-note{{Calling 'initializer1'}} in param_not_initialized_by_func()
45 int out = initializer2(&p, 0); // expected-note{{Calling 'initializer2'}} in param_not_written_into_by_func()
59 initializer3(&p, 0); // expected-note{{Calling 'initializer3'}} in param_written_into_by_void_func()
79 initializer4(&p, 0); // expected-note{{Calling 'initializer4'}} in multi_init_tries_func()
81 initializer5(&p, 1); // expected-note{{Calling 'initializer5'}} in multi_init_tries_func()
113 initializer7(&local, 0); // expected-note{{Calling 'initializer7'}} in initialize_struct_field()
126 nullwriter(&p); // expected-note{{Calling 'nullwriter'}} in usage()
143 partial_initializer(&a); // expected-note{{Calling 'partial_initializer'}} in use_partial_initializer()
166 partial_nested_initializer(&localC); // expected-note{{Calling 'partial_nested_initializer'}} in use_partial_nested_initializer()
179 test_subregion_assignment(&c); // expected-note{{Calling 'test_subregion_assignment'}} in use_subregion_assignment()
[all …]
/llvm-project/compiler-rt/test/xray/TestCases/Posix/
H A Dtyped-event-logging.cpp12 printf("before calling the custom logging...\n"); in foo()
14 printf("after calling the custom logging...\n"); in foo()
23 // CHECK: before calling the custom logging... in main()
24 // CHECK-NEXT: after calling the custom logging... in main()
28 // CHECK-NEXT: before calling the custom logging... in main()
30 // CHECK-NEXT: after calling the custom logging... in main()
32 // CHECK-NEXT: before calling the custom logging... in main()
33 // CHECK-NEXT: after calling the custom logging... in main()
H A Dcustom-event-logging.cpp15 printf("before calling the custom logging...\n"); in foo()
17 printf("after calling the custom logging...\n"); in foo()
26 // CHECK: before calling the custom logging... in main()
27 // CHECK-NEXT: after calling the custom logging... in main()
32 // CHECK-NEXT: before calling the custom logging... in main()
35 // CHECK-NEXT: after calling the custom logging... in main()
40 // CHECK-NEXT: before calling the custom logging... in main()
41 // CHECK-NEXT: after calling the custom logging... in main()
/llvm-project/clang/test/Driver/
H A Dcl-cc-flags.c5 // CDECL: -fdefault-calling-conv=cdecl
8 // FASTCALL: -fdefault-calling-conv=fastcall
11 // STDCALL: -fdefault-calling-conv=stdcall
14 // VECTORCALL: -fdefault-calling-conv=vectorcall
17 // REGCALL: -fdefault-calling-conv=regcall
20 // REGCALL4: -fdefault-calling-conv=regcall
26 // LASTWINS_VECTOR: -fdefault-calling-conv=vectorcall
29 // LASTWINS_CDECL: -fdefault-calling-conv=cdecl
39 // UNAVAILABLE-NOT: -fdefault-calling-conv=
/llvm-project/clang/test/Analysis/
H A Dnumber-object-conversion.m16 …lue; instead, either compare the pointer to nil or compare the result of calling a method on 'NSNu…
24 …mber *' to a scalar integer value; did you mean to compare the result of calling a method on 'NSNu…
25 …'NSNumber *' to a primitive BOOL value; did you mean to compare the result of calling -boolValue?}}
26 …'NSNumber *' to a primitive BOOL value; did you mean to compare the result of calling -boolValue?}}
29 …'NSNumber *' to a primitive BOOL value; did you mean to compare the result of calling -boolValue?}}
30 …mber *' to a scalar integer value; did you mean to compare the result of calling a method on 'NSNu…
41 …garedNumber' to a primitive BOOL value; did you mean to compare the result of calling -boolValue?}}
58 …'NSNumber *' to a primitive BOOL value; did you mean to compare the result of calling -boolValue?}}
59 …'NSNumber *' to a primitive BOOL value; did you mean to compare the result of calling -boolValue?}}
60 …'NSNumber *' to a primitive BOOL value; did you mean to compare the result of calling -boolValue?}}
[all …]
/llvm-project/clang/test/CodeGen/
H A Dpreserve-call-conv.c8 // Check that the preserve_most calling convention attribute at the source level
9 // is lowered to the corresponding calling convention attrribute at the LLVM IR
15 // Check that the preserve_most calling convention attribute at the source level
16 // is lowered to the corresponding calling convention attrribute at the LLVM IR
22 // Check that the preserve_none calling convention attribute at the source level
23 // is lowered to the corresponding calling convention attrribute at the LLVM IR
/llvm-project/llvm/test/DebugInfo/PDB/
H A Dpdb-type-ref-stats.test12 CHECK: calling conv = cdecl, options = None
18 CHECK: calling conv = cdecl, options = None
26 CHECK: calling conv = cdecl, options = None
62 CHECK: calling conv = cdecl, options = constructor
67 CHECK: calling conv = cdecl, options = constructor
102 CHECK: calling conv = cdecl, options = constructor
158 CHECK: calling conv = cdecl, options = constructor
189 CHECK: calling conv = cdecl, options = constructor
193 CHECK: calling conv = cdecl, options = constructor
224 CHECK: calling conv = cdecl, options = constructor
[all …]

12345678910>>...101