| /llvm-project/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/ |
| H A D | noncopyable_return_type.pass.cpp | 45 std::function<NonCopyable()> f1a = []() { return NonCopyable(); }; in test() 46 std::function<NonCopyable()> f2a = +[]() { return NonCopyable(); }; in test() 47 std::function<NonCopyable()> f3a = LargeLambda(); in test() 48 std::function<NonCopyable()> f4a = std::ref(f1a); in test() 49 std::function<NonCopyable(int)> f1b = [](int) { return NonCopyable(); }; in test() 50 std::function<NonCopyable(int)> f2b = +[](int) { return NonCopyable(); }; in test() 51 std::function<NonCopyable(int)> f3b = LargeLambda(); in test() 52 std::function<NonCopyable(int)> f4b = std::ref(f1b); in test() 62 std::function<const NonCopyable()> f1a = []() { return NonCopyable(); }; in const_test() 63 std::function<const NonCopyable()> f2a = +[]() { return NonCopyable(); }; in const_test() [all …]
|
| /llvm-project/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
| H A D | deduct_ptr.pass.cpp | 35 std::function a = f0; in main() 36 ASSERT_SAME_TYPE(decltype(a), std::function<R()>); in main() 38 std::function b = &f0; in main() 39 ASSERT_SAME_TYPE(decltype(b), std::function<R()>); in main() 42 std::function c{f0}; in main() 43 ASSERT_SAME_TYPE(decltype(c), std::function<R()>); in main() 45 std::function d{&f0}; in main() 46 ASSERT_SAME_TYPE(decltype(d), std::function<R()>); in main() 50 std::function a = f1; in main() 51 ASSERT_SAME_TYPE(decltype(a), std::function<R(A1)>); in main() [all …]
|
| H A D | deduct_F.pass.cpp | 12 // function(F) -> function<see-below>; 55 std::function g0 = f0_##N{}; \ in main() 56 ASSERT_SAME_TYPE(decltype(g0), std::function<R()>); \ in main() 58 std::function g1 = f1_##N{}; \ in main() 59 ASSERT_SAME_TYPE(decltype(g1), std::function<R(A1)>); \ in main() 61 std::function g2 = f2_##N{}; \ in main() 62 ASSERT_SAME_TYPE(decltype(g2), std::function<R(A1, A2)>); \ in main() 64 std::function g3 = f3_##N{}; \ in main() 65 ASSERT_SAME_TYPE(decltype(g3), std::function< in main() [all...] |
| /llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_stacktrace_printer.cpp | 36 const char *StackTracePrinter::StripFunctionName(const char *function) { in StripFunctionName() argument 38 return function; in StripFunctionName() 39 if (!function) in StripFunctionName() 41 auto try_strip = [function](const char *prefix) -> const char * { in StripFunctionName() 43 if (!internal_strncmp(function, prefix, prefix_len)) in StripFunctionName() 44 return function + prefix_len; in StripFunctionName() 59 return function; in StripFunctionName() 72 static const char *DemangleFunctionName(const char *function) { in DemangleFunctionName() argument 74 return function; in DemangleFunctionName() 75 if (!function) in DemangleFunctionName() [all...] |
| /llvm-project/llvm/test/tools/llvm-xray/AArch64/ |
| H A D | extract-instrmap.test | 9 … CHECK-NEXT: - { id: 1, address: 0x420, function: 0x420, kind: function-enter, always-instrument: … 10 # CHECK-NEXT: - { id: 1, address: 0x440, function: 0x420, kind: function-exit, always-instrument: t… 11 … CHECK-NEXT: - { id: 2, address: 0x464, function: 0x464, kind: function-enter, always-instrument: … 12 # CHECK-NEXT: - { id: 2, address: 0x484, function: 0x464, kind: function-exit, always-instrument: t… 13 … CHECK-NEXT: - { id: 3, address: 0x4A8, function: 0x4A8, kind: function-enter, always-instrument: … 14 # CHECK-NEXT: - { id: 3, address: 0x4C8, function: 0x4A8, kind: function-exit, always-instrument: t… 21 …ANGLED-NEXT: - { id: 1, address: 0x420, function: 0x420, kind: function-enter, always-instrument: … 22 …MANGLED-NEXT: - { id: 1, address: 0x440, function: 0x420, kind: function-exit, always-instrument: … 23 …ANGLED-NEXT: - { id: 2, address: 0x464, function: 0x464, kind: function-enter, always-instrument: … 24 …MANGLED-NEXT: - { id: 2, address: 0x484, function: 0x464, kind: function-exit, always-instrument: … [all …]
|
| /llvm-project/lld/test/ELF/ |
| H A D | arm-cmse-diagnostics.s | 136 cmse_veneer entry, function, global, function, global 193 cmse_veneer valid_1, function, global, function, global 194 cmse_veneer valid_2, function, weak, function, weak 195 cmse_veneer valid_3, function, weak, function, global 196 cmse_veneer valid_4, function, global, function, weak 200 cmse_veneer invalid_1, function, global, object, global 201 cmse_veneer invalid_2, function, global, object, weak 203 cmse_veneer invalid_3, object, global, function, global 204 cmse_veneer invalid_4, object, global, function, weak 206 cmse_veneer invalid_5, function, local, function, global [all …]
|
| H A D | arm-cmse-implib.s | 19 .type secure_entry, %function 31 cmse_veneer foo, function, global, function, global 32 cmse_veneer bar, function, weak, function, global 33 cmse_no_veneer no_veneer1, function, weak, function, global 34 cmse_no_veneer no_veneer2, function, weak, function, weak 43 cmse_veneer baz, function, wea [all...] |
| /llvm-project/llvm/test/tools/llvm-xray/X86/ |
| H A D | convert-fdr-to-yaml.txt | 11 ; CHECK-NEXT: - { type: 0, func-id: 1, function: '1', cpu: 5, thread: 5, kind: function-enter, ts… 12 ; CHECK-NEXT: - { type: 0, func-id: 1, function: '1', cpu: 5, thread: 5, kind: function-exit, tsc… 13 ; CHECK-NEXT: - { type: 0, func-id: 2, function: '2', cpu: 5, thread: 5, kind: function-enter, ts… 14 ; CHECK-NEXT: - { type: 0, func-id: 3, function: '3', cpu: 5, thread: 5, kind: function-enter, ts… 15 ; CHECK-NEXT: - { type: 0, func-id: 3, function: '3', cpu: 5, thread: 5, kind: function-exit, tsc… 16 ; CHECK-NEXT: - { type: 0, func-id: 2, function: '2', cpu: 5, thread: 5, kind: function-exit, tsc… 17 ; CHECK-NEXT: - { type: 0, func-id: 4, function: '4', cpu: 5, thread: 5, kind: function-enter, ts… 18 ; CHECK-NEXT: - { type: 0, func-id: 5, function: '5', cpu: 5, thread: 5, kind: function-enter, ts… 19 ; CHECK-NEXT: - { type: 0, func-id: 5, function: '5', cpu: 5, thread: 5, kind: function-tail-exit… 20 … CHECK-NEXT: - { type: 0, func-id: 268435455, function: '268435455', cpu: 5, thread: 5, kind: fu… [all …]
|
| H A D | convert-with-debug-syms.txt | 12 ; CHECK-NEXT: - { type: 0, func-id: 3, function: main, cpu: 37, thread: 84697, kind: function-ent… 13 ; CHECK-NEXT: - { type: 0, func-id: 2, function: {{.*foo.*}}, cpu: 37, thread: 84697, kind: funct… 14 ; CHECK-NEXT: - { type: 0, func-id: 2, function: {{.*foo.*}}, cpu: 37, thread: 84697, kind: funct… 15 ; CHECK-NEXT: - { type: 0, func-id: 1, function: {{.*bar.*}}, cpu: 37, thread: 84697, kind: funct… 16 ; CHECK-NEXT: - { type: 0, func-id: 1, function: {{.*bar.*}}, cpu: 37, thread: 84697, kind: funct… 17 ; CHECK-NEXT: - { type: 0, func-id: 3, function: main, cpu: 37, thread: 84697, kind: function-exi… 30 ; MANGLED-NEXT: - { type: 0, func-id: 3, function: main, cpu: 37, thread: 84697, kind: function-e… 31 ; MANGLED-NEXT: - { type: 0, func-id: 2, function: _Z3foov, cpu: 37, thread: 84697, kind: functio… 32 ; MANGLED-NEXT: - { type: 0, func-id: 2, function: _Z3foov, cpu: 37, thread: 84697, kind: functio… 33 ; MANGLED-NEXT: - { type: 0, func-id: 1, function: _Z3barv, cpu: 37, thread: 84697, kind: functio… [all …]
|
| H A D | convert-basic-log-version3-to-yaml.txt | 11 ; CHECK-NEXT: - { type: 0, func-id: 1, function: '1', cpu: 7, thread: 25518, process: 25518, kind… 12 ; CHECK-NEXT: - { type: 0, func-id: 1, function: '1', cpu: 7, thread: 25518, process: 25518, kind… 13 ; CHECK-NEXT: - { type: 0, func-id: 2, function: '2', cpu: 7, thread: 25518, process: 25518, kind… 14 ; CHECK-NEXT: - { type: 0, func-id: 2, function: '2', cpu: 7, thread: 25518, process: 25518, kind… 15 ; CHECK-NEXT: - { type: 0, func-id: 1, function: '1', cpu: 7, thread: 25518, process: 25518, kind… 16 ; CHECK-NEXT: - { type: 0, func-id: 1, function: '1', cpu: 7, thread: 25518, process: 25518, kind… 17 ; CHECK-NEXT: - { type: 0, func-id: 2, function: '2', cpu: 7, thread: 25518, process: 25518, kind… 18 ; CHECK-NEXT: - { type: 0, func-id: 2, function: '2', cpu: 7, thread: 25518, process: 25518, kind…
|
| /llvm-project/compiler-rt/lib/builtins/riscv/ |
| H A D | restore.S | 28 .type __riscv_restore_12,@function 35 .type __riscv_restore_11,@function 37 .type __riscv_restore_10,@function 39 .type __riscv_restore_9,@function 41 .type __riscv_restore_8,@function 54 .type __riscv_restore_7,@function 56 .type __riscv_restore_6,@function 58 .type __riscv_restore_5,@function 60 .type __riscv_restore_4,@function 73 .type __riscv_restore_3,@function [all...] |
| H A D | save.S | 24 .type __riscv_save_12,@function 32 .type __riscv_save_11,@function 34 .type __riscv_save_10,@function 36 .type __riscv_save_9,@function 38 .type __riscv_save_8,@function 53 .type __riscv_save_7,@function 55 .type __riscv_save_6,@function 57 .type __riscv_save_5,@function 59 .type __riscv_save_4,@function 79 .type __riscv_save_3,@function [all...] |
| /llvm-project/clang/test/Parser/ |
| H A D | pragma-attribute.cpp | 3 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = function) 5 void function(); 9 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(is_parameter), function)) 19 #pragma clang attribute push (__attribute__((abi_tag("a"))) apply_to=function) // expected-error {{expected ','}} 20 #pragma clang attribute push (__attribute__((abi_tag("a"))) = function) // expected-error {{expected ','}} 21 #pragma clang attribute push (__attribute__((abi_tag("a"))) any(function)) // expected-error {{expected ','}} 24 #pragma clang attribute push (__attribute__((abi_tag("a"))) function) // expected-error {{expected ','}} 25 #pragma clang attribute push (__attribute__((abi_tag("a"))) (function)) // expected-error {{expected ','}} 28 #pragma clang attribute push(__attribute__((annotate("test"))), = any(function)) // expected-error {{expected attribute subject set specifier 'apply_to'}} 29 #pragma clang attribute push(__attribute__((annotate("test"))), = function) // expecte [all...] |
| H A D | skip-function-bodies.mm | 1 #include "skip-function-bodies.h" 31 // CHECK: skip-function-bodies.mm:3:7: ClassDecl=A:3:7 (Definition) Extent=[3:1 - 14:2] 32 // CHECK: skip-function-bodies.mm:4:9: ClassDecl=B:4:9 (Definition) Extent=[4:3 - 4:13] 33 // CHECK: skip-function-bodies.mm:6:1: CXXAccessSpecifier=:6:1 (Definition) Extent=[6:1 - 6:8] 34 // CHECK: skip-function-bodies.mm:7:3: CXXConstructor=A:7:3 (default constructor) Extent=[7:3 - 7:6] 35 // CHECK-NOT: skip-function-bodies.mm:8:12: StructDecl=C:8:12 (Definition) Extent=[8:5 - 10:6] 36 // CHECK-NOT: skip-function-bodies.mm:9:12: CXXMethod=d:9:12 (Definition) Extent=[9:7 - 9:18] 37 // CHECK: skip-function-bodies.mm:13:13: TypedefDecl=E:13:13 (Definition) Extent=[13:3 - 13:14] 38 // CHECK: skip-function-bodies.mm:13:11: TypeRef=class A::B:4:9 Extent=[13:11 - 13:12] 39 // CHECK: skip-function-bodies.mm:16:12: ObjCInterfaceDecl=F:16:12 Extent=[16:1 - 18:5] [all …]
|
| /llvm-project/llvm/test/tools/llvm-xray/ARM/ |
| H A D | extract-instrmap.test | 132 …CHECK-NEXT: - { id: 1, address: 0x12B0, function: 0x12B0, kind: function-enter, always-instrument:… 133 …CHECK-NEXT: - { id: 1, address: 0x12CC, function: 0x12B0, kind: function-exit, always-instrument: … 134 …CHECK-NEXT: - { id: 2, address: 0x12EC, function: 0x12EC, kind: function-enter, always-instrument:… 135 …CHECK-NEXT: - { id: 2, address: 0x1308, function: 0x12EC, kind: function-exit, always-instrument: … 136 …CHECK-NEXT: - { id: 3, address: 0x1328, function: 0x1328, kind: function-enter, always-instrument:… 137 …CHECK-NEXT: - { id: 3, address: 0x1344, function: 0x1328, kind: function-exit, always-instrument: … 143 …NGLED-NEXT: - { id: 1, address: 0x12B0, function: 0x12B0, kind: function-enter, always-instrument:… 144 …NGLED-NEXT: - { id: 1, address: 0x12CC, function: 0x12B0, kind: function-exit, always-instrument: … 145 …NGLED-NEXT: - { id: 2, address: 0x12EC, function: 0x12EC, kind: function-enter, always-instrument:… 146 …NGLED-NEXT: - { id: 2, address: 0x1308, function: 0x12EC, kind: function-exit, always-instrument: … [all …]
|
| /llvm-project/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.inv/ |
| H A D | invoke.pass.cpp | 58 std::function<int ()> r1(f_int_0); in test_int_0() 64 std::function<int ()> r1(fp); in test_int_0() 70 std::function<int ()> r1(a0); in test_int_0() 94 std::function<void ()> r1(f_void_0); in test_void_0() 102 std::function<void ()> r1(fp); in test_void_0() 110 std::function<void ()> r1(a0); in test_void_0() 141 std::function<void (int)> r1(f_void_1); in test_void_1() 150 std::function<void (int)> r1(fp); in test_void_1() 159 std::function<void (int)> r1(a0); in test_void_1() 168 std::function<void (A_void_1)> r1(fp); in test_void_1() [all …]
|
| /llvm-project/clang/test/CXX/temp/temp.decls/temp.variadic/ |
| H A D | example-function.cpp | 7 template<typename Signature> class function; 28 class function<R (Args...)> { class 31 function() : invoker (0) { } in function() function in function 32 function(const function& other) : invoker(0) { in function() function in function 37 template<typename F> function(const F& f) : invoker(0) { in function() function in function 41 ~function() { in ~function() 46 function& operator=(const function& other) { in operator =() 47 function(other).swap(*this); in operator =() 52 function& operator=(const F& f) { in operator =() 53 function(f).swap(*this); in operator =() [all …]
|
| /llvm-project/openmp/runtime/src/include/ |
| H A D | omp_lib.F90.var | 228 function omp_get_num_threads() bind(c) 231 end function omp_get_num_threads 233 function omp_get_max_threads() bind(c) 236 end function omp_get_max_threads 238 function omp_get_thread_num() bind(c) 241 end function omp_get_thread_num 243 function omp_get_num_procs() bind(c) 246 end function omp_get_num_procs 248 function omp_in_parallel() bind(c) 251 end function omp_in_paralle [all...] |
| H A D | omp_lib.h.var | 293 function omp_get_num_threads() bind(c) 296 end function omp_get_num_threads 298 function omp_get_max_threads() bind(c) 301 end function omp_get_max_threads 303 function omp_get_thread_num() bind(c) 306 end function omp_get_thread_num 308 function omp_get_num_procs() bind(c) 311 end function omp_get_num_procs 313 function omp_in_parallel() bind(c) 316 end function omp_in_paralle [all...] |
| /llvm-project/llvm/test/MC/ARM/ |
| H A D | thumb-8-bit-relocs.s | 10 .type function,%function 11 function: label 15 .type external,%function 17 .type test,%function 19 movs r3, :upper8_15:function 20 adds r3, :upper0_7:function 21 adds r3, :lower8_15:function 22 adds r3, :lower0_7:function 25 @ CHECK: movs r3, :upper8_15:function 26 @ CHECK: adds r3, :upper0_7:function [all …]
|
| /llvm-project/llvm/test/Verifier/ |
| H A D | invalid-patchable-function-entry.ll | 3 ; CHECK: "patchable-function-entry" takes an unsigned integer: 4 ; CHECK: "patchable-function-entry" takes an unsigned integer: a 5 ; CHECK: "patchable-function-entry" takes an unsigned integer: -1 6 ; CHECK: "patchable-function-entry" takes an unsigned integer: 3, 8 define void @f() "patchable-function-entry" { ret void } 9 define void @fa() "patchable-function-entry"="a" { ret void } 10 define void @f_1() "patchable-function-entry"="-1" { ret void } 11 define void @f3comma() "patchable-function-entry"="3," { ret void } 13 ; CHECK: "patchable-function-prefix" takes an unsigned integer: 14 ; CHECK: "patchable-function-prefix" takes an unsigned integer: a [all …]
|
| /llvm-project/llvm/include/llvm/Passes/ |
| H A D | PassBuilder.h | 82 /// Tuning option to enable/disable function merging. Its default value is 93 // stale/imprecise but still valid. Currently this invalidates all function 94 // analyses after various module->function or cgscc->function adaptors in the 156 /// Registers all available function analysis passes. 159 /// FunctionAnalysisManager with all registered function analyses. Callers can 171 /// Registers all available machine function analysis passes. 174 /// MachineFunctionAnalysisManager with all registered function analyses. 179 /// Construct the core LLVM function canonicalization and simplification 182 /// This is a long pipeline and uses most of the per-function optimizatio [all...] |
| /llvm-project/llvm/test/Other/ |
| H A D | new-pm-print-pipeline.ll | 3 ; RUN: opt -disable-output -disable-verify -print-pipeline-passes -passes='function(adce),function(adce)' < %s | FileCheck %s --match-full-lines --check-prefixes=CHECK-0 4 ; CHECK-0: function(adce),function(adce) 6 ; RUN: opt -disable-output -disable-verify -print-pipeline-passes -passes='module(rpo-function-attrs,require<globals-aa>,function(float2int,lower-constant-intrinsics,loop(loop-rotate)),invalidate<globals-aa>)' < %s | FileCheck %s --match-full-lines --check-prefixes=CHECK-1 7 ; CHECK-1: rpo-function-attrs,require<globals-aa>,function(float2int,lower-constant-intrinsics,loop(loop-rotate<header-duplication;no-prepare-for-lto>)),invalidate<globals-aa> 10 ; RUN: opt -o /dev/null -disable-verify -print-pipeline-passes -passes='function(mem2reg)' < %s -disable-pipeline-verification | FileCheck %s --match-full-lines --check-prefixes=CHECK-3 11 ; CHECK-3: function(mem2re [all...] |
| H A D | pass-pipeline-parsing.ll | 14 ; RUN: -passes=no-op-function,no-op-function %s 2>&1 \ 20 ; RUN: -passes='function(no-op-function,no-op-function)' %s 2>&1 \ 26 ; RUN: -passes='no-op-module,function(no-op-function,no-op-function),no-op-module' %s 2>&1 \ 60 ; RUN: not opt -passes='function<no-rerun>(no-op-function)' [all...] |
| /llvm-project/clang/test/FixIt/ |
| H A D | fixit-pragma-attribute.cpp | 10 …__attribute__((annotate("test"))), apply_to = any( enum, function, function, namespace, function )) 14 …__attribute__((annotate("test"))), apply_to = any( variable(is_global), function, variable(is_glob… 18 …uleContradictions"))), apply_to = any(variable, variable(is_parameter), function(is_member), varia… 24 …(__attribute__((annotate("subRuleContradictions2"))), apply_to = any(function(is_member),function)) 33 …ply_to = any(variable(unless(is_parameter)), variable(is_thread_local), function, variable(is_glob… 43 #pragma clang attribute push (__attribute__((abi_tag("a"))) apply_to=function) 45 #pragma clang attribute push (__attribute__((abi_tag("a"))) = function) 47 #pragma clang attribute push (__attribute__((abi_tag("a"))) any(function)) 52 #pragma clang attribute push (__attribute__((abi_tag("a"))) function) 54 #pragma clang attribute push (__attribute__((abi_tag("a"))) (function)) [all …]
|