Home
last modified time | relevance | path

Searched refs:Copy (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx2a-consteval.cpp567 consteval Copy(const Copy&) = default;
585 { Copy c = Copy(C); } in test()
586 { Copy c = Copy(Copy(&f_eval)); }// expected-error {{cannot take address of consteval}} in test()
587 { Copy c = Copy(std::move(C)); } in test()
590 { Copy c = Copy(to_lvalue_ref(std::move(C))); } in test()
592 { Copy c; c = Copy(C); } in test()
593 { Copy c; c = Copy(Copy(&f_eval)); }// expected-error {{cannot take address of consteval}} in test()
594 { Copy c; c = Copy(std::move(C)); } in test()
597 { Copy c; c = Copy(to_lvalue_ref(std::move(C))); } in test()
599 { Copy* c; c = new Copy(C); } in test()
[all …]
/llvm-project-15.0.7/llvm/docs/AMDGPU/
H A Dgfx10_tgt.rst18 pos{0..4} Copy vertex position 0..4.
19 param{0..31} Copy vertex parameter 0..31.
20 mrt{0..7} Copy pixel color to the MRTs 0..7.
21 mrtz Copy pixel depth (Z) data.
22 prim Copy primitive (connectivity) data.
23 null Copy nothing.
H A Dgfx1030_tgt.rst18 pos{0..4} Copy vertex position 0..4.
19 param{0..31} Copy vertex parameter 0..31.
20 mrt{0..7} Copy pixel color to the MRTs 0..7.
21 mrtz Copy pixel depth (Z) data.
22 prim Copy primitive (connectivity) data.
23 null Copy nothing.
H A Dgfx8_tgt.rst18 pos{0..3} Copy vertex position 0..3.
19 param{0..31} Copy vertex parameter 0..31.
20 mrt{0..7} Copy pixel color to the MRTs 0..7.
21 mrtz Copy pixel depth (Z) data.
22 null Copy nothing.
H A Dgfx7_tgt.rst18 pos{0..3} Copy vertex position 0..3.
19 param{0..31} Copy vertex parameter 0..31.
20 mrt{0..7} Copy pixel color to the MRTs 0..7.
21 mrtz Copy pixel depth (Z) data.
22 null Copy nothing.
H A Dgfx9_tgt.rst18 pos{0..3} Copy vertex position 0..3.
19 param{0..31} Copy vertex parameter 0..31.
20 mrt{0..7} Copy pixel color to the MRTs 0..7.
21 mrtz Copy pixel depth (Z) data.
22 null Copy nothing.
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/
H A DMemberwiseConstructorTests.cpp79 auto Copy = AllOf(Not(HasSubstr("S(const ")), HasSubstr(": Member(Member)")); in TEST_F() local
87 EXPECT_THAT(apply(With("CopyTrivial")), Copy); in TEST_F()
88 EXPECT_THAT(apply(With("int")), Copy); in TEST_F()
89 EXPECT_THAT(apply(With("IntAlias")), Copy); in TEST_F()
90 EXPECT_THAT(apply(With("Immovable*")), Copy); in TEST_F()
91 EXPECT_THAT(apply(With("Immovable&")), Copy); in TEST_F()
96 EXPECT_THAT(apply("template <typename T>" + With("T*")), Copy); in TEST_F()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineCopyPropagation.cpp197 auto &Copy = I.first->second; in trackCopy() local
198 if (!is_contained(Copy.DefRegs, Def)) in trackCopy()
199 Copy.DefRegs.push_back(Def); in trackCopy()
368 MaybeDeadCopies.remove(Copy); in ReadRegister()
370 CopyDbgUsers[Copy].insert(&Reader); in ReadRegister()
434 Copy.eraseFromParent(); in eraseIfRedundant()
587 if (!Copy) in forwardUses()
887 if (!Copy) in propagateDefs()
915 MaybeDeadCopies.insert(Copy); in propagateDefs()
988 for (auto *Copy : MaybeDeadCopies) { in BackwardCopyPropagateBlock() local
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dunnecessary-copy-initialization.cpp602 Functor Copy = Orig; in negativeAliasedStdFunction() local
610 TypedefFunc Copy = Orig; in negativeTypedefedStdFunction() local
625 auto Copy = F; in positiveFakeStdFunction() local
628 Copy.constMethod(); in positiveFakeStdFunction()
639 Update(Copy); in positiveInvokedOnStdFunction()
646 Update(Copy); in negativeInvokedOnStdFunction()
724 const auto Copy = Element; in positiveLoopedOverObjectIsConst() local
728 Copy.constMethod(); in positiveLoopedOverObjectIsConst()
738 Copy.constMethod(); in positiveLoopedOverObjectIsConst()
748 Copy.constMethod(); in negativeLoopedOverObjectIsModified()
[all …]
H A Dunnecessary-value-param.cpp72 auto Copy = Obj; in positiveExpensiveValue() local
96 …onst ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy);
98 …nst ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy) { in positiveAndNegative() argument
170 PositiveValueUnusedConstructor(ExpensiveToCopyType Copy) {} in PositiveValueUnusedConstructor()
176 PositiveValueCopiedConstructor(ExpensiveToCopyType Copy) : Field(Copy) {} in PositiveValueCopiedConstructor()
183 PositiveValueMovableConstructor(ExpensiveMovableType Copy) : Field(Copy) {} in PositiveValueMovableConstructor()
190 …gativeValueMovedConstructor(ExpensiveMovableType Copy) : Field(static_cast<ExpensiveMovableType &&… in NegativeValueMovedConstructor()
H A Dunnecessary-value-param-delayed.cpp40 auto Copy = Obj; in positiveExpensiveValue() local
56 …onst ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy);
58 …nst ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy) { in positiveAndNegative() argument
130 PositiveValueUnusedConstructor(ExpensiveToCopyType Copy) {} in PositiveValueUnusedConstructor()
136 PositiveValueCopiedConstructor(ExpensiveToCopyType Copy) : Field(Copy) {} in PositiveValueCopiedConstructor()
/llvm-project-15.0.7/libcxx/benchmarks/algorithms/
H A Dmake_heap_then_sort_heap.bench.cpp20 [](auto& Copy) { in run() argument
21 std::make_heap(Copy.begin(), Copy.end()); in run()
22 std::sort_heap(Copy.begin(), Copy.end()); in run()
H A Dlower_bound.bench.cpp24 …unOpOnCopies<ValueType>(state, Quantity, Order::Ascending, BatchSize::CountBatch, [&](auto& Copy) { in run() argument
25 auto result = std::lower_bound(Copy.begin(), Copy.end(), Copy[rng() % Copy.size()]); in run()
H A Dpush_heap.bench.cpp20 state, Quantity, Order(), BatchSize::CountElements, [](auto& Copy) { in run() argument
21 for (auto I = Copy.begin(), E = Copy.end(); I != E; ++I) { in run()
22 std::push_heap(Copy.begin(), I + 1); in run()
H A Dranges_push_heap.bench.cpp20 state, Quantity, Order(), BatchSize::CountElements, [](auto& Copy) { in run() argument
21 for (auto I = Copy.begin(), E = Copy.end(); I != E; ++I) { in run()
22 std::ranges::push_heap(Copy.begin(), I + 1); in run()
/llvm-project-15.0.7/compiler-rt/test/fuzzer/
H A DSingleStrcmpTest.cpp13 char Copy[7]; in LLVMFuzzerTestOneInput() local
14 memcpy(Copy, Data, 6); in LLVMFuzzerTestOneInput()
15 Copy[6] = 0; in LLVMFuzzerTestOneInput()
16 if (!strcmp(Copy, "qwerty")) { in LLVMFuzzerTestOneInput()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DTypeSize.h81 LeafTy Copy = LHS; variable
82 return Copy += RHS;
86 LeafTy Copy = LHS; variable
87 return Copy -= RHS;
91 LeafTy Copy = LHS; variable
92 return Copy *= RHS;
98 LeafTy Copy = LHS; variable
99 return Copy *= -1;
199 LeafTy Copy = LHS;
204 LeafTy Copy = LHS;
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/Syntax/
H A DSynthesisTest.cpp176 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, StatementContinue); in TEST_P() local
177 EXPECT_TRUE(treeDumpEqual(Copy, StatementContinue->dump(*TM))); in TEST_P()
185 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, OriginalTree); in TEST_P() local
186 EXPECT_TRUE(treeDumpEqual(Copy, R"txt( in TEST_P()
200 auto *Copy = in TEST_P() local
202 EXPECT_TRUE(treeDumpEqual(Copy, R"txt( in TEST_P()
221 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, OriginalTree); in TEST_P() local
226 EXPECT_TRUE(treeDumpEqual(Copy, R"txt( in TEST_P()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DMemberwiseConstructor.cpp126 Copy, // Pass by value and copy into place enumerator
150 return Copy; in considerField()
154 return Ctx.getLangOpts().ObjCAutoRefCount ? Copy : Fail; in considerField()
162 ALWAYS(Pointer, Copy); in considerField()
163 ALWAYS(MemberPointer, Copy); in considerField()
164 ALWAYS(Reference, Copy); in considerField()
165 ALWAYS(Complex, Copy); in considerField()
166 ALWAYS(Enum, Copy); in considerField()
207 return Copy; in considerClassValue()
/llvm-project-15.0.7/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/
H A Dcopy.fail.cpp28 LG Copy(Orig); // expected-error{{call to deleted constructor of 'LG'}} in main() local
33 LG Copy(Orig); // expected-error{{call to deleted constructor of 'LG'}} in main() local
38 LG Copy(Orig); // expected-error{{call to deleted constructor of 'LG'}} in main() local
43 LG Copy(Orig); // expected-error{{call to deleted constructor of 'LG'}} in main() local
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DValueMap.h262 ValueMapCallbackVH Copy(*this);
263 typename Config::mutex_type *M = Config::getMutex(Copy.Map->Data);
267 Config::onDelete(Copy.Map->Data, Copy.Unwrap()); // May destroy *this.
268 Copy.Map->Map.erase(Copy); // Definitely destroys *this.
275 ValueMapCallbackVH Copy(*this);
276 typename Config::mutex_type *M = Config::getMutex(Copy.Map->Data);
283 Config::onRAUW(Copy.Map->Data, Copy.Unwrap(), typed_new_key);
285 typename ValueMapT::MapT::iterator I = Copy.Map->Map.find(Copy);
288 if (I != Copy.Map->Map.end()) {
290 Copy.Map->Map.erase(I); // Definitely destroys *this.
[all …]
/llvm-project-15.0.7/llvm/test/MachineVerifier/
H A Dtest_copy_physregs_x86.mir34 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
37 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
40 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
46 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
49 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
52 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DMemoryLocation.h295 MemoryLocation Copy(*this); in getWithNewPtr()
296 Copy.Ptr = NewPtr; in getWithNewPtr()
297 return Copy; in getWithNewPtr()
301 MemoryLocation Copy(*this); in getWithNewSize()
302 Copy.Size = NewSize; in getWithNewSize()
303 return Copy; in getWithNewSize()
307 MemoryLocation Copy(*this); in getWithoutAATags()
308 Copy.AATags = AAMDNodes(); in getWithoutAATags()
309 return Copy; in getWithoutAATags()
/llvm-project-15.0.7/libc/src/__support/CPP/
H A DStringView.h121 StringView Copy = *this; in trim() local
122 while (Copy.starts_with(C)) in trim()
123 Copy = Copy.drop_front(); in trim()
124 while (Copy.ends_with(C)) in trim()
125 Copy = Copy.drop_back(); in trim()
126 return Copy; in trim()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DBitVector.h202 BitWord Copy = Bits[i]; variable
204 Copy = ~Copy;
208 Copy &= maskTrailingZeros<BitWord>(FirstBit);
213 Copy &= maskTrailingOnes<BitWord>(LastBit + 1);
215 if (Copy != 0)
234 BitWord Copy = Bits[CurrentWord]; in find_last_in() local
242 Copy &= maskTrailingZeros<BitWord>(FirstBit); in find_last_in()
245 if (Copy != 0) in find_last_in()
271 BitWord Copy = Bits[CurrentWord]; in find_last_unset_in() local
279 Copy |= maskTrailingOnes<BitWord>(FirstBit); in find_last_unset_in()
[all …]

12345678910>>...13