/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 | 48 static void replace(syntax::Node *Old, syntax::Node *New) { in replace() argument 49 assert(Old != nullptr); in replace() 50 assert(Old->Parent != nullptr); in replace() 51 assert(Old->canModify()); in replace() 57 New->Role = Old->Role; in replace() 58 auto *P = Old->getParent(); in replace() 59 P->replaceChildRangeLowLevel(Old, Old->getNextSibling(), New); in replace()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | ValueList.cpp | 35 auto &Old = ValuePtrs[Idx]; in assignValue() 36 if (!Old.first) { in assignValue() local 37 Old.first = V; in assignValue() 38 Old.second = TypeID; in assignValue() 42 assert(!isa<Constant>(&*Old.first) && "Shouldn't update constant"); in assignValue() 44 Value *PrevVal = Old.first; in assignValue() 49 Old.first->replaceAllUsesWith(V); in assignValue()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Allocator.h | 86 BumpPtrAllocatorImpl(BumpPtrAllocatorImpl &&Old) in BumpPtrAllocatorImpl() argument 87 : AllocTy(std::move(Old.getAllocator())), CurPtr(Old.CurPtr), in BumpPtrAllocatorImpl() 88 End(Old.End), Slabs(std::move(Old.Slabs)), in BumpPtrAllocatorImpl() 89 CustomSizedSlabs(std::move(Old.CustomSizedSlabs)), in BumpPtrAllocatorImpl() 90 BytesAllocated(Old.BytesAllocated), RedZoneSize(Old.RedZoneSize) { in BumpPtrAllocatorImpl() 91 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl() 92 Old.BytesAllocated = 0; in BumpPtrAllocatorImpl() 93 Old.Slabs.clear(); in BumpPtrAllocatorImpl() 94 Old.CustomSizedSlabs.clear(); in BumpPtrAllocatorImpl() 396 SpecificBumpPtrAllocator(SpecificBumpPtrAllocator &&Old) in SpecificBumpPtrAllocator() argument [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | InterpBlock.cpp | 61 void Block::replacePointer(Pointer *Old, Pointer *New) { in replacePointer() argument 62 assert(Old); in replacePointer() 70 assert(hasPointer(Old)); in replacePointer() 73 removePointer(Old); in replacePointer() 76 Old->PointeeStorage.BS.Pointee = nullptr; in replacePointer() 79 assert(!hasPointer(Old)); in replacePointer()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 264 const FunctionProtoType *Old, SourceLocation OldLoc, 290 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { in CheckEquivalentExceptionSpec() argument 312 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { in CheckEquivalentExceptionSpec() 313 DelayedEquivalentExceptionSpecChecks.push_back({New, Old}); in CheckEquivalentExceptionSpec() 321 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(), in CheckEquivalentExceptionSpec() 330 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { in CheckEquivalentExceptionSpec() 332 << hasImplicitExceptionSpec(Old); in CheckEquivalentExceptionSpec() 333 if (Old->getLocation().isValid()) in CheckEquivalentExceptionSpec() 334 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckEquivalentExceptionSpec() 355 (Old->getLocation().isInvalid() || in CheckEquivalentExceptionSpec() [all …]
|
H A D | SemaDecl.cpp | 1596 bool Sema::CheckRedeclarationModuleOwnership(NamedDecl *New, NamedDecl *Old) { in CheckRedeclarationModuleOwnership() argument 1605 Old->getOwningModuleForLinkage() != New->getOwningModuleForLinkage()) { in CheckRedeclarationModuleOwnership() 1606 New->setLocalOwningModule(Old->getOwningModule()); in CheckRedeclarationModuleOwnership() 1612 Module *OldM = Old->getOwningModule(); in CheckRedeclarationModuleOwnership() 1647 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckRedeclarationModuleOwnership() 1655 bool Sema::CheckRedeclarationExported(NamedDecl *New, NamedDecl *Old) { in CheckRedeclarationExported() argument 1664 !Old->getLexicalDeclContext() in CheckRedeclarationExported() 1670 bool IsOldExported = Old->isInExportDeclContext(); in CheckRedeclarationExported() 1684 if (!Old->isInNamedModule() && New->getOwningModule() && in CheckRedeclarationExported() 1690 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 | 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, in FindDominatedInstruction() 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() 89 // OrderOld == OrderNew, we need to iterate down from Old t in FindDominatedInstruction() 77 FindDominatedInstruction(MachineInstr & New,MachineInstr * Old,const InstOrderMap & M) FindDominatedInstruction() argument [all...] |
H A D | MachineFunction.cpp | 912 void MachineFunction::copyCallSiteInfo(const MachineInstr *Old, in copyCallSiteInfo() argument 914 assert(Old->shouldUpdateCallSiteInfo() && in copyCallSiteInfo() 919 return eraseCallSiteInfo(Old); in copyCallSiteInfo() 921 const MachineInstr *OldCallMI = getCallInstr(Old); in copyCallSiteInfo() 930 void MachineFunction::moveCallSiteInfo(const MachineInstr *Old, in moveCallSiteInfo() argument 932 assert(Old->shouldUpdateCallSiteInfo() && in moveCallSiteInfo() 937 return eraseCallSiteInfo(Old); in moveCallSiteInfo() 939 const MachineInstr *OldCallMI = getCallInstr(Old); in moveCallSiteInfo() 964 void MachineFunction::substituteDebugValuesForInst(const MachineInstr &Old, in substituteDebugValuesForInst() argument 968 unsigned OldInstrNum = Old.peekDebugInstrNum(); in substituteDebugValuesForInst() [all …]
|
H A D | InterleavedLoadCombinePass.cpp | 754 VectorInfo Old(VTy); in computeFromBCI() local 755 if (!compute(Op, Old, DL)) in computeFromBCI() 761 ElementInfo(Old.EI[i / Factor].Ofs + j * NewSize, in computeFromBCI() 762 j == 0 ? Old.EI[i / Factor].LI : nullptr); in computeFromBCI() 766 Result.BB = Old.BB; in computeFromBCI() 767 Result.PV = Old.PV; in computeFromBCI() 768 Result.LIs.insert(Old.LIs.begin(), Old.LIs.end()); in computeFromBCI() 769 Result.Is.insert(Old.Is.begin(), Old.Is.end()); in computeFromBCI()
|
/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 | 369 MachineInstr &Old = *I; in eliminateCallFramePseudoInstr() local 370 uint64_t Amount = TII.getFrameSize(Old); in eliminateCallFramePseudoInstr() 378 if (Old.getOpcode() == TII.getCallFrameSetupOpcode()) { in eliminateCallFramePseudoInstr() 380 BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::SUB16ri), MSP430::SP) in eliminateCallFramePseudoInstr() 384 assert(Old.getOpcode() == TII.getCallFrameDestroyOpcode()); in eliminateCallFramePseudoInstr() 386 Amount -= TII.getFramePoppedByCallee(Old); in eliminateCallFramePseudoInstr() 388 New = BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::ADD16ri), in eliminateCallFramePseudoInstr() 406 MachineInstr &Old = *I; in eliminateCallFramePseudoInstr() local 408 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 | 149 Register Old = MI.getOperand(0).getReg(); in expandAtomicRMW128() local 150 Register OldHi = TRI->getSubReg(Old, PPC::sub_gp8_x0); in expandAtomicRMW128() 151 Register OldLo = TRI->getSubReg(Old, PPC::sub_gp8_x1); in expandAtomicRMW128() 162 BuildMI(CurrentMBB, DL, LL, Old).addReg(RA).addReg(RB); in expandAtomicRMW128() 225 Register Old = MI.getOperand(0).getReg(); in expandAtomicCmpSwap128() local 226 Register OldHi = TRI->getSubReg(Old, PPC::sub_gp8_x0); in expandAtomicCmpSwap128() 227 Register OldLo = TRI->getSubReg(Old, PPC::sub_gp8_x1); in expandAtomicCmpSwap128() 260 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() 700 Metadata *Old = N.getOperand(I); in remapOperands() local 701 Metadata *New = mapOperand(Old); in remapOperands() 702 if (Old != New) in remapOperands() 703 LLVM_DEBUG(dbgs() << "Replacing Op " << Old << " with " << New << " in " in remapOperands() 706 if (Old != New) in remapOperands() 815 remapOperands(*ClonedN, [this, &D, &G](Metadata *Old) { in mapNodesInPOT() argument 816 if (std::optional<Metadata *> MappedOp = getMappedOp(Old)) in mapNodesInPOT() [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 | 47 const auto &Old = *I; in set() local 48 assert(Old.getType() == DIEValue::isInteger); in set() 49 *I = DIEValue(Old.getAttribute(), Old.getForm(), DIEInteger(New)); in set()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineJumpTableInfo.h | 119 /// ReplaceMBBInJumpTables - If Old is the target of any jump tables, update 121 bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New); 123 /// ReplaceMBBInJumpTable - If Old is a target of the jump tables, update 125 bool ReplaceMBBInJumpTable(unsigned Idx, MachineBasicBlock *Old,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/ |
H A D | ARCFrameLowering.cpp | 471 MachineInstr &Old = *I; in eliminateCallFramePseudoInstr() local 472 DebugLoc dl = Old.getDebugLoc(); in eliminateCallFramePseudoInstr() 473 unsigned Amt = Old.getOperand(0).getImm(); in eliminateCallFramePseudoInstr() 476 if (Amt > AFI->MaxCallStackReq && Old.getOpcode() == ARC::ADJCALLSTACKDOWN) in eliminateCallFramePseudoInstr() 480 assert((Old.getOpcode() == ARC::ADJCALLSTACKDOWN || in eliminateCallFramePseudoInstr() 481 Old.getOpcode() == ARC::ADJCALLSTACKUP) && in eliminateCallFramePseudoInstr() 483 bool IsAdd = (Old.getOpcode() == ARC::ADJCALLSTACKUP); in eliminateCallFramePseudoInstr()
|