Home
last modified time | relevance | path

Searched refs:ctor (Results 1 – 25 of 89) sorted by relevance

1234

/llvm-project-15.0.7/clang/test/CXX/special/class.temporary/
H A Dp6.cpp20 dtor ctor();
22 auto &&lambda = [a = {ctor()}] {}; in __anonda880da10102()
35 auto &&x = ctor(); in ref_binding()
46 auto &&x = ctor(); in parens()
58 auto &&x = T{ctor()}[0]; in array_subscript_1()
68 auto &&x = ((dtor*)T{ctor()})[0]; in array_subscript_2()
82 auto &&x = with_member{ctor()}.d; in member_access_1()
170 auto &&x = (dtor&&)ctor(); in c_style_cast()
180 auto &&x = R(ctor()); in function_style_cast()
192 auto &&x = b ? (dtor&&)ctor() : (dtor&&)ctor(); in conditional()
[all …]
/llvm-project-15.0.7/lld/test/wasm/
H A Dctor-no-gc.test1 ; Like ctor-gc-setup.test, but it calls a different function, so it does pull
2 ; in the object containing `ctor`, so `ctor` is linked in.
4 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-ctor.s -o %t.ctor.o
5 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-lib.s -o %t.lib.o
6 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-setup-call-def.s -o %t.s…
8 ; RUN: llvm-ar rcs %t.lib.a %t.lib.o %t.ctor.o
H A Dctor-gc-setup.test1 ; Like ctor-gc.test, but main object calls a function from its constructor,
2 ; which shouldn't matter; `ctor` shouldn't be pulled in.
4 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-ctor.s -o %t.ctor.o
5 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-lib.s -o %t.lib.o
6 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-setup.s -o %t.setup.o
8 ; RUN: llvm-ar rcs %t.lib.a %t.lib.o %t.ctor.o
H A Dctor-gc.test4 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-ctor.s -o %t.ctor.o
5 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-lib.s -o %t.lib.o
6 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-start.s -o %t.start.o
8 ; RUN: llvm-ar rcs %t.lib.a %t.lib.o %t.ctor.o
H A Dinit-fini.ll2 ; RUN: llc -filetype=obj %S/Inputs/global-ctor-dtor.ll -o %t.global-ctor-dtor.o
54 ; RUN: wasm-ld --allow-undefined %t.o %t.global-ctor-dtor.o -o %t.wasm
135 ; RUN: wasm-ld -r %t.o %t.global-ctor-dtor.o -o %t.reloc.wasm
/llvm-project-15.0.7/clang/test/CXX/expr/expr.unary/expr.new/
H A Dp17.cpp3 class ctor { class
4 ctor(); // expected-note{{implicitly declared private here}}
12 new ctor[0]; // expected-error{{calling a private constructor of class 'ctor'}} in test()
/llvm-project-15.0.7/llvm/test/Transforms/GlobalOpt/
H A Dpr53002.ll11 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
15 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
17 define internal void @ctor() {
18 ; CHECK-LABEL: @ctor(
H A Damdgcn-ctor-alloca.ll8 [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
10 ; CHECK-NOT: @ctor
11 define internal void @ctor() {
H A Dint_sideeffect.ll9 …bal [1 x { i32, void ()*, i8* }] [ { i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null } ]
12 define internal void @ctor() {
H A Dpr52994.ll6 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
14 define internal void @ctor() {
H A Devaluate-load-uniform.ll9 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
16 define internal void @ctor() {
H A Dpr51879.ll9 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
16 define internal void @ctor() {
/llvm-project-15.0.7/flang/test/Semantics/
H A Dresolve22.f9041 procedure ctor
44 function ctor() function
45 type(t2) ctor local
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dforwarding-reference-overload.rst20 // C1: perfect forwarding ctor
24 // C2: perfect forwarding ctor with parameter default value
28 // C3: perfect forwarding ctor guarded with enable_if
32 // C4: variadic perfect forwarding ctor guarded with enable_if
37 // (possibly compiler generated) copy ctor
/llvm-project-15.0.7/lld/test/ELF/lto/
H A Dltopasses-basic.ll9 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
10 define void @ctor() {
14 ; `@ctor` doesn't do anything and so the optimizer should kill it, leaving no ctors
H A Dctors.ll9 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
10 define void @ctor() {
H A Dlinkage.ll13 …lobal [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
14 define internal void @ctor() {
/llvm-project-15.0.7/clang/test/CXX/class/class.union/
H A Dp1.cpp41 Ctor ctor; // expected-error {{union member 'ctor' has a non-trivial default constructor}} member
58 …Ctor ctor; // expected-note {{because field of type 'Ctor' has a user-provided default constructor… member
128 Either<int,Ctor> ctor(0); // expected-note {{in instantiation of template}} in fred() local
/llvm-project-15.0.7/lld/test/wasm/Inputs/
H A Dctor-setup.s1 # Like Inputs/ctor-start.s, except it calls `lib_func` from a ctor
H A Dctor-setup-call-def.s1 # Like Inputs/ctor-setup.s, except it calls `def` instead of `lib_func`,
2 # so it pulls in the .o file containing `ctor`.
/llvm-project-15.0.7/llvm/test/CodeGen/NVPTX/
H A Dglobal-ctor.ll3 ; Check that llc dies when given a nonempty global ctor.
6 ; CHECK: ERROR: Module has a nontrivial global ctor
/llvm-project-15.0.7/llvm/test/Demangle/
H A Dms-operators.test168 ; CHECK: void __thiscall SomeTemplate<int>::`default ctor closure'(void)
174 ; CHECK: void __cdecl `vector ctor iterator'(void *, unsigned __int64, unsigned __int64, void * (__…
180 ; CHECK: virtual void * __cdecl Base::`vector vbase ctor iterator'(unsigned int)
186 ; CHECK: virtual void * __cdecl Base::`eh vector ctor iterator'(unsigned int)
192 ; CHECK: virtual void * __cdecl Base::`eh vector vbase ctor iterator'(unsigned int)
195 ; CHECK: void __thiscall SomeTemplate<int>::`copy ctor closure'(void)
201 ; CHECK: void __cdecl Derived::`local vftable ctor closure'(void)
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_threadprivate.cpp369 if (d_tn->ct.ctor != 0) { in kmp_threadprivate_insert()
473 if (d_tn->ct.ctor != 0) { in kmp_threadprivate_insert()
474 (void)(*d_tn->ct.ctor)(tn->par_addr); in kmp_threadprivate_insert()
504 void __kmpc_threadprivate_register(ident_t *loc, void *data, kmpc_ctor ctor, in __kmpc_threadprivate_register() argument
522 d_tn->ct.ctor = ctor; in __kmpc_threadprivate_register()
747 kmpc_ctor_vec ctor, kmpc_cctor_vec cctor, in __kmpc_threadprivate_register_vec() argument
767 d_tn->ct.ctorv = ctor; in __kmpc_threadprivate_register_vec()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold.cpp69 StructureConstructor ctor{structure.derivedTypeSpec()}; in FoldOperation() local
94 ctor.Add(symbol, std::move(expr)); in FoldOperation()
97 return Expr<SomeDerived>{Constant<SomeDerived>{std::move(ctor)}}; in FoldOperation()
99 return Expr<SomeDerived>{std::move(ctor)}; in FoldOperation()
/llvm-project-15.0.7/llvm/test/Transforms/TailCallElim/
H A Dbasic.ll166 declare void @ctor(%struct.X*)
174 call void @ctor(%struct.X* %agg.result)
175 ; CHECK: tail call void @ctor
179 call void @ctor(%struct.X* %x)
180 ; CHECK: call void @ctor

1234