Home
last modified time | relevance | path

Searched refs:Wrapper (Results 1 – 25 of 113) sorted by relevance

12345

/llvm-project/llvm/unittests/ADT/
H A DImmutableListTest.cpp16 template <typename Fundamental> struct Wrapper : llvm::FoldingSetNode { struct
19 Wrapper(Fundamental F) : F(F) {} in Wrapper() argument
28 void concat(const ImmutableList<Wrapper<char>> &L, char *Buffer) { in concat()
30 for (ImmutableList<Wrapper<char>>::iterator It = L.begin(), End = L.end(); in concat()
38 ImmutableList<Wrapper<int>>::Factory f; in TEST_F()
44 ImmutableList<Wrapper<int>> L = f.getEmptyList(); in TEST_F()
51 ImmutableList<Wrapper<int>>::Factory f; in TEST_F()
52 ImmutableList<Wrapper<int>> L = f.getEmptyList(); in TEST_F()
54 ImmutableList<Wrapper<int>> L2 = f.add(3, L); in TEST_F()
70 ImmutableList<Wrapper<int>> L3 = f.add(2, L); in TEST_F()
[all …]
/llvm-project/clang/test/AST/
H A Dast-print-out-of-line-func.cpp5 struct Wrapper { struct
20 operator ns::Wrapper(); argument
25 Wrapper::Inner::Inner() { } in Inner()
28 void Wrapper::Inner::operator +=(int) { } in operator +=()
33 ns::Wrapper::Inner::Inner(int) { } in Inner()
36 ns::Wrapper::Inner::~Inner() { } in ~Inner()
40 void ::ns::Wrapper::Inner::member() { } in member()
43 ns::Wrapper::Inner::operator int() { return 0; } in operator int()
46 ns::Wrapper::Inner::operator ::ns::Wrapper() { return ns::Wrapper(); } in operator ::ns::Wrapper()
51 void Wrapper::Inner::staticMember() { } in staticMember()
/llvm-project/clang/test/Analysis/diagnostics/
H A Dderef-track-symbolic-region.cpp46 struct Wrapper {char c; int *ptr; }; in testMemberNullPointerDeref() argument
47Wrapper w = {'a', nullptr}; // expected-note {{'w.ptr' initialized to a null pointer val… in testMemberNullPointerDeref()
53 struct Wrapper {char c; int &ref; }; in testMemberNullReferenceDeref() argument
54Wrapper w = {.c = 'a', .ref = *(int *)0 }; // expected-note {{'w.ref' initialized to a null pointe… in testMemberNullReferenceDeref()
62 struct Wrapper {char c; int *&a;}; in testReferenceToPointerWithNullptr() argument
63 Wrapper w {'c', i}; // expected-note{{'w.a' initialized here}} in testReferenceToPointerWithNullptr()
69 struct Wrapper {char c; int *&a;}; in testNullReferenceToPointer() struct
70Wrapper w {'c', *(int **)0 }; // expected-note{{'w.a' initialized to a null pointer valu… in testNullReferenceToPointer()
/llvm-project/clang/test/Analysis/inlining/
H A Dpath-notes.cpp93 class Wrapper { class
112 Wrapper w; in testDefaultConstruction()
117 void testCopyConstruction(const Wrapper &input) { in testCopyConstruction()
120 Wrapper w{input}; in testCopyConstruction()
132 void testCopyAssignment(const Wrapper &input) { in testCopyAssignment()
133 Wrapper w; in testCopyAssignment()
150 Wrapper w; in testDestruction()
226 struct Wrapper { struct
229 Wrapper *arr;
242 Owner::Wrapper *arr; // expected-note {{'arr' declared without an initial value}} in testGetDerefExprOnMemberExprWithADot() argument
/llvm-project/clang/test/SemaCXX/
H A Dcxx23-invalid-constexpr.cpp58 struct Wrapper { struct
59 constexpr Wrapper() = default;
60 constexpr Wrapper(Wrapper const&) = default;
61 constexpr Wrapper(T const& t) : t(t) { } in Wrapper() argument
62 constexpr Wrapper(Wrapper &&) = default;
64 constexpr bool operator==(Wrapper const&) const = default; argument
117 Wrapper<X> x; in test()
122 // static_assert((Wrapper< in test()
69 tWrapper global() argument
[all...]
H A Dwarn-infinite-recursion.cpp153 struct Wrapper { struct
158 return Wrapper<x/2>::run(); in run()
168 return Wrapper<x>::run() + in test_wrapper() argument
169 Wrapper<x>::run2(); // expected-note{{instantiation}} in test_wrapper()
/llvm-project/clang/test/Analysis/
H A Dinitializer.cpp113 class Wrapper { class
117 Wrapper();
120 Wrapper::Wrapper() /* initializers synthesized */ {} in Wrapper() function in DefaultConstructorWithCleanups::Wrapper
123 Wrapper w; in test()
129 struct Wrapper { struct
132 Wrapper() {} in Wrapper() argument
133 Wrapper(int x) : value(x) {} in Wrapper() argument
134 Wrapper(bool) {} in Wrapper() argument
138 Wrapper w in test()
130 valueDefaultMemberInitializers::Wrapper global() argument
[all...]
H A Dzero-size-non-pod-array.cpp145 struct Wrapper{ struct
154 Wrapper W; in zeroSizeArrayMember() argument
166 Wrapper W; in zeroSizeArrayMemberCopyMove()
167 Wrapper W2 = W; in zeroSizeArrayMemberCopyMove()
168 Wrapper W3 = (Wrapper&&) W2; in zeroSizeArrayMemberCopyMove()
H A Dtrivial-copy-struct.cpp81 struct Wrapper { struct
87 Wrapper* w = 0; in nestedLazyCompoundVal() argument
89 Wrapper lw; in nestedLazyCompoundVal()
91 w = new Wrapper(lw); in nestedLazyCompoundVal()
H A Dcall-invalidation.cpp39 struct Wrapper {
43 void useStruct(Wrapper &w);
44 void useConstStruct(const Wrapper &w);
48 Wrapper w; in testPointerStruct()
38 struct Wrapper { global() struct
42 ptrWrapper global() argument
/llvm-project/llvm/lib/ExecutionEngine/OProfileJIT/
H A DOProfileJITEventListener.cpp39 std::unique_ptr<OProfileWrapper> Wrapper; member in __anon9faf91410111::OProfileJITEventListener
46 : Wrapper(std::move(LibraryWrapper)) { in OProfileJITEventListener()
59 if (!Wrapper->op_open_agent()) { in initialize()
69 if (Wrapper->isAgentAvailable()) { in ~OProfileJITEventListener()
70 if (Wrapper->op_close_agent() == -1) { in ~OProfileJITEventListener()
83 if (!Wrapper->isAgentAvailable()) { in notifyObjectLoaded()
107 if (Wrapper->op_write_native_code(Name.data(), Addr, (void *)Addr, Size) == in notifyObjectLoaded()
130 if (Wrapper->op_write_debug_line_info((void *)Addr, num_entries, in notifyObjectLoaded()
143 if (Wrapper->isAgentAvailable()) { in notifyFreeingObject()
162 if (Wrapper->op_unload_native_code(Addr) == -1) { in notifyFreeingObject()
/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp112 Function *Wrapper = Function::Create(Ty, Function::PrivateLinkage, in createWrapper() local
114 Wrapper->setAttributes(F->getAttributes()); in createWrapper()
115 BasicBlock *BB = BasicBlock::Create(M->getContext(), "body", Wrapper); in createWrapper()
120 Function::arg_iterator AI = Wrapper->arg_begin(); in createWrapper()
121 Function::arg_iterator AE = Wrapper->arg_end(); in createWrapper()
202 Wrapper->eraseFromParent(); in createWrapper()
203 Wrapper = Function::Create(Ty, Function::PrivateLinkage, in createWrapper()
205 Wrapper->setAttributes(F->getAttributes()); in createWrapper()
206 BasicBlock *BB = BasicBlock::Create(M->getContext(), "body", Wrapper); in createWrapper()
208 Wrapper in createWrapper()
275 Function *Wrapper = Pair.first->second; runOnModule() local
[all...]
/llvm-project/clang/test/Misc/
H A Ddiag-template-diffing-cxx11.cpp1104 struct Wrapper {};
1107 Wrapper<T> MakeWrapper();
1110 Wrapper<S<ptr>> W = MakeWrapper<S<&global>>();
1112 // CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<S<&global>>' to 'Wrapper<S<ptr aka nullptr>>'
1115 Wrapper<S<(&global2)>> W2 = MakeWrapper<S<&global>>();
1116 // CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<S<&global>>' to 'Wrapper<S<&global2>>'
1117 Wrapper<S<&global2>> W3 = MakeWrapper<S<(&global)>>();
1118 // CHECK-ELIDE-NOTREE: no viable conversion from 'Wrapper<
[all...]
/llvm-project/clang/test/SemaObjCXX/
H A Dpointer-to-objc-pointer-conv.mm29 class Wrapper {
39 Wrapper &operator*();
40 Wrapper &operator[](int);
41 Wrapper& operator->*(int);
48 Wrapper w;
/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/
H A DIntelJITEventListener.cpp49 IntelIttnotifyInfo(IntelJITEventsWrapper &Wrapper) in IntelIttnotifyInfo() argument
50 : ModuleObject(NULL), WrapperRef(Wrapper){}; in IntelIttnotifyInfo()
124 std::unique_ptr<IntelJITEventsWrapper> Wrapper; member in __anon37b0802e0111::IntelJITEventListener
137 Wrapper.reset(libraryWrapper); in IntelJITEventListener()
161 IntelJITEventsWrapper& Wrapper, in FunctionDescToIntelJITFormat() argument
168 Result.method_id = Wrapper.iJIT_GetNewMethodID(); in FunctionDescToIntelJITFormat()
201 std::make_unique<IntelIttnotifyInfo>(*Wrapper); in notifyObjectLoaded()
211 Wrapper->iJitIttNotifyInfo(llvm::LoadBinaryModule, in notifyObjectLoaded()
290 FunctionDescToIntelJITFormat(*Wrapper, Name->data(), Addr, Size); in notifyObjectLoaded()
323 Wrapper->iJIT_NotifyEvent(iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED, in notifyObjectLoaded()
[all …]
/llvm-project/clang/test/Modules/
H A DReachability-template-instantiation.cpp17 class Wrapper { class
40 Wrapper<T> value;
45 Wrapper<T> wrapper;
56 Wrapper<T> value;
/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/
H A Dcopy_move.pass.cpp116 struct run_move<Wrapper<T>>
125 Size n, Wrapper<T> trash) in operator ()()
133 OutputIterator2 expected_last, Size size, Size n, Wrapper<T> trash) in operator ()()
141 … OutputIterator out_last, OutputIterator2, OutputIterator2, Size size, Size, Wrapper<T> trash) in operator ()()
145 Wrapper<T>::SetMoveCount(0); in operator ()()
151 EXPECT_TRUE(Wrapper<T>::MoveCount() == size, "wrong effect from move"); in operator ()()
189 …test<Wrapper<float64_t>>(Wrapper<float64_t>(-666.0), [](int32_t j) { return Wrapper<float64_t>(j);… in main()
/llvm-project/llvm/test/Transforms/GlobalOpt/
H A Dstatic-const-bitcast.ll5 %struct.A = type { %class.Wrapper }
6 %class.Wrapper = type { i32 }
8 $Wrapper = comdat any
11 ; CHECK: @kA = internal unnamed_addr constant %struct.A { %class.Wrapper { i32 1036831949 } }, alig…
24 call void @Wrapper(ptr @kA, float 0x3FB99999A0000000)
29 define linkonce_odr dso_local void @Wrapper(ptr %this, float %x) unnamed_addr #0 comdat align 2 {
/llvm-project/clang/test/SemaTemplate/
H A Dpartial-spec-instantiate.cpp66 struct Wrapper { struct
70 Wrapper(const Wrapper<U>& other, in Wrapper() argument
73 explicit Wrapper(int i) {} in Wrapper() argument
89 void takesWrapperInContainer(const Container< Wrapper<int> >& c);
/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DJITLoaderVTune.cpp26 static std::unique_ptr<IntelJITEventsWrapper> Wrapper; member in __anonc6f805f40111::JITEventWrapper
28 std::unique_ptr<IntelJITEventsWrapper> JITEventWrapper::Wrapper; member in __anonc6f805f40111::JITEventWrapper
78 JITEventWrapper::Wrapper->iJIT_NotifyEvent( in registerJITLoaderVTuneRegisterImpl()
88 JITEventWrapper::Wrapper->iJIT_NotifyEvent( in registerJITLoaderVTuneUnregisterImpl()
97 if (!JITEventWrapper::Wrapper) in llvm_orc_registerVTuneImpl()
98 JITEventWrapper::Wrapper.reset(new IntelJITEventsWrapper); in llvm_orc_registerVTuneImpl()
179 JITEventWrapper::Wrapper.reset(new IntelJITEventsWrapper( in llvm_orc_test_registerVTuneImpl()
/llvm-project/clang/test/ASTMerge/var-cpp/
H A Dtest.cpp7 static_assert(Wrapper<int>::my_const<float> == 1.f);
8 static_assert(Wrapper<char>::my_const<const float *> == nullptr);
9 static_assert(Wrapper<float>::my_const<const char *> == a);
/llvm-project/clang/test/CXX/temp/temp.arg/temp.arg.template/
H A Dp3-2a.cpp73 template<template<True T> typename Wrapper>
74 using Test = Wrapper<int>;
76 template<template<False T> typename Wrapper> // #TTP-Wrapper
77 using Test = Wrapper<int>; // expected-error {{constraints not satisfied for template template para…
/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DCSEInfo.h226 GISelCSEAnalysisWrapper Wrapper;
234 const GISelCSEAnalysisWrapper &getCSEWrapper() const { return Wrapper; }
235 GISelCSEAnalysisWrapper &getCSEWrapper() { return Wrapper; }
240 Wrapper.releaseMemory();
241 Wrapper.setComputed(false);
223 GISelCSEAnalysisWrapper Wrapper; global() variable
H A DGISelChangeObserver.h136 RAIIMFObsDelInstaller(MachineFunction &MF, GISelObserverWrapper &Wrapper)
137 : DelI(MF, &Wrapper), ObsI(MF, Wrapper) {}
134 RAIIMFObsDelInstaller(MachineFunction & MF,GISelObserverWrapper & Wrapper) RAIIMFObsDelInstaller() argument
/llvm-project/clang/test/Index/Core/
H A Dindex-source.cpp64 class Wrapper {}; class
66 class Wrapper<T(P)> {}; class
69 void test1(Wrapper<void(int)> f);
71 void test1(Wrapper<void(int)> f) {} in test1()

12345