| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | InterpBlock.cpp | 25 Pointers->Prev = P; in addPointer() 27 P->Prev = nullptr; in addPointer() 36 if (P->Prev) in removePointer() 39 P->Next->Prev = P->Prev; in removePointer() 50 To->Prev = From->Prev; in movePointer() 51 if (To->Prev) in movePointer() 67 Root->Prev = this; in DeadBlock() 70 Prev = nullptr; in DeadBlock() 80 if (Prev) in free() 81 Prev->Next = Next; in free() [all …]
|
| H A D | InterpStack.h | 90 StackChunk *Prev; member 93 StackChunk(StackChunk *Prev = nullptr) 94 : Next(nullptr), Prev(Prev), End(reinterpret_cast<char *>(this + 1)) {} in Next()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | list.h | 120 Last = Prev; in extract() 146 X->Prev = nullptr; in push_front() 162 T *Prev = Y->Prev; in insert() local 166 Prev->Next = X; in insert() 167 X->Prev = Prev; in insert() 169 Y->Prev = X; in insert() 181 X->Prev = Last; in push_back() 200 T *Prev = X->Prev; in remove() local 202 if (Prev) { in remove() 208 Next->Prev = Prev; in remove() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Serialization/ |
| H A D | SourceLocationEncoding.h | 94 UIntTy &Prev; variable 104 SourceLocationSequence(UIntTy &Prev) : Prev(Prev) {} in SourceLocationSequence() argument 110 if (Prev == 0) in encodeRaw() 111 return Prev = Rotated; in encodeRaw() 112 UIntTy Delta = Rotated - Prev; in encodeRaw() 113 Prev = Rotated; in encodeRaw() 121 if (Prev == 0) in decodeRaw() 122 return SourceLocationEncoding::decodeRaw(Prev = Encoded); in decodeRaw() 123 return SourceLocationEncoding::decodeRaw(Prev += zagZig(Encoded - 1)); in decodeRaw() 139 UIntTy Prev = 0; variable [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | SparseMultiSet.h | 101 unsigned Prev; member 113 return Prev == INVALID; in isTombstone() 147 return Dense[D.Prev].isTail(); in isHead() 155 return &Dense[N.Prev] == &N; in isSingleton() 250 unsigned Prev() const { return SMS->Dense[Idx].Prev; } in Prev() function 291 Idx = Prev(); 435 unsigned TailIdx = I.Prev(); in insert() 437 Dense[HeadIdx].Prev = NodeIdx; in insert() 500 Dense[N.Next].Prev = N.Prev; in unlink() 515 Dense[N.Next].Prev = N.Prev; in unlink() [all …]
|
| H A D | ilist_base.h | 23 node_base_type &Prev = *Next.getPrev(); in insertBeforeImpl() local 25 N.setPrev(&Prev); in insertBeforeImpl() 26 Prev.setNext(&N); in insertBeforeImpl() 31 node_base_type *Prev = N.getPrev(); in removeImpl() local 33 Next->setPrev(Prev); in removeImpl() 34 Prev->setNext(Next); in removeImpl() 42 node_base_type *Prev = First.getPrev(); in removeRangeImpl() local 44 Last.setPrev(Prev); in removeRangeImpl() 45 Prev->setNext(&Last); in removeRangeImpl() 71 First.setPrev(&Prev); in transferBeforeImpl() [all …]
|
| H A D | ilist_node_base.h | 22 ilist_node_base *Prev = nullptr; variable 26 void setPrev(ilist_node_base *Prev) { this->Prev = Prev; } in setPrev() argument 28 ilist_node_base *getPrev() const { return Prev; } in getPrev() 40 void setPrev(ilist_node_base *Prev) { PrevAndSentinel.setPointer(Prev); } in setPrev() argument
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantDeclarationCheck.cpp | 47 const auto *Prev = D->getPreviousDecl(); in check() local 48 if (!Prev) in check() 50 if (!Prev->getLocation().isValid()) in check() 52 if (Prev->getLocation() == D->getLocation()) in check() 55 (D->getLocation().isMacroID() || Prev->getLocation().isMacroID())) in check() 58 for (const auto &Parent : Result.Context->getParents(*Prev)) in check() 66 !SM.isWrittenInSameFile(Prev->getLocation(), D->getLocation()); in check() 87 diag(Prev->getLocation(), "previously declared here", DiagnosticIDs::Note); in check()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Use.cpp | 20 std::swap(Prev, RHS.Prev); in swap() 22 *Prev = this; in swap() 24 Next->Prev = &Next; in swap() 26 *RHS.Prev = &RHS; in swap() 28 RHS.Next->Prev = &RHS.Next; in swap()
|
| H A D | BasicBlock.cpp | 158 const Instruction *Prev = RI->getPrevNode(); in getTerminatingMustTailCall() local 159 if (!Prev) in getTerminatingMustTailCall() 163 if (RV != Prev) in getTerminatingMustTailCall() 167 if (auto *BI = dyn_cast<BitCastInst>(Prev)) { in getTerminatingMustTailCall() 169 Prev = BI->getPrevNode(); in getTerminatingMustTailCall() 170 if (!Prev || RV != Prev) in getTerminatingMustTailCall() 175 if (auto *CI = dyn_cast<CallInst>(Prev)) { in getTerminatingMustTailCall() 515 const Instruction *Prev = nullptr; in validateInstrOrdering() local 517 assert((!Prev || Prev->comesBefore(&I)) && in validateInstrOrdering() 519 Prev = &I; in validateInstrOrdering()
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_segmented_array.h | 35 Segment *Prev; member 120 S = S->Prev; 269 DCHECK_EQ(S->Prev, &SentinelSegment); in InitHeadAndTail() 285 DCHECK_EQ(S->Prev, &SentinelSegment); in AppendNewSegment() 287 S->Prev = Tail; in AppendNewSegment() 290 DCHECK_EQ(S, S->Prev->Next); in AppendNewSegment() 556 auto SPT = Tail->Prev; in trim() 558 Tail->Prev = &SentinelSegment; in trim() 596 auto SPT = Tail->Prev; in trim() 598 SFH->Prev = ST; in trim() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Use.h | 95 Use **Prev = nullptr; variable 101 Next->Prev = &Next; in addToList() 102 Prev = List; in addToList() 103 *Prev = this; in addToList() 107 *Prev = Next; in removeFromList() 109 Next->Prev = Prev; in removeFromList()
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | AllocCombiner.cpp | 71 MCInst *Prev = nullptr; in combineAdjustments() local 78 if (!Prev || !BC.MIB->isStackAdjustment(Inst) || in combineAdjustments() 79 !BC.MIB->isStackAdjustment(*Prev) || in combineAdjustments() 80 !getStackAdjustmentSize(BC, *Prev, Adjustment)) { in combineAdjustments() 81 Prev = &Inst; in combineAdjustments() 88 Prev->dump(); in combineAdjustments() 102 BB.eraseInstruction(BB.findInstruction(Prev)); in combineAdjustments() 106 Prev = &Inst; in combineAdjustments()
|
| H A D | FrameOptimizer.cpp | 75 for (auto I = Prev ? SAE.expr_begin(*Prev) : SAE.expr_begin(BB); in removeUnnecessaryLoads() 86 Prev = &Inst; in removeUnnecessaryLoads() 94 Prev = &Inst; in removeUnnecessaryLoads() 98 for (auto I = Prev ? SAE.expr_begin(*Prev) : SAE.expr_begin(BB); in removeUnnecessaryLoads() 151 Prev = &Inst; in removeUnnecessaryLoads() 179 for (auto I = Prev ? SRU.expr_begin(*Prev) : SRU.expr_begin(BB); in removeUnusedStores() 187 Prev = &Inst; in removeUnusedStores() 191 Prev = &Inst; in removeUnusedStores() 196 Prev ? SRU.expr_begin(*Prev) : SRU.expr_begin(BB))) { in removeUnusedStores() 197 Prev = &Inst; in removeUnusedStores() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyDebugFixup.cpp | 110 auto Prev = Stack.back(); in runOnMachineFunction() local 112 assert(Prev.Reg == MO.getReg() && in runOnMachineFunction() 116 if (Prev.DebugValue && !MI.isTerminator()) { in runOnMachineFunction() 121 BuildMI(*Prev.DebugValue->getParent(), std::next(MII), in runOnMachineFunction() 122 Prev.DebugValue->getDebugLoc(), in runOnMachineFunction() 124 Prev.DebugValue->getOperand(2).getMetadata(), in runOnMachineFunction() 125 Prev.DebugValue->getOperand(3).getMetadata()); in runOnMachineFunction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | AMDGPUEmitPrintf.cpp | 83 auto *Prev = Builder.GetInsertBlock(); in getStrlenWithNull() local 84 Module *M = Prev->getModule(); in getStrlenWithNull() 98 if (Prev->getTerminator()) { in getStrlenWithNull() 101 Prev->getTerminator()->eraseFromParent(); in getStrlenWithNull() 104 Prev->getParent()); in getStrlenWithNull() 108 Prev->getParent(), Join); in getStrlenWithNull() 111 Prev->getParent(), Join); in getStrlenWithNull() 114 Builder.SetInsertPoint(Prev); in getStrlenWithNull() 117 BranchInst::Create(Join, While, CmpNull, Prev); in getStrlenWithNull() 123 PtrPhi->addIncoming(Str, Prev); in getStrlenWithNull() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | MacroParenthesesCheck.cpp | 173 const Token &Prev = *(TI - 1); in argument() local 202 if (isSurroundedLeft(Prev) && isSurroundedRight(Next)) in argument() 206 if (Prev.isOneOf(tok::hash, tok::hashhash) || Next.is(tok::hashhash)) in argument() 210 if (Prev.isOneOf(tok::period, tok::arrow, tok::coloncolon, tok::arrowstar, in argument() 219 if (isStringLiteral(Prev.getKind()) || isStringLiteral(Next.getKind())) in argument() 223 if (isAnyIdentifier(Prev.getKind()) || isKeyword(Prev) || in argument() 232 if (Prev.is(tok::l_paren) && Next.is(tok::star) && in argument() 237 if (Prev.isOneOf(tok::equal, tok::kw_return) && Next.is(tok::semi)) in argument() 241 if (PP->getLangOpts().CPlusPlus && Prev.isOneOf(tok::comma, tok::less) && in argument() 246 if (Prev.is(tok::kw_namespace)) in argument()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | TypeTableCollection.cpp | 30 Optional<TypeIndex> TypeTableCollection::getNext(TypeIndex Prev) { in getNext() argument 31 assert(contains(Prev)); in getNext() 32 ++Prev; in getNext() 33 if (Prev.toArrayIndex() == size()) in getNext() 35 return Prev; in getNext()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/ |
| H A D | LineTable.cpp | 193 LineEntry Prev(BaseAddr, 1, Lines.front().Line); in encode() local 199 Out.writeULEB(Prev.Line); in encode() 207 if (Curr.Addr < Prev.Addr) in encode() 210 const uint64_t AddrDelta = Curr.Addr - Prev.Addr; in encode() 212 if (Curr.Line > Prev.Line) in encode() 213 LineDelta = Curr.Line - Prev.Line; in encode() 214 else if (Prev.Line > Curr.Line) in encode() 215 LineDelta = -((int32_t)(Prev.Line - Curr.Line)); in encode() 218 if (Curr.File != Prev.File) { in encode() 242 Prev = Curr; in encode()
|
| H A D | GsymCreator.cpp | 226 [&](const auto &Prev, const auto &Curr) { in finalize() argument 230 const bool ranges_equal = Prev.Range == Curr.Range; in finalize() 231 if (ranges_equal || Prev.Range.intersects(Curr.Range)) { in finalize() 240 if (Prev == Curr) { in finalize() 250 if (!Prev.hasRichInfo() && Curr.hasRichInfo()) { in finalize() 260 << Prev << "\nIn favor of this one:\n" in finalize() 269 << Prev << "\n" in finalize() 273 } else if (Prev.Range.size() == 0 && in finalize() 274 Curr.Range.contains(Prev.Range.start())) { in finalize() 277 << Prev << "\nKeeping:\n" in finalize()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineRegisterInfo.cpp | 274 MO->Contents.Reg.Prev = MO; in addRegOperandToUseList() 282 MachineOperand *Last = Head->Contents.Reg.Prev; in addRegOperandToUseList() 285 Head->Contents.Reg.Prev = MO; in addRegOperandToUseList() 286 MO->Contents.Reg.Prev = Last; in addRegOperandToUseList() 310 MachineOperand *Prev = MO->Contents.Reg.Prev; in removeRegOperandFromUseList() local 316 Prev->Contents.Reg.Next = Next; in removeRegOperandFromUseList() 318 (Next ? Next : Head)->Contents.Reg.Prev = Prev; in removeRegOperandFromUseList() 320 MO->Contents.Reg.Prev = nullptr; in removeRegOperandFromUseList() 351 MachineOperand *Prev = Src->Contents.Reg.Prev; in moveOperands() local 361 Prev->Contents.Reg.Next = Dst; in moveOperands() [all …]
|
| H A D | StackProtector.cpp | 480 Instruction *Prev = RI->getPrevNonDebugInstruction(); in InsertStackProtectors() local 481 if (Prev && isa<CallInst>(Prev) && cast<CallInst>(Prev)->isMustTailCall()) in InsertStackProtectors() 482 CheckLoc = Prev; in InsertStackProtectors() 483 else if (Prev) { in InsertStackProtectors() 484 Prev = Prev->getPrevNonDebugInstruction(); in InsertStackProtectors() 485 if (Prev && isa<CallInst>(Prev) && cast<CallInst>(Prev)->isMustTailCall()) in InsertStackProtectors() 486 CheckLoc = Prev; in InsertStackProtectors()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_ilist_test.cpp | 48 EXPECT_EQ(list.Prev(&node), nullptr); in TEST() 70 EXPECT_EQ(list.Prev(&nodes[0]), &nodes[1]); in TEST() 73 EXPECT_EQ(list.Prev(&nodes[1]), &nodes[2]); in TEST() 76 EXPECT_EQ(list.Prev(&nodes[2]), nullptr); in TEST() 106 EXPECT_EQ(list1.Prev(&nodes[1]), &nodes[2]); in TEST() 109 EXPECT_EQ(list2.Prev(&nodes[1]), nullptr); in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | UnicodeCharRanges.h | 72 uint32_t Prev = 0; in rangesAreValid() local 75 if (I != Ranges.begin() && Prev >= I->Lower) { in rangesAreValid() 77 LLVM_DEBUG(dbgs().write_hex(Prev)); in rangesAreValid() 89 Prev = I->Upper; in rangesAreValid()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXPeephole.cpp | 114 auto &Prev = *MRI.getUniqueVRegDef(Root.getOperand(1).getReg()); in CombineCVTAToLocal() local 120 BuildMI(MF, Root.getDebugLoc(), TII->get(Prev.getOpcode()), in CombineCVTAToLocal() 123 .add(Prev.getOperand(2)); in CombineCVTAToLocal() 128 if (MRI.hasOneNonDBGUse(Prev.getOperand(0).getReg())) { in CombineCVTAToLocal() 129 Prev.eraseFromParent(); in CombineCVTAToLocal()
|