Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/clang/unittests/Analysis/
H A DCloneDetectionTest.cpp79 for (auto &Clone : CloneGroups.front()) { in TEST() local
80 const auto ND = dyn_cast<const FunctionDecl>(Clone.getContainingDecl()); in TEST()
98 for (auto &Clone : CloneGroups.front()) { in TEST() local
99 const auto ND = dyn_cast<const FunctionDecl>(Clone.getContainingDecl()); in TEST()
/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Decho.cpp67 LLVMTypeRef Clone(LLVMValueRef Src) { in Clone() function
68 return Clone(LLVMTypeOf(Src)); in Clone()
71 LLVMTypeRef Clone(LLVMTypeRef Src) { in Clone() function
102 Params[i] = Clone(Params[i]); in Clone()
137 Clone(LLVMGetElementType(Src)), in Clone()
148 Clone(LLVMGetElementType(Src)), in Clone()
309 LLVMTypeRef Ty = TypeCloner(M).Clone(Cst); in clone_constant_impl()
320 LLVMTypeRef Ty = TypeCloner(M).Clone(Cst); in clone_constant_impl()
334 LLVMTypeRef Ty = TypeCloner(M).Clone(Cst); in clone_constant_impl()
420 return TypeCloner(M).Clone(Src); in CloneType()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyDebugValueManager.cpp57 MachineInstr *Clone = MF->CloneMachineInstr(DBI); in clone() local
58 for (auto &MO : Clone->getDebugOperandsForReg(CurrentReg)) in clone()
60 MBB->insert(Insert, Clone); in clone()
H A DWebAssemblyMachineFunctionInfo.cpp31 WebAssemblyFunctionInfo *Clone = in clone() local
33 Clone->MF = &DestMF; in clone()
34 return Clone; in clone()
H A DWebAssemblyRegStackify.cpp574 MachineInstr *Clone = &*std::prev(Insert); in rematerializeCheapDef() local
575 LIS.InsertMachineInstrInMaps(*Clone); in rematerializeCheapDef()
578 imposeStackOrdering(Clone); in rematerializeCheapDef()
580 LLVM_DEBUG(dbgs() << " - Cloned to "; Clone->dump()); in rematerializeCheapDef()
606 return Clone; in rematerializeCheapDef()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DDelta.cpp152 std::unique_ptr<ReducerWorkItem> Clone, TestRunner &Test, in CheckChunk() argument
171 ExtractChunksFromModule(O, *Clone); in CheckChunk()
174 if (verifyReducerWorkItem(*Clone, &errs())) { in CheckChunk()
190 if (!isReduced(*Clone, Test, CurrentFilepath)) { in CheckChunk()
195 return Clone; in CheckChunk()
257 std::unique_ptr<ReducerWorkItem> Clone = in runDeltaPass() local
259 ExtractChunksFromModule(NoChunksCounter, *Clone); in runDeltaPass()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp413 Function *Clone = CloneFunction(F, Mappings); in cloneCandidateFunction() local
414 removeSSACopy(*Clone); in cloneCandidateFunction()
415 return Clone; in cloneCandidateFunction()
520 Function *Clone = cloneCandidateFunction(F, Mappings); in specializeFunction() local
523 rewriteCallSites(Clone, S.Args, Mappings); in specializeFunction()
528 Solver.markArgInFuncSpecialization(Clone, S.Args); in specializeFunction()
531 WorkList.push_back(Clone); in specializeFunction()
763 void rewriteCallSites(Function *Clone, const SmallVectorImpl<ArgInfo> &Args, in rewriteCallSites() argument
779 << F->getName() << " with " << Clone->getName() << "\n"); in rewriteCallSites()
786 (CS->getFunction() == Clone && in rewriteCallSites()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Language/CPlusPlus/
H A DLibStdcppUniquePointer.cpp100 m_ptr_obj = ptr_obj->Clone(ConstString("pointer")).get(); in Update()
111 m_del_obj = del_obj->Clone(ConstString("deleter")).get(); in Update()
118 m_obj_obj = obj_obj->Clone(ConstString("object")).get(); in Update()
H A DLibCxxTuple.cpp80 elem_sp->Clone(ConstString(llvm::formatv("[{0}]", idx).str())).get(); in GetChildAtIndex()
H A DLibStdcppTuple.cpp80 m_members.push_back(value_sp->Clone(ConstString(name.GetString())).get()); in Update()
H A DLibCxxAtomic.cpp136 return m_real_child->GetSP()->Clone(ConstString("Value")); in GetChildAtIndex()
H A DGenericOptional.cpp121 return val_sp->Clone(ConstString("Value")); in GetChildAtIndex()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dshape.cpp91 values.Push(common::Clone(*dim)); in AsExtentArrayExpr()
170 ExtentExpr strideCopy{common::Clone(stride)}; in ComputeTripCount()
187 common::Clone(lower), common::Clone(upper), common::Clone(stride)); in CountTrips()
334 component.GetLastSymbol(), NamedEntity{common::Clone(component)}); in operator ()()
421 Ordering::Greater, ExtentExpr{0}, common::Clone(*ubound)}}; in GetNonNegativeExtent()
425 common::Clone(*ubound) - common::Clone(*lbound) + ExtentExpr{1}}}; in GetNonNegativeExtent()
864 common::Clone(call.arguments().at(1))}; in operator ()()
874 ActualArguments toCount{ActualArgument{common::Clone( in operator ()()
911 ConvertToType<ExtentType>(common::Clone(*nCopies))); in operator ()()
957 common::Clone(*moldElementBytes) - ExtentExpr{1}) / in operator ()()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPropagateAttributes.cpp98 class Clone { class in __anon1cb84a0b0111::AMDGPUPropagateAttributes
100 Clone(const FnProperties &Props, Function *OrigF, Function *NewF) : in Clone() function in __anon1cb84a0b0111::AMDGPUPropagateAttributes::Clone
117 SmallVector<Clone, 32> Clones;
203 for (Clone &C : Clones) in findFunction()
284 Clones.push_back(Clone(CallerProps, &F, NewF)); in process()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DInstructionsTest.cpp738 EXPECT_TRUE(Clone->onlyReadsMemory()); in TEST()
759 EXPECT_EQ(Call->arg_size(), Clone->arg_size()); in TEST()
763 EXPECT_TRUE(Clone->hasFnAttr(Attribute::AttrKind::Cold)); in TEST()
764 EXPECT_EQ(Call->getDebugLoc(), Clone->getDebugLoc()); in TEST()
765 EXPECT_EQ(Clone->getNumOperandBundles(), 1U); in TEST()
766 EXPECT_TRUE(Clone->getOperandBundle("after")); in TEST()
788 std::unique_ptr<InvokeInst> Clone( in TEST() local
792 EXPECT_EQ(Invoke->arg_size(), Clone->arg_size()); in TEST()
796 EXPECT_EQ(Invoke->getDebugLoc(), Clone->getDebugLoc()); in TEST()
797 EXPECT_EQ(Clone->getNumOperandBundles(), 1U); in TEST()
[all …]
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-param-util.h109 virtual ParamIteratorInterface* Clone() const = 0;
132 ParamIterator(const ParamIterator& other) : impl_(other.impl_->Clone()) {} in ParamIterator()
135 impl_.reset(other.impl_->Clone());
148 ParamIteratorInterface<T>* clone = impl_->Clone();
238 ParamIteratorInterface<T>* Clone() const override { in Clone() function
325 ParamIteratorInterface<T>* Clone() const override { in Clone() function
801 ParamIteratorInterface<ParamType>* Clone() const override { in Clone() function
/llvm-project-15.0.7/lldb/source/Interpreter/
H A DOptionValueFileSpecList.cpp163 OptionValueSP OptionValueFileSpecList::Clone() const { in Clone() function in OptionValueFileSpecList
165 return Cloneable::Clone(); in Clone()
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DCloneable.h44 std::shared_ptr<typename Base::TopmostBase> Clone() const override { in Clone() function
/llvm-project-15.0.7/lldb/include/lldb/Interpreter/
H A DOptionValueFileSpecList.h66 lldb::OptionValueSP Clone() const override;
/llvm-project-15.0.7/llvm/tools/bugpoint/
H A DExtractFunction.cpp87 std::unique_ptr<Module> Clone = CloneModule(*Program); in deleteInstructionFromProgram() local
92 Module::iterator RFI = Clone->begin(); // Get iterator to corresponding fn in deleteInstructionFromProgram()
120 std::unique_ptr<Module> New = runPassesOn(Clone.get(), Passes); in deleteInstructionFromProgram()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dpointer-assignment.cpp337 (common::Clone(bound.second) - common::Clone(bound.first) + in CheckPointerBounds()
414 .set_lhsType(common::Clone(lhs.type)) in CheckPointerAssignment()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp158 auto *Clone = in sinkScalarOperands() local
162 Clone->insertBefore(SinkCandidate); in sinkScalarOperands()
172 UI->setOperand(Idx, Clone); in sinkScalarOperands()
/llvm-project-15.0.7/llvm/lib/DWARFLinker/
H A DDWARFLinker.cpp936 if (!RefInfo.Clone) { in cloneDieReferenceAttribute()
940 RefInfo.Clone = DIE::get(DIEAlloc, dwarf::Tag(RefDie.getTag())); in cloneDieReferenceAttribute()
942 NewRefDie = RefInfo.Clone; in cloneDieReferenceAttribute()
1016 if (DIE *Clone = Info.Clone) in cloneExpression() local
1017 Offset = Clone->getOffset(); in cloneExpression()
1388 if (!Info.Clone) in cloneDIE()
1389 Info.Clone = DIE::get(DIEAlloc, dwarf::Tag(InputDIE.getTag())); in cloneDIE()
1390 Die = Info.Clone; in cloneDIE()
1557 if (DIE *Clone = cloneDIE(Child, File, Unit, StringPool, PCOffset, in cloneDIE() local
1559 Die->addChild(Clone); in cloneDIE()
[all …]
/llvm-project-15.0.7/flang/include/flang/Lower/Support/
H A DUtils.h58 return Fortran::evaluate::AsGenericExpr(Fortran::common::Clone(x)); in toEvExpr()
/llvm-project-15.0.7/clang/tools/clang-format-vs/ClangFormat/
H A DClangFormatPackage.cs44 public OptionPageGrid Clone() in Clone() method in LLVM.ClangFormat.OptionPageGrid
279 var optionsWithNoFallbackStyle = GetUserOptions().Clone(); in OnBeforeSave()

1234