/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A D | Mutations.cpp | 31 static void addAfter(syntax::Node *Anchor, syntax::Node *New, NodeRole Role) { argument 33 assert(New->Parent == nullptr); 34 assert(New->NextSibling == nullptr); 35 assert(!New->isDetached()); 38 New->Role = static_cast<unsigned>(Role); 40 P->replaceChildRangeLowLevel(Anchor, Anchor, New); 46 static void replace(syntax::Node *Old, syntax::Node *New) { argument 50 assert(New->Parent == nullptr); 51 assert(New->NextSibling == nullptr); 52 assert(New 56 P->replaceChildRangeLowLevel(findPrevious(Old), Old->nextSibling(), New); local [all...] |
H A D | Tree.cpp | 81 Node *New) { 85 for (auto *N = New; N; N = N->nextSibling()) { 108 BeforeBegin->NextSibling = New ? New : End; 110 FirstChild = New ? New : End; 112 if (New) { 113 auto *Last = New; 114 for (auto *N = New; N != nullptr; N = N->nextSibling()) { 80 replaceChildRangeLowLevel(Node *BeforeBegin, Node *End, Node *New) argument
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | wrappers_cpp.cpp | 27 return AllocatorPtr->allocate(size, scudo::Chunk::Origin::New); 34 return AllocatorPtr->allocate(size, scudo::Chunk::Origin::New); 41 return AllocatorPtr->allocate(size, scudo::Chunk::Origin::New, 50 return AllocatorPtr->allocate(size, scudo::Chunk::Origin::New, 60 AllocatorPtr->deallocate(ptr, scudo::Chunk::Origin::New); 66 AllocatorPtr->deallocate(ptr, scudo::Chunk::Origin::New); 73 AllocatorPtr->deallocate(ptr, scudo::Chunk::Origin::New, size); 79 AllocatorPtr->deallocate(ptr, scudo::Chunk::Origin::New, 0, 89 AllocatorPtr->deallocate(ptr, scudo::Chunk::Origin::New, 0, 99 AllocatorPtr->deallocate(ptr, scudo::Chunk::Origin::New, siz [all...] |
/freebsd-12-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()) 110 assert(!hasMetadataOtherThanDebugLoc(New)); 112 New->setUnnamedAddr(GlobalValue::UnnamedAddr::None); 116 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { argument 117 Constant *NewConstant = New; 120 << New->getName() << "\n"); 123 if (Old->getAlignment() || New->getAlignment()) 124 New->setAlignment(Align(std::max(getAlignment(Old), getAlignment(New)))); 238 GlobalVariable *New = SameContentReplacements[i].second; local [all...] |
H A D | IPConstantPropagation.cpp | 240 Value* New = RetVals[0]; local 241 if (Argument *A = dyn_cast<Argument>(New)) 244 New = CS.getArgument(A->getArgNo()); 245 Call->replaceAllUsesWith(New); 264 Value *New = RetVals[index]; local 265 if (New) { 266 if (Argument *A = dyn_cast<Argument>(New)) 269 New = CS.getArgument(A->getArgNo()); 270 Ins->replaceAllUsesWith(New);
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerValueBitMap.h | 37 uintptr_t New = Old | (1ULL << BitIdx); local 38 Map[WordIdx] = New; 39 return New != Old;
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CloneModule.cpp | 50 std::unique_ptr<Module> New = 52 New->setSourceFileName(M.getSourceFileName()); 53 New->setDataLayout(M.getDataLayout()); 54 New->setTargetTriple(M.getTargetTriple()); 55 New->setModuleInlineAsm(M.getModuleInlineAsm()); 63 GlobalVariable *GV = new GlobalVariable(*New, 78 I.getAddressSpace(), I.getName(), New.get()); 95 I->getAddressSpace(), I->getName(), New.get()); 98 *New, I->getValueType(), false, GlobalValue::ExternalLinkage, 109 I->getLinkage(), I->getName(), New [all...] |
/freebsd-12-stable/usr.sbin/ctm/ctm/ |
H A D | ctm_syntax.c | 29 #define New CTM_Q_Name_New macro 37 { Name|File|New|Subst, Uid, Gid, Mode, 55 { Name|Dir|New , Uid, Gid, Mode, 0 };
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyRegColoring.cpp | 155 unsigned New = SortedIntervals[Color]->reg; local 156 SlotMapping[I] = New; 157 Changed |= Old != New; 161 << " to vreg" << Register::virtReg2Index(New) << "\n"); 169 unsigned New = SlotMapping[I]; local 170 if (Old != New) 171 MRI->replaceRegWith(Old, New);
|
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | UnresolvedSet.h | 102 bool replace(const NamedDecl* Old, NamedDecl *New) { argument 105 return (I->setDecl(New), true); 111 void replace(iterator I, NamedDecl *New) { I.I->setDecl(New); } argument 113 void replace(iterator I, NamedDecl *New, AccessSpecifier AS) { argument 114 I.I->set(New, AS);
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | OrderedBasicBlock.cpp | 102 const Instruction *New) { 107 NumberedInsts.insert({New, OI->second}); 109 LastInstFound = New->getIterator(); 101 replaceInstruction(const Instruction *Old, const Instruction *New) argument
|
/freebsd-12-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 69 void replaceInstruction(const Instruction *Old, const Instruction *New);
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_symbolize.cpp | 48 // New API: call __tsan_symbolize_external_ex only when it exists. 66 ssb->tail->next = SymbolizedStack::New(ssb->addr); 69 ssb->head = ssb->tail = SymbolizedStack::New(ssb->addr); 96 SymbolizedStack *frame = SymbolizedStack::New(addr); 113 ReportLocation *ent = ReportLocation::New(ReportLocationGlobal);
|
H A D | tsan_report.h | 43 static ReportStack *New(); 86 static ReportLocation *New(ReportLocationType type);
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/LTO/ |
H A D | SummaryBasedOptimizations.cpp | 63 auto AddToEntryCount = [](ValueInfo V, Scaled64 New) { 70 SaturatingAdd(F->entryCount(), New.template toInt<uint64_t>()));
|
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineJumpTableInfo.h | 110 /// the jump tables to branch to New instead. 111 bool ReplaceMBBInJumpTables(MachineBasicBlock *Old, MachineBasicBlock *New); 114 /// the jump table to branch to New instead. 116 MachineBasicBlock *New);
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | BasicBlock.cpp | 419 BasicBlock *New = BasicBlock::Create(getContext(), BBName, getParent(), local 426 New->getInstList().splice(New->end(), this->getInstList(), I, end()); 429 BranchInst *BI = BranchInst::Create(New, this); 432 // Now we must loop through all of the successors of the New block (which 435 // know that incoming branches will be from New, not from Old (this). 437 New->replaceSuccessorsPhiUsesWith(this, New); 438 return New; 441 void BasicBlock::replacePhiUsesWith(BasicBlock *Old, BasicBlock *New) { argument 452 replaceSuccessorsPhiUsesWith(BasicBlock *Old, BasicBlock *New) argument 464 replaceSuccessorsPhiUsesWith(BasicBlock *New) argument [all...] |
H A D | Value.cpp | 399 void Value::doRAUW(Value *New, ReplaceMetadataUses ReplaceMetaUses) { argument 400 assert(New && "Value::replaceAllUsesWith(<null>) is invalid!"); 401 assert(!contains(New, this) && 403 assert(New->getType() == getType() && 408 ValueHandleBase::ValueIsRAUWd(this, New); 410 ValueAsMetadata::handleRAUW(this, New); 418 C->handleOperandChange(this, New); 423 U.set(New); 427 BB->replaceSuccessorsPhiUsesWith(cast<BasicBlock>(New)); 430 void Value::replaceAllUsesWith(Value *New) { argument 434 replaceNonMetadataUsesWith(Value *New) argument 440 replaceUsesOutsideBlock(Value *New, BasicBlock *BB) argument 924 ValueIsRAUWd(Value *Old, Value *New) argument [all...] |
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 254 const FunctionProtoType *New, SourceLocation NewLoc, 279 bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { argument 286 OverloadedOperatorKind OO = New->getDeclName().getCXXOverloadedOperator(); 301 if (exceptionSpecNotKnownYet(Old) || exceptionSpecNotKnownYet(New)) { 302 DelayedEquivalentExceptionSpecChecks.push_back({New, Old}); 311 New->getType()->getAs<FunctionProtoType>(), New->getLocation(), 319 hasImplicitExceptionSpec(Old) != hasImplicitExceptionSpec(New)) { 320 Diag(New->getLocation(), diag::ext_implicit_exception_spec_mismatch) 334 New 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 | 1417 const FunctionDecl *New) { 1426 New->hasAttr<OverloadableAttr>()); 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 1538 if (New->getFriendObjectKind() && 1539 Old->getOwningModuleForLinkage() != New->getOwningModuleForLinkage()) { 1540 New->setLocalOwningModule(Old->getOwningModule()); 1541 makeMergedDefinitionVisible(New); 1545 Module *NewM = New->getOwningModule(); 1562 Diag(New 1415 AllowOverloadingOfFunction(LookupResult &Previous, ASTContext &Context, const FunctionDecl *New) argument 2103 FunctionDecl *New = FunctionDecl::Create(Context, local 2183 isIncompatibleTypedef(TypeDecl *Old, TypedefNameDecl *New) argument 2222 MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, LookupResult &OldDecls) argument 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 3072 checkUsingShadowRedecl(Sema &S, UsingShadowDecl *OldS, ExpectedDecl *New) argument 3176 MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, bool MergeTypeWithOld) argument 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 3987 MergeVarDecl(VarDecl *New, LookupResult &Previous) argument 4221 notePreviousDefinition(const NamedDecl *Old, SourceLocation New) argument 4278 checkVarDeclRedefinition(VarDecl *Old, VarDecl *New) argument 5721 NamedDecl *New; local 13202 ParmVarDecl *New = local 13325 ParmVarDecl *New = ParmVarDecl::Create(Context, DC, StartLoc, NameLoc, Name, local 15558 TagDecl *New; local 17281 EnumConstantDecl *New = local 17739 FileScopeAsmDecl *New = FileScopeAsmDecl::Create(Context, CurContext, local [all...] |
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 245 MachineInstr *New = nullptr; local 247 New = 256 New = BuildMI(MF, Old.getDebugLoc(), TII.get(MSP430::ADD16ri), 262 if (New) { 264 New->getOperand(3).setIsDead(); 267 MBB.insert(I, New); 275 MachineInstr *New = local 280 New->getOperand(3).setIsDead(); 282 MBB.insert(I, New);
|
/freebsd-12-stable/contrib/llvm-project/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 120 std::unique_ptr<Module> New = runPassesOn(Clone.get(), Passes); local 121 if (!New) { 125 return New; 143 std::unique_ptr<Module> New = runPassesOn(M.get(), CleanupPasses); local 144 if (!New) { 148 return New; 320 std::unique_ptr<Module> New = CloneModule(*M, NewVMap); local 334 for (Function &I : *New) 361 SplitStaticCtorDtor("llvm.global_ctors", M, New.get(), NewVMap); 362 SplitStaticCtorDtor("llvm.global_dtors", M, New [all...] |
/freebsd-12-stable/contrib/llvm-project/clang/lib/Driver/ |
H A D | Multilib.cpp | 172 static Multilib compose(const Multilib &Base, const Multilib &New) { argument 174 llvm::sys::path::append(GCCSuffix, "/", Base.gccSuffix(), New.gccSuffix()); 176 llvm::sys::path::append(OSSuffix, "/", Base.osSuffix(), New.osSuffix()); 179 New.includeSuffix()); 186 Flags.insert(Flags.end(), New.flags().begin(), New.flags().end()); 198 for (const auto &New : MultilibSegments) { 200 Multilib MO = compose(Base, New);
|
/freebsd-12-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 76 /// \p New. 77 static MachineInstr *FindDominatedInstruction(MachineInstr &New, argument 80 auto NewIter = M.find(&New); 84 return &New; 88 return OrderOld < OrderNew ? &New : Old; 90 // can reach New, if yes, New is dominated by Old. 93 if (I == &New) [all...] |
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | RangeConstraintManager.cpp | 569 RangeSet New = getRange(St, Sym).Intersect(getBasicVals(), F, Upper, Lower); local 570 return New.isEmpty() ? nullptr : St->set<ConstraintRange>(Sym, New); 584 RangeSet New = getRange(St, Sym).Intersect(getBasicVals(), F, AdjInt, AdjInt); local 585 return New.isEmpty() ? nullptr : St->set<ConstraintRange>(Sym, New); 620 RangeSet New = getSymLTRange(St, Sym, Int, Adjustment); local 621 return New.isEmpty() ? nullptr : St->set<ConstraintRange>(Sym, New); 656 RangeSet New local 692 RangeSet New = getSymGERange(St, Sym, Int, Adjustment); local [all...] |