/llvm-project/llvm/unittests/ADT/ |
H A D | ImmutableListTest.cpp | 16 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 D | ast-print-out-of-line-func.cpp | 5 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 D | deref-track-symbolic-region.cpp | 46 struct Wrapper {char c; int *ptr; }; in testMemberNullPointerDeref() argument 47 …Wrapper 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 54 …Wrapper 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 70 …Wrapper w {'c', *(int **)0 }; // expected-note{{'w.a' initialized to a null pointer valu… in testNullReferenceToPointer()
|
/llvm-project/clang/test/Analysis/inlining/ |
H A D | path-notes.cpp | 93 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 D | cxx23-invalid-constexpr.cpp | 58 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 D | warn-infinite-recursion.cpp | 153 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 D | initializer.cpp | 113 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 D | zero-size-non-pod-array.cpp | 145 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 D | trivial-copy-struct.cpp | 81 struct Wrapper { struct 87 Wrapper* w = 0; in nestedLazyCompoundVal() argument 89 Wrapper lw; in nestedLazyCompoundVal() 91 w = new Wrapper(lw); in nestedLazyCompoundVal()
|
H A D | call-invalidation.cpp | 39 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 D | OProfileJITEventListener.cpp | 39 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 D | WebAssemblyFixFunctionBitcasts.cpp | 112 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 D | diag-template-diffing-cxx11.cpp | 1104 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 D | pointer-to-objc-pointer-conv.mm | 29 class Wrapper { 39 Wrapper &operator*(); 40 Wrapper &operator[](int); 41 Wrapper& operator->*(int); 48 Wrapper w;
|
/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/ |
H A D | IntelJITEventListener.cpp | 49 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 D | Reachability-template-instantiation.cpp | 17 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 D | copy_move.pass.cpp | 116 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 D | static-const-bitcast.ll | 5 %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 D | partial-spec-instantiate.cpp | 66 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 D | JITLoaderVTune.cpp | 26 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 D | test.cpp | 7 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 D | p3-2a.cpp | 73 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 D | CSEInfo.h | 226 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 D | GISelChangeObserver.h | 136 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 D | index-source.cpp | 64 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()
|