Home
last modified time | relevance | path

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

12345678910>>...15

/llvm-project/clang/test/AST/Interp/
H A Dfunctions.cpp
/llvm-project/clang/test/SemaCXX/
H A Dcxx2a-consteval.cpp576 struct Copy {
578 constexpr Copy(int(*p)() = nullptr) : ptr(p) {}
579 consteval Copy(const Copy&) = default;
582 constexpr const Copy &to_lvalue_ref(const Copy &&a) { in f_eval()
587 constexpr const Copy C;
590 { Copy c(C); } in to_lvalue_ref()
591 { Copy c((Copy( in to_lvalue_ref()
584 struct Copy { global() struct
585 ptrcopy_ctor::Copy global() argument
586 Copycopy_ctor::Copy Copy() argument
[all...]
/llvm-project/llvm/include/llvm/Analysis/
H A DSimplifyQuery.h108 SimplifyQuery Copy(*this); in getWithInstruction()
109 Copy.CxtI = I; in getWithInstruction()
110 return Copy; in getWithInstruction()
113 SimplifyQuery Copy(*this); in getWithoutUndef()
114 Copy.CanUseUndef = false; in getWithoutUndef()
115 return Copy; in getWithoutUndef()
123 SimplifyQuery Copy(*this); in getWithoutDomCondCache()
124 Copy.DC = nullptr; in getWithoutDomCondCache()
125 return Copy; in getWithoutDomCondCache()
129 SimplifyQuery Copy(*thi in getWithCondContext()
[all...]
/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DAvoidConstOrRefDataMembersCheck.cpp28 MemberFunctionInfo Copy{}; global() member
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dunnecessary-copy-initialization.cpp617 const ExpensiveToCopyType Copy = freeFunctionWithArg(Orig);
621 const ExpensiveToCopyType Copy = freeFunctionWithDefaultArg(); in negativeStdFunction()
626 const ExpensiveToCopyType Copy = freeFunctionWithDefaultArg(&Orig);
647 std::function<int()> Copy = Orig;
655 Functor Copy = Orig; in positiveFakeStdFunction()
663 TypedefFunc Copy = Orig; in positiveInvokedOnStdFunction()
678 auto Copy = F; in negativeCopiedFromReferenceToModifiedVar()
679 // CHECK-MESSAGES: [[@LINE-1]]:8: warning: local copy 'Copy' of the variable 'F' is never modified; in negativeCopiedFromReferenceToModifiedVar()
680 // CHECK-FIXES: const auto& Copy = F; in negativeCopiedFromReferenceToModifiedVar()
681 Copy in negativeCopiedFromReferenceToModifiedVar()
593 const ExpensiveToCopyType Copy = freeFunctionWithArg(Orig); negativeInitializedFromFreeFunctionWithArg() local
597 const ExpensiveToCopyType Copy = freeFunctionWithDefaultArg(); negativeInitializedFromFreeFunctionWithDefaultArg() local
602 const ExpensiveToCopyType Copy = freeFunctionWithDefaultArg(&Orig); negativeInitialzedFromFreeFunctionWithNonDefaultArg() local
623 std::function<int()> Copy = Orig; negativeStdFunction() local
631 Functor Copy = Orig; negativeAliasedStdFunction() local
639 TypedefFunc Copy = Orig; negativeTypedefedStdFunction() local
654 auto Copy = F; positiveFakeStdFunction() local
665 auto Copy = Orig.reference(); positiveInvokedOnStdFunction() local
674 auto Copy = Orig.reference(); negativeInvokedOnStdFunction() local
753 const auto Copy = Element; positiveLoopedOverObjectIsConst() local
763 const auto Copy = Element; positiveLoopedOverObjectIsConst() local
775 const auto Copy = Element; negativeLoopedOverObjectIsModified() local
783 const auto Copy = Element; negativeLoopedOverObjectIsModified() local
896 auto Copy = Orig; negativeNonConstMemberExpr() local
900 auto Copy = Orig; negativeNonConstMemberExpr() local
904 auto Copy = Orig; negativeNonConstMemberExpr() local
[all...]
H A Dunnecessary-value-param.cpp97 auto Copy = Obj;
121 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy); in negativeTemplateType()
122 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy);
123 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy) { in negativeArray()
125 // CHECK-MESSAGES: [[@LINE-2]]:120: warning: the parameter 'Copy'
126 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy) { in negativePointer()
182 PositiveValueUnusedConstructor(ExpensiveToCopyType Copy) {}
183 // CHECK-MESSAGES: [[@LINE-1]]:54: warning: the parameter 'Copy' in PositiveValueMovableConstructor()
184 // CHECK-FIXES: PositiveValueUnusedConstructor(const ExpensiveToCopyType& Copy) {}
188 PositiveValueCopiedConstructor(ExpensiveToCopyType Copy)
72 auto Copy = Obj; positiveExpensiveValue() local
98 positiveAndNegative(const ExpensiveToCopyType ConstCopy,const ExpensiveToCopyType & ConstRef,ExpensiveToCopyType Copy) positiveAndNegative() argument
[all...]
H A Dunnecessary-value-param-delayed.cpp40 auto Copy = Obj; in positiveExpensiveValue() local
56 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy);
57 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy);
58 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy) { in positiveAndNegative() argument
60 // CHECK-MESSAGES: [[@LINE-2]]:120: warning: the parameter 'Copy' in positiveAndNegative()
61 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy) { in positiveAndNegative()
131 PositiveValueUnusedConstructor(ExpensiveToCopyType Copy) {}
132 // CHECK-MESSAGES: [[@LINE-1]]:54: warning: the parameter 'Copy'
133 // CHECK-FIXES: PositiveValueUnusedConstructor(const ExpensiveToCopyType& Copy) {}
137 PositiveValueCopiedConstructor(ExpensiveToCopyType Copy) in PositiveValueCopiedConstructor()
[all...]
/llvm-project/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/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 Dgfx11_tgt.rst18 pos{0..4} Copy vertex position 0..4.
19 mrt{0..7} Copy pixel color to the MRTs 0..7.
20 mrtz Copy pixel depth (Z) data.
21 prim Copy primitive (connectivity) data.
22 dual_src_blend0 Copy dual source blend left.
23 dual_src_blend1 Copy dual source blend right.
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.
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 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.
/llvm-project/llvm/lib/CodeGen/
H A DMachineCopyPropagation.cpp1 //===- MachineCopyPropagation.cpp - Machine Copy Propagation Pass ---------===//
313 auto &Copy = Copies[Unit]; in findAvailCopy()
314 if (!is_contained(Copy.DefRegs, Def)) in findAvailCopy()
315 Copy.DefRegs.push_back(Def); in findAvailCopy()
316 Copy.LastSeenUseInCopy = MI; in findAvailCopy()
488 bool eraseIfRedundant(MachineInstr &Copy, MCRegister Src, MCRegister Def);
491 bool isForwardableRegClassCopy(const MachineInstr &Copy, in isNopCopy()
493 bool isBackwardPropagatableRegClassCopy(const MachineInstr &Copy, in isNopCopy()
499 bool canUpdateSrcUsers(const MachineInstr &Copy, in isNopCopy()
520 "Machine Copy Propagatio in eraseIfRedundant()
243 auto &Copy = I.first->second; trackCopy() local
456 if (MachineInstr *Copy = Tracker.findCopyForUnit(Unit, *TRI)) { ReadRegister() local
476 if (MachineInstr *Copy = Tracker.findCopyForUnit(Unit, *TRI)) readSuccessorLiveIns() local
508 eraseIfRedundant(MachineInstr & Copy,MCRegister Src,MCRegister Def) eraseIfRedundant() argument
555 isBackwardPropagatableRegClassCopy(const MachineInstr & Copy,const MachineInstr & UseI,unsigned UseIdx) isBackwardPropagatableRegClassCopy() argument
572 isForwardableRegClassCopy(const MachineInstr & Copy,const MachineInstr & UseI,unsigned UseIdx) isForwardableRegClassCopy() argument
699 MachineInstr *Copy = Tracker.findAvailCopy(MI, MOUse.getReg().asMCReg(), forwardUses() local
1010 MachineInstr *Copy = Tracker.findAvailBackwardCopy( propagateDefs() local
1100 if (auto *Copy = Tracker.findCopyDefViaUnit(Unit, *TRI)) { BackwardCopyPropagateBlock() local
1112 for (auto *Copy : MaybeDeadCopies) { BackwardCopyPropagateBlock() local
[all...]
/llvm-project/libcxx/benchmarks/algorithms/
H A Dmake_heap_then_sort_heap.bench.cpp
H A Dlower_bound.bench.cpp
H A Dpush_heap.bench.cpp
H A Dranges_push_heap.bench.cpp
/llvm-project/llvm/test/MachineVerifier/
H A Dtest_copy_physregs_x86.mir31 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
35 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
39 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
43 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
47 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
51 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
55 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
59 ; CHECK: *** Bad machine code: Copy Instruction is illegal with mismatching sizes ***
/llvm-project/clang/unittests/Tooling/Syntax/
H A DSynthesisTest.cpp179 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, StatementContinue); in TEST_P()
180 EXPECT_TRUE(treeDumpEqual(Copy, StatementContinue->dump(*TM))); in TEST_P()
188 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, OriginalTree); in TEST_P()
189 EXPECT_TRUE(treeDumpEqual(Copy, R"txt( in TEST_P()
203 auto *Copy = in TEST_P()
205 EXPECT_TRUE(treeDumpEqual(Copy, R"txt( in TEST_P()
224 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, OriginalTree); in TEST_P()
229 EXPECT_TRUE(treeDumpEqual(Copy, R"txt( in TEST_P()
176 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, StatementContinue); TEST_P() local
185 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, OriginalTree); TEST_P() local
200 auto *Copy = TEST_P() local
221 auto *Copy = deepCopyExpandingMacros(*Arena, *TM, OriginalTree); TEST_P() local
/llvm-project/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/llvm/include/llvm/IR/
H A DValueMap.h261 ValueMapCallbackVH Copy(*this);
262 typename Config::mutex_type *M = Config::getMutex(Copy.Map->Data);
266 Config::onDelete(Copy.Map->Data, Copy.Unwrap()); // May destroy *this.
267 Copy.Map->Map.erase(Copy); // Definitely destroys *this.
274 ValueMapCallbackVH Copy(*this);
275 typename Config::mutex_type *M = Config::getMutex(Copy.Map->Data);
282 Config::onRAUW(Copy.Map->Data, Copy.Unwrap(), typed_new_key);
284 typename ValueMapT::MapT::iterator I = Copy.Map->Map.find(Copy);
287 if (I != Copy.Map->Map.end()) {
289 Copy.Map->Map.erase(I); // Definitely destroys *this.
[all …]
/llvm-project/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/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/
H A Dcopy.verify.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

12345678910>>...15