| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | InterpBlock.cpp | 69 void Block::replacePointer(Pointer *Old, Pointer *New) { in replacePointer() argument 70 assert(Old); in replacePointer() 72 assert(Old != New); in replacePointer() 78 assert(hasPointer(Old)); in replacePointer() 81 if (Old->Prev) in replacePointer() 82 Old->Prev->Next = New; in replacePointer() 83 if (Old->Next) in replacePointer() 84 Old->Next->Prev = New; in replacePointer() 85 New->Prev = Old->Prev; in replacePointer() 86 New->Next = Old->Next; in replacePointer() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | ConstantMerge.cpp | 104 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable() argument 105 if (!Old->hasGlobalUnnamedAddr() && !New->hasGlobalUnnamedAddr()) in makeMergeable() 107 if (hasMetadataOtherThanDebugLoc(Old)) in makeMergeable() 110 if (!Old->hasGlobalUnnamedAddr()) in makeMergeable() 115 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace() argument 118 LLVM_DEBUG(dbgs() << "Replacing global: @" << Old->getName() << " -> @" in replace() 122 if (Old->getAlign() || New->getAlign()) in replace() 123 New->setAlignment(std::max(getAlign(Old), getAlign(New))); in replace() 125 copyDebugLocMetadata(Old, New); in replace() 126 Old->replaceAllUsesWith(NewConstant); in replace() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Mutations.cpp | 40 static void replace(syntax::Node *Old, syntax::Node *New) { in replace() argument 41 assert(Old != nullptr); in replace() 42 assert(Old->Parent != nullptr); in replace() 43 assert(Old->canModify()); in replace() 49 New->Role = Old->Role; in replace() 50 auto *P = Old->getParent(); in replace() 51 P->replaceChildRangeLowLevel(Old, Old->getNextSibling(), New); in replace()
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | ValueList.cpp | 31 auto &Old = ValuePtrs[Idx]; in assignValue() local 32 if (!Old.first) { in assignValue() 33 Old.first = V; in assignValue() 34 Old.second = TypeID; in assignValue() 38 assert(!isa<Constant>(&*Old.first) && "Shouldn't update constant"); in assignValue() 40 Value *PrevVal = Old.first; in assignValue() 45 Old.first->replaceAllUsesWith(V); in assignValue()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Allocator.h | 87 BumpPtrAllocatorImpl(BumpPtrAllocatorImpl &&Old) in BumpPtrAllocatorImpl() argument 88 : AllocTy(std::move(Old.getAllocator())), CurPtr(Old.CurPtr), in BumpPtrAllocatorImpl() 89 End(Old.End), Slabs(std::move(Old.Slabs)), in BumpPtrAllocatorImpl() 90 CustomSizedSlabs(std::move(Old.CustomSizedSlabs)), in BumpPtrAllocatorImpl() 91 BytesAllocated(Old.BytesAllocated), RedZoneSize(Old.RedZoneSize) { in BumpPtrAllocatorImpl() 92 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl() 93 Old.BytesAllocated = 0; in BumpPtrAllocatorImpl() 94 Old.Slabs.clear(); in BumpPtrAllocatorImpl() 95 Old.CustomSizedSlabs.clear(); in BumpPtrAllocatorImpl() 399 SpecificBumpPtrAllocator(SpecificBumpPtrAllocator &&Old) in SpecificBumpPtrAllocator() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanUtils.h | 199 static void reassociateBlocks(VPBlockBase *Old, VPBlockBase *New) { in reassociateBlocks() argument 200 for (auto *Pred : to_vector(Old->getPredecessors())) in reassociateBlocks() 201 Pred->replaceSuccessor(Old, New); in reassociateBlocks() 202 for (auto *Succ : to_vector(Old->getSuccessors())) in reassociateBlocks() 203 Succ->replacePredecessor(Old, New); in reassociateBlocks() 204 New->setPredecessors(Old->getPredecessors()); in reassociateBlocks() 205 New->setSuccessors(Old->getSuccessors()); in reassociateBlocks() 206 Old->clearPredecessors(); in reassociateBlocks() 207 Old->clearSuccessors(); in reassociateBlocks()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaExceptionSpec.cpp | 266 const FunctionProtoType *Old, SourceLocation OldLoc, 292 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { in CheckEquivalentExceptionSpec() argument 314 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckEquivalentExceptionSpec() 315 DelayedEquivalentExceptionSpecChecks.push_back({New, Old}); in CheckEquivalentExceptionSpec() 323 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(), in CheckEquivalentExceptionSpec() 332 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { in CheckEquivalentExceptionSpec() 334 << hasImplicitExceptionSpec(Old); in CheckEquivalentExceptionSpec() 335 if (Old->getLocation().isValid()) in CheckEquivalentExceptionSpec() 336 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckEquivalentExceptionSpec() 357 (Old->getLocation().isInvalid() || in CheckEquivalentExceptionSpec() [all …]
|
| H A D | SemaDecl.cpp | 1613 bool Sema::CheckRedeclarationModuleOwnership(NamedDecl *New, NamedDecl *Old) { in CheckRedeclarationModuleOwnership() argument 1622 Old->getOwningModuleForLinkage() != New->getOwningModuleForLinkage()) { in CheckRedeclarationModuleOwnership() 1623 New->setLocalOwningModule(Old->getOwningModule()); in CheckRedeclarationModuleOwnership() 1629 Module *OldM = Old->getOwningModule(); in CheckRedeclarationModuleOwnership() 1664 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckRedeclarationModuleOwnership() 1672 bool Sema::CheckRedeclarationExported(NamedDecl *New, NamedDecl *Old) { in CheckRedeclarationExported() argument 1681 !Old->getLexicalDeclContext() in CheckRedeclarationExported() 1687 bool IsOldExported = Old->isInExportDeclContext(); in CheckRedeclarationExported() 1701 if (!Old->isInNamedModule() && New->getOwningModule() && in CheckRedeclarationExported() 1707 auto Lk = Old->getFormalLinkage(); in CheckRedeclarationExported() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegColoring.cpp | 289 Register Old = LI->reg(); in runOnMachineFunction() local 291 const TargetRegisterClass *RC = MRI->getRegClass(Old); in runOnMachineFunction() 294 if (!MRI->isLiveIn(Old)) in runOnMachineFunction() 308 Changed |= Old != New; in runOnMachineFunction() 312 if (Old != New && MFI.isFrameBaseVirtual() && MFI.getFrameBaseVreg() == Old) in runOnMachineFunction() 325 Register Old = SortedIntervals[I]->reg(); in runOnMachineFunction() local 327 if (Old != New) in runOnMachineFunction() 328 MRI->replaceRegWith(Old, New); in runOnMachineFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LiveRangeShrink.cpp | 78 MachineInstr *Old, in FindDominatedInstruction() argument 82 return Old; in FindDominatedInstruction() 83 if (Old == nullptr) in FindDominatedInstruction() 85 unsigned OrderOld = M.find(Old)->second; in FindDominatedInstruction() 88 return OrderOld < OrderNew ? &New : Old; in FindDominatedInstruction() 91 for (MachineInstr *I = Old->getNextNode(); M.find(I)->second == OrderNew; in FindDominatedInstruction() 95 return Old; in FindDominatedInstruction()
|
| H A D | MachineFunction.cpp | 956 void MachineFunction::copyAdditionalCallInfo(const MachineInstr *Old, in copyAdditionalCallInfo() argument 958 assert(Old->shouldUpdateAdditionalCallInfo() && in copyAdditionalCallInfo() 963 return eraseAdditionalCallInfo(Old); in copyAdditionalCallInfo() 965 const MachineInstr *OldCallMI = getCallInstr(Old); in copyAdditionalCallInfo() 979 void MachineFunction::moveAdditionalCallInfo(const MachineInstr *Old, in moveAdditionalCallInfo() argument 981 assert(Old->shouldUpdateAdditionalCallInfo() && in moveAdditionalCallInfo() 986 return eraseAdditionalCallInfo(Old); in moveAdditionalCallInfo() 988 const MachineInstr *OldCallMI = getCallInstr(Old); in moveAdditionalCallInfo() 1019 void MachineFunction::substituteDebugValuesForInst(const MachineInstr &Old, in substituteDebugValuesForInst() argument 1023 unsigned OldInstrNum = Old.peekDebugInstrNum(); in substituteDebugValuesForInst() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | BasicBlockUtils.h | 292 LLVM_ABI BasicBlock *SplitBlock(BasicBlock *Old, BasicBlock::iterator SplitPt, 296 inline BasicBlock *SplitBlock(BasicBlock *Old, Instruction *SplitPt, DominatorTree *DT, 300 return SplitBlock(Old, SplitPt->getIterator(), DT, LI, MSSAU, BBName, Before); 311 LLVM_ABI BasicBlock *SplitBlock(BasicBlock *Old, BasicBlock::iterator SplitPt, 316 inline BasicBlock *SplitBlock(BasicBlock *Old, Instruction *SplitPt, 320 return SplitBlock(Old, SplitPt->getIterator(), DTU, LI, MSSAU, BBName, Before); 328 LLVM_ABI BasicBlock *splitBlockBefore(BasicBlock *Old, 333 inline BasicBlock *splitBlockBefore(BasicBlock *Old, Instruction *SplitPt, 336 return splitBlockBefore(Old, SplitPt->getIterator(), DTU, LI, MSSAU, BBName);
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerValueBitMap.h | 37 uintptr_t Old = Map[WordIdx]; in AddValue() local 38 uintptr_t New = Old | (1ULL << BitIdx); in AddValue() 40 return New != Old; in AddValue()
|
| /freebsd/usr.bin/indent/tests/ |
| H A D | comments.0.stdout | 13 * Old indent wrapped the URL near where this sentence ends. 19 * Old indent did not wrap to column 78 26 * Old indent unnecessarily removed the star comment continuation on
|
| H A D | comments.0 | 11 * Old indent wrapped the URL near where this sentence ends. 17 * Old indent did not wrap to column 78 23 * Old indent unnecessarily removed the star comment continuation on the next line.
|
| H A D | elsecomment.0 | 18 /* Old indent would remove the 3 blank lines above, awaiting "else". */ 34 else /* Old indent would get very confused here */
|
| H A D | elsecomment.0.stdout | 24 /* Old indent would remove the 3 blank lines above, awaiting "else". */ 39 else /* Old indent would get very confused here */
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
| H A D | MSP430FrameLowering.cpp | 367 MachineInstr &Old = *I; in eliminateCallFramePseudoInstr() local 368 uint64_t Amount = TII.getFrameSize(Old); in eliminateCallFramePseudoInstr() 376 if (Old.getOpcode() == TII.getCallFrameSetupOpcode()) { in eliminateCallFramePseudoInstr() 378 BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::SUB16ri), MSP430::SP) in eliminateCallFramePseudoInstr() 382 assert(Old.getOpcode() == TII.getCallFrameDestroyOpcode()); in eliminateCallFramePseudoInstr() 384 Amount -= TII.getFramePoppedByCallee(Old); in eliminateCallFramePseudoInstr() 386 New = BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::ADD16ri), in eliminateCallFramePseudoInstr() 404 MachineInstr &Old = *I; in eliminateCallFramePseudoInstr() local 406 BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::SUB16ri), MSP430::SP) in eliminateCallFramePseudoInstr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCExpandAtomicPseudoInsts.cpp | 146 Register Old = MI.getOperand(0).getReg(); in expandAtomicRMW128() local 147 Register OldHi = TRI->getSubReg(Old, PPC::sub_gp8_x0); in expandAtomicRMW128() 148 Register OldLo = TRI->getSubReg(Old, PPC::sub_gp8_x1); in expandAtomicRMW128() 159 BuildMI(CurrentMBB, DL, LL, Old).addReg(RA).addReg(RB); in expandAtomicRMW128() 222 Register Old = MI.getOperand(0).getReg(); in expandAtomicCmpSwap128() local 223 Register OldHi = TRI->getSubReg(Old, PPC::sub_gp8_x0); in expandAtomicCmpSwap128() 224 Register OldLo = TRI->getSubReg(Old, PPC::sub_gp8_x1); in expandAtomicCmpSwap128() 257 BuildMI(CurrentMBB, DL, LL, Old).addReg(RA).addReg(RB); in expandAtomicCmpSwap128()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | ValueMapper.cpp | 62 DelayedBasicBlock(const BlockAddress &Old) in DelayedBasicBlock() 63 : OldBB(Old.getBasicBlock()), in DelayedBasicBlock() 64 TempBB(BasicBlock::Create(Old.getContext())) {} in DelayedBasicBlock() 702 Metadata *Old = N.getOperand(I); in remapOperands() local 703 Metadata *New = mapOperand(Old); in remapOperands() 704 if (Old != New) in remapOperands() 705 LLVM_DEBUG(dbgs() << "Replacing Op " << Old << " with " << New << " in " in remapOperands() 708 if (Old != New) in remapOperands() 817 remapOperands(*ClonedN, [this, &D, &G](Metadata *Old) { in mapNodesInPOT() argument 818 if (std::optional<Metadata *> MappedOp = getMappedOp(Old)) in mapNodesInPOT() [all …]
|
| H A D | BasicBlockUtils.cpp | 887 static BasicBlock *SplitBlockImpl(BasicBlock *Old, BasicBlock::iterator SplitPt, in SplitBlockImpl() argument 893 return splitBlockBefore(Old, SplitPt, in SplitBlockImpl() 903 BasicBlock *New = Old->splitBasicBlock( in SplitBlockImpl() 904 SplitIt, Name.empty() ? Old->getName() + ".split" : Name); in SplitBlockImpl() 909 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl() 916 Updates.push_back({DominatorTree::Insert, Old, New}); in SplitBlockImpl() 921 Updates.push_back({DominatorTree::Delete, Old, SuccessorOfOld}); in SplitBlockImpl() 927 if (DomTreeNode *OldNode = DT->getNode(Old)) { in SplitBlockImpl() 930 DomTreeNode *NewNode = DT->addNewBlock(New, Old); in SplitBlockImpl() 938 MSSAU->moveAllAfterSpliceBlocks(Old, New, &*(New->begin())); in SplitBlockImpl() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | ScheduleDAGSDNodes.cpp | 90 SUnit *ScheduleDAGSDNodes::Clone(SUnit *Old) { in Clone() argument 91 SUnit *SU = newSUnit(Old->getNode()); in Clone() 92 SU->OrigNode = Old->OrigNode; in Clone() 93 SU->Latency = Old->Latency; in Clone() 94 SU->isVRegCycle = Old->isVRegCycle; in Clone() 95 SU->isCall = Old->isCall; in Clone() 96 SU->isCallOp = Old->isCallOp; in Clone() 97 SU->isTwoAddress = Old->isTwoAddress; in Clone() 98 SU->isCommutable = Old->isCommutable; in Clone() 99 SU->hasPhysRegDefs = Old->hasPhysRegDefs; in Clone() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | LazyAtomicPointer.h | 57 T *Old = nullptr; in exchange() local 58 while (!compare_exchange_weak(Old, Value)) { in exchange() 60 return Old; in exchange()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinkerCompileUnit.h | |
| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Classic/ |
| H A D | DWARFLinkerCompileUnit.h | 48 const auto &Old = *I; in set() local 49 assert(Old.getType() == DIEValue::isInteger); in set() 50 *I = DIEValue(Old.getAttribute(), Old.getForm(), DIEInteger(New)); in set()
|