/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A D | Mutations.cpp | 46 static void replace(syntax::Node *Old, syntax::Node *New) { argument 47 assert(Old != nullptr); 48 assert(Old->Parent != nullptr); 49 assert(Old->canModify()); 54 New->Role = Old->Role; 55 auto *P = Old->parent(); 56 P->replaceChildRangeLowLevel(findPrevious(Old), Old->nextSibling(), New);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ConstantMerge.cpp | 105 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { argument 106 if (!Old->hasGlobalUnnamedAddr() && !New->hasGlobalUnnamedAddr()) 108 if (hasMetadataOtherThanDebugLoc(Old)) 111 if (!Old->hasGlobalUnnamedAddr()) 116 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { argument 119 LLVM_DEBUG(dbgs() << "Replacing global: @" << Old->getName() << " -> @" 123 if (Old->getAlignment() || New->getAlignment()) 124 New->setAlignment(Align(std::max(getAlignment(Old), getAlignment(New)))); 126 copyDebugLocMetadata(Old, New); 127 Old 237 GlobalVariable *Old = SameContentReplacements[i].first; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | OrderedBasicBlock.cpp | 101 void OrderedBasicBlock::replaceInstruction(const Instruction *Old, argument 103 auto OI = NumberedInsts.find(Old); 108 if (LastInstFound != BB->end() && Old == &*LastInstFound) 110 NumberedInsts.erase(Old);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerValueBitMap.h | 36 uintptr_t Old = Map[WordIdx]; local 37 uintptr_t New = Old | (1ULL << BitIdx); 39 return New != Old;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyRegColoring.cpp | 138 unsigned Old = LI->reg; local 140 const TargetRegisterClass *RC = MRI->getRegClass(Old); 143 if (!MRI->isLiveIn(Old)) 157 Changed |= Old != New; 168 unsigned Old = SortedIntervals[I]->reg; local 170 if (Old != New) 171 MRI->replaceRegWith(Old, New);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Pointer.cpp | 42 Block *Old = Pointee; local 54 if (Old) 55 Old->cleanup(); 59 Block *Old = Pointee; local 71 if (Old) 72 Old->cleanup();
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | OrderedBasicBlock.h | 66 /// Replace \p Old with \p New in the ordering. \p New is assigned the 67 /// numbering of \p Old, so it must be inserted at the same position in the 69 void replaceInstruction(const Instruction *Old, const Instruction *New);
|
H A D | CallGraphSCCPass.h | 103 /// Old node has been deleted, and New is to be used in its place. 104 void ReplaceNode(CallGraphNode *Old, CallGraphNode *New);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Allocator.h | 158 BumpPtrAllocatorImpl(BumpPtrAllocatorImpl &&Old) argument 159 : CurPtr(Old.CurPtr), End(Old.End), Slabs(std::move(Old.Slabs)), 160 CustomSizedSlabs(std::move(Old.CustomSizedSlabs)), 161 BytesAllocated(Old.BytesAllocated), RedZoneSize(Old.RedZoneSize), 162 Allocator(std::move(Old.Allocator)) { 163 Old.CurPtr = Old 455 SpecificBumpPtrAllocator(SpecificBumpPtrAllocator &&Old) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineJumpTableInfo.h | 109 /// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update 111 bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New); 113 /// ReplaceMBBInJumpTable - If Old is a target of the jump tables, update 115 bool ReplaceMBBInJumpTable(unsigned Idx, MachineBasicBlock *Old,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LiveRangeShrink.cpp | 72 /// Returns \p New if it's dominated by \p Old, otherwise return \p Old. 75 /// If \p New is not in \p M, return \p Old. Otherwise if \p Old is null, return 78 MachineInstr *Old, 82 return Old; 83 if (Old == nullptr) 85 unsigned OrderOld = M.find(Old)->second; 88 return OrderOld < OrderNew ? &New : Old; 89 // OrderOld == OrderNew, we need to iterate down from Old t 77 FindDominatedInstruction(MachineInstr &New, MachineInstr *Old, const InstOrderMap &M) argument [all...] |
H A D | MachineModuleInfo.cpp | 99 void UpdateForRAUWBlock(BasicBlock *Old, BasicBlock *New); 173 void MMIAddrLabelMap::UpdateForRAUWBlock(BasicBlock *Old, BasicBlock *New) { argument 175 AddrLabelSymEntry OldEntry = std::move(AddrLabelSymbols[Old]); 176 AddrLabelSymbols.erase(Old);
|
H A D | InterleavedLoadCombinePass.cpp | 753 VectorInfo Old(VTy); 754 if (!compute(Op, Old, DL)) 760 ElementInfo(Old.EI[i / Factor].Ofs + j * NewSize, 761 j == 0 ? Old.EI[i / Factor].LI : nullptr); 765 Result.BB = Old.BB; 766 Result.PV = Old.PV; 767 Result.LIs.insert(Old.LIs.begin(), Old.LIs.end()); 768 Result.Is.insert(Old.Is.begin(), Old [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 237 MachineInstr &Old = *I; local 238 uint64_t Amount = TII.getFrameSize(Old); 246 if (Old.getOpcode() == TII.getCallFrameSetupOpcode()) { 248 BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::SUB16ri), MSP430::SP) 252 assert(Old.getOpcode() == TII.getCallFrameDestroyOpcode()); 254 Amount -= TII.getFramePoppedByCallee(Old); 256 New = BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::ADD16ri), 274 MachineInstr &Old = *I; local 276 BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::SUB16ri), MSP430::SP)
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 253 const FunctionProtoType *Old, SourceLocation OldLoc, 279 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { argument 301 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { 302 DelayedEquivalentExceptionSpecChecks.push_back({New, Old}); 310 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(), 319 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { 321 << hasImplicitExceptionSpec(Old); 322 if (Old->getLocation().isValid()) 323 Diag(Old 477 CheckEquivalentExceptionSpec( const FunctionProtoType *Old, SourceLocation OldLoc, const FunctionProtoType *New, SourceLocation NewLoc) argument 502 CheckEquivalentExceptionSpecImpl( Sema &S, const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID, const FunctionProtoType *Old, SourceLocation OldLoc, const FunctionProtoType *New, SourceLocation NewLoc, bool *MissingExceptionSpecification, bool *MissingEmptyExceptionSpecification, bool AllowNoexceptAllMatchWithNoSpec, bool IsOperatorNew) argument 653 CheckEquivalentExceptionSpec(const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID, const FunctionProtoType *Old, SourceLocation OldLoc, const FunctionProtoType *New, SourceLocation NewLoc) argument 947 CheckOverridingFunctionExceptionSpec(const CXXMethodDecl *New, const CXXMethodDecl *Old) argument [all...] |
H A D | SemaDecl.cpp | 1531 /// We've determined that \p New is a redeclaration of \p Old. Check that they 1533 bool Sema::CheckRedeclarationModuleOwnership(NamedDecl *New, NamedDecl *Old) { argument 1539 Old->getOwningModuleForLinkage() != New->getOwningModuleForLinkage()) { 1540 New->setLocalOwningModule(Old->getOwningModule()); 1546 Module *OldM = Old->getOwningModule(); 1568 Diag(Old->getLocation(), diag::note_previous_declaration); 2157 NamedDecl *Old = Filter.next(); local 2160 if (S.isVisible(Old)) 2165 if (auto *OldTD = dyn_cast<TypedefNameDecl>(Old)) { 2183 bool Sema::isIncompatibleTypedef(TypeDecl *Old, TypedefNameDec argument 2270 TypeDecl *Old = OldDecls.getAsSingle<TypeDecl>(); local 2426 mergeAlignedAttrs(Sema &S, NamedDecl *New, Decl *Old) argument 2636 checkNewAttributesAfterDef(Sema &S, Decl *New, const Decl *Old) argument 2789 mergeDeclAttributes(NamedDecl *New, Decl *Old, AvailabilityMergeKind AMK) argument 3019 getNoteDiagForInvalidRedeclaration(const T *Old, const T *New) argument 3052 haveIncompatibleLanguageLinkages(const T *Old, const T *New) argument 3091 auto *Old = dyn_cast<ExpectedDecl>(OldS->getTargetDecl()); local 3179 FunctionDecl *Old = OldD->getAsFunction(); local 3782 MergeCompatibleFunctionDecls(FunctionDecl *New, FunctionDecl *Old, Scope *S, bool MergeTypeWithOld) argument 3840 diagnoseVarDeclTypeMismatch(Sema &S, VarDecl *New, VarDecl* Old) argument 3863 MergeVarDeclTypes(VarDecl *New, VarDecl *Old, bool MergeTypeWithOld) argument 3998 VarDecl *Old = nullptr; local 4221 notePreviousDefinition(const NamedDecl *Old, SourceLocation New) argument 4278 checkVarDeclRedefinition(VarDecl *Old, VarDecl *New) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTUnresolvedSet.h | 62 bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS) { argument 64 if (I->getDecl() == Old) {
|
H A D | UnresolvedSet.h | 102 bool replace(const NamedDecl* Old, NamedDecl *New) { argument 104 if (I->getDecl() == Old)
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | SCCIterator.h | 133 /// This informs the \c scc_iterator that the specified \c Old node 135 void ReplaceNode(NodeRef Old, NodeRef New) { argument 136 assert(nodeVisitNumbers.count(Old) && "Old not in scc_iterator?"); 139 auto tempVal = nodeVisitNumbers[Old]; 141 nodeVisitNumbers.erase(Old);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DWARFLinker/ |
H A D | DWARFLinkerCompileUnit.h | 37 const auto &Old = *I; local 38 assert(Old.getType() == DIEValue::isInteger); 39 *I = DIEValue(Old.getAttribute(), Old.getForm(), DIEInteger(New));
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | ScheduleDAGSDNodes.cpp | 89 SUnit *ScheduleDAGSDNodes::Clone(SUnit *Old) { argument 90 SUnit *SU = newSUnit(Old->getNode()); 91 SU->OrigNode = Old->OrigNode; 92 SU->Latency = Old->Latency; 93 SU->isVRegCycle = Old->isVRegCycle; 94 SU->isCall = Old->isCall; 95 SU->isCallOp = Old->isCallOp; 96 SU->isTwoAddress = Old->isTwoAddress; 97 SU->isCommutable = Old->isCommutable; 98 SU->hasPhysRegDefs = Old [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 60 DelayedBasicBlock(const BlockAddress &Old) argument 61 : OldBB(Old.getBasicBlock()), 62 TempBB(BasicBlock::Create(Old.getContext())) {} 602 Metadata *Old = N.getOperand(I); local 603 Metadata *New = mapOperand(Old); 605 if (Old != New) 714 remapOperands(*ClonedN, [this, &D, &G](Metadata *Old) { 715 if (Optional<Metadata *> MappedOp = getMappedOp(Old)) 718 assert(G.Info[Old].ID > D.ID && "Expected a forward reference"); 719 return &G.getFwdReference(*cast<MDNode>(Old)); 882 MDNode *Old = MI.second; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | BasicBlock.cpp | 435 // know that incoming branches will be from New, not from Old (this). 441 void BasicBlock::replacePhiUsesWith(BasicBlock *Old, BasicBlock *New) { argument 448 PN->replaceIncomingBlockWith(Old, New); 452 void BasicBlock::replaceSuccessorsPhiUsesWith(BasicBlock *Old, argument 459 llvm::for_each(successors(TI), [Old, New](BasicBlock *Succ) { 460 Succ->replacePhiUsesWith(Old, New);
|
H A D | Value.cpp | 924 void ValueHandleBase::ValueIsRAUWd(Value *Old, Value *New) { argument 925 assert(Old->HasValueHandle &&"Should only be called if ValueHandles present"); 926 assert(Old != New && "Changing value into itself!"); 927 assert(Old->getType() == New->getType() && 932 LLVMContextImpl *pImpl = Old->getContext().pImpl; 933 ValueHandleBase *Entry = pImpl->ValueHandles[Old]; 952 // Weak goes to the new value, which will unlink it from Old's list. 965 if (Old->HasValueHandle) 966 for (Entry = pImpl->ValueHandles[Old]; Entry; Entry = Entry->Next) 969 dbgs() << "After RAUW from " << *Old [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARC/ |
H A D | ARCFrameLowering.cpp | 474 MachineInstr &Old = *I; local 475 DebugLoc dl = Old.getDebugLoc(); 476 unsigned Amt = Old.getOperand(0).getImm(); 479 if (Amt > AFI->MaxCallStackReq && Old.getOpcode() == ARC::ADJCALLSTACKDOWN) 483 assert((Old.getOpcode() == ARC::ADJCALLSTACKDOWN || 484 Old.getOpcode() == ARC::ADJCALLSTACKUP) && 486 bool IsAdd = (Old.getOpcode() == ARC::ADJCALLSTACKUP);
|