/netbsd/external/apache2/llvm/dist/clang/lib/Lex/ |
H A D | DependencyDirectivesSourceMinimizer.cpp | 152 while (Last != End && *Last != '(') in skipRawString() 153 ++Last; in skipRawString() 172 Terminator[Last - First] == *Last) in skipRawString() 269 --Last; in findLastNonSpace() 394 if (*Last == '"' || *Last == '\'' || in printToNewline() 402 if (*Last != '/' || End - Last < 2) { in printToNewline() 407 if (Last[1] != '/' && Last[1] != '*') { in printToNewline() 487 while (Last != End && (isIdentifierBody(*Last) || *Last == '.')); in printAdjacentModuleNameParts() 529 while (Last != End && isIdentifierBody(*Last)) in lexRawIdentifier() 572 (isIdentifierBody(*Last) || *Last == '.' || *Last == ',')); in printAdjacentMacroArgs() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
H A D | ilist_base.h | 43 node_base_type *Final = Last.getPrev(); in removeRangeImpl() 44 Last.setPrev(Prev); in removeRangeImpl() 45 Prev->setNext(&Last); in removeRangeImpl() 53 node_base_type &Last) { in transferBeforeImpl() argument 54 if (&Next == &Last || &First == &Last) in transferBeforeImpl() 62 node_base_type &Final = *Last.getPrev(); in transferBeforeImpl() 65 First.getPrev()->setNext(&Last); in transferBeforeImpl() 66 Last.setPrev(First.getPrev()); in transferBeforeImpl() 81 template <class T> static void removeRange(T &First, T &Last) { in removeRange() argument 82 removeRangeImpl(First, Last); in removeRange() [all …]
|
H A D | simple_ilist.h | 166 void insert(iterator I, Iterator First, Iterator Last) { in insert() argument 167 for (; First != Last; ++First) in insert() 205 iterator erase(iterator First, iterator Last) { in erase() argument 206 list_base_type::removeRange(*First.getNodePtr(), *Last.getNodePtr()); in erase() 207 return Last; in erase() 221 iterator eraseAndDispose(iterator First, iterator Last, Disposer dispose) { in eraseAndDispose() argument 222 while (First != Last) in eraseAndDispose() 224 return Last; in eraseAndDispose() 248 void splice(iterator I, simple_ilist &, iterator First, iterator Last) { in splice() argument 250 *Last.getNodePtr()); in splice()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | SwitchLoweringUtils.cpp | 25 assert(Last >= First); in getJumpTableRange() 39 assert(Last >= First); in getJumpTableNumCases() 172 for (unsigned First = 0, Last; First < N; First = Last + 1) { in findJumpTables() local 173 Last = LastElement[First]; in findJumpTables() 174 assert(Last >= First); in findJumpTables() 195 assert(First <= Last); in buildJumpTable() 346 for (unsigned First = 0, Last; First < N; First = Last + 1) { in findBitTestClusters() local 347 Last = LastElement[First]; in findBitTestClusters() 348 assert(First <= Last); in findBitTestClusters() 368 assert(First <= Last); in buildBitTests() [all …]
|
H A D | ReachingDefAnalysis.cpp | 363 auto Last = MBB->getLastNonDebugInstr(); in getLiveInUses() local 364 if (Last == MBB->end()) in getLiveInUses() 477 for (MachineInstr &Last : in isRegUsedAfter() 479 LiveRegs.stepBackward(Last); in isRegUsedAfter() 489 auto Last = MBB->getLastNonDebugInstr(); in isRegDefinedAfter() local 490 if (Last != MBB->end() && in isRegDefinedAfter() 510 if (Last != MBB->end() && getReachingDef(&*Last, PhysReg) != Def) in isReachingDefLiveOut() 514 for (auto &MO : Last->operands()) in isReachingDefLiveOut() 530 if (Last == MBB->end()) in getLocalLiveOutMIDef() 534 for (auto &MO : Last->operands()) in getLocalLiveOutMIDef() [all …]
|
H A D | InterferenceCache.cpp | 161 BI->First = BI->Last = SlotIndex(); in update() 224 if (!BI->Last.isValid() || StopI > BI->Last) in update() 225 BI->Last = StopI; in update() 241 if (!BI->Last.isValid() || StopI > BI->Last) in update() 242 BI->Last = StopI; in update() 248 SlotIndex Limit = BI->Last.isValid() ? BI->Last : Start; in update() 254 BI->Last = RegMaskSlots[i-1].getDeadSlot(); in update()
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Demangle/ |
H A D | StringView.h | 25 const char *Last; variable 31 StringView(const char (&Str)[N]) : First(Str), Last(Str + N - 1) {} in StringView() 33 : First(First_), Last(Last_) {} in StringView() 35 : First(First_), Last(First_ + Len) {} in StringView() 36 StringView(const char *Str) : First(Str), Last(Str + std::strlen(Str)) {} in StringView() 37 StringView() : First(nullptr), Last(nullptr) {} in StringView() 58 return StringView(First + N, Last); 64 return StringView(First, Last - N); 107 const char *end() const { return Last; } in end() 108 size_t size() const { return static_cast<size_t>(Last - First); } in size() [all …]
|
/netbsd/external/apache2/llvm/dist/clang/lib/Format/ |
H A D | UnwrappedLineFormatter.cpp | 236 if (TheLine->Last->is(tok::l_brace) && TheLine->First == TheLine->Last && in tryFitMultipleLinesInOne() 313 if (TheLine->Last->is(tok::l_brace) && TheLine->First != TheLine->Last && in tryFitMultipleLinesInOne() 373 I[-1]->Last) { in tryFitMultipleLinesInOne() 485 !Line.Last->is(tok::kw_else) && Line.Last->isNot(tok::r_paren)) in tryMergeSimpleControlStatement() 618 if (Line.Last->is(tok::l_brace)) { in tryMergeSimpleBlock() 676 if (Line.First == Line.Last && in tryMergeSimpleBlock() 723 return 1 + I[1]->Last->TotalLength + 1 + I[2]->Last->TotalLength <= Limit; in nextTwoLinesFitInto() 735 assert(!A.Last->Next); in join() 739 A.Last->Next = B.First; in join() 740 B.First->Previous = A.Last; in join() [all …]
|
H A D | AffectedRangeManager.cpp | 35 FormatToken *Last = Line->Last; in computeAffectedLines() local 38 Last = (*PPEnd)->Last; in computeAffectedLines() 42 if (affectsTokenRange(*Line->First, *Last, in computeAffectedLines() 73 const FormatToken &Last, in affectsTokenRange() argument 78 SourceLocation End = Last.getStartOfNonWhitespace(); in affectsTokenRange() 79 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange() 139 PreviousLine->Affected && PreviousLine->Last->is(tok::comment); in nonPPLineAffected()
|
H A D | TokenAnnotator.h | 68 Last = Current; in AnnotatedLine() 69 Last->Next = nullptr; in AnnotatedLine() 95 return Last && Last->endsSequence(Tokens...); in endsWith() 123 FormatToken *Last; variable
|
/netbsd/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 360 char Last = *FB++ = *FmtStr++; in lle_X_sprintf() local 362 while (Last != 'c' && Last != 'd' && Last != 'i' && Last != 'u' && in lle_X_sprintf() 363 Last != 'o' && Last != 'x' && Last != 'X' && Last != 'e' && in lle_X_sprintf() 364 Last != 'E' && Last != 'g' && Last != 'G' && Last != 'f' && in lle_X_sprintf() 365 Last != 'p' && Last != 's' && Last != '%') { in lle_X_sprintf() 366 if (Last == 'l' || Last == 'L') HowLong++; // Keep track of l's in lle_X_sprintf() 367 Last = *FB++ = *FmtStr++; in lle_X_sprintf() 371 switch (Last) { in lle_X_sprintf()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/ARC/ |
H A D | ARCFrameLowering.cpp | 78 unsigned Last = 0; in determineLastCalleeSave() local 82 if (Reg.getReg() > Last) in determineLastCalleeSave() 83 Last = Reg.getReg(); in determineLastCalleeSave() 85 return Last; in determineLastCalleeSave() 129 unsigned Last = determineLastCalleeSave(CSI); in emitPrologue() local 158 StackSlotsUsedByFunclet = Last - ARC::R12; in emitPrologue() 265 unsigned Last = determineLastCalleeSave(CSI); in emitEpilogue() local 270 StackSlotsUsedByFunclet = Last - ARC::R12; in emitEpilogue() 352 unsigned Last = determineLastCalleeSave(CSI); in assignCalleeSavedSpillSlots() local 407 unsigned Last = determineLastCalleeSave(CSI); in spillCalleeSavedRegisters() local [all …]
|
H A D | ARCOptAddrMode.cpp | 236 LLVM_DEBUG(MachineInstr *First = &Ldst; MachineInstr *Last = &Add; in tryToCombine() 237 if (MDT->dominates(Last, First)) std::swap(First, Last); in tryToCombine() 238 dbgs() << "[ABAW] Instructions " << *First << " and " << *Last in tryToCombine() 270 MachineInstr *Last = Ldst; in canJoinInstructions() local 272 std::swap(First, Last); in canJoinInstructions() 276 LLVM_DEBUG(dbgs() << "canJoinInstructions: " << *First << *Last); in canJoinInstructions() 323 if (noUseOfAddBeforeLoadOrStore(First, Last)) { in canJoinInstructions() 324 Result = Last; in canJoinInstructions()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | OptimizedStructLayout.cpp | 294 auto spliceFromQueue = [&](AlignmentQueue *Queue, Field *Last, Field *Cur) { in performOptimizedStructLayout() argument 295 assert(Last ? Queue->getNext(Last) == Cur : Queue->Head == Cur); in performOptimizedStructLayout() 299 if (Last) { in performOptimizedStructLayout() 300 Last->Scratch = Cur->Scratch; in performOptimizedStructLayout() 306 Queue->MinSize = Last->Size; in performOptimizedStructLayout() 329 auto addToLayout = [&](AlignmentQueue *Queue, Field *Last, Field *Cur, in performOptimizedStructLayout() 334 spliceFromQueue(Queue, Last, Cur); in performOptimizedStructLayout() 362 for (Field *Cur = Queue->Head, *Last = nullptr; true; in performOptimizedStructLayout() local 363 Last = Cur, Cur = Queue->getNext(Cur)) { in performOptimizedStructLayout() 366 return addToLayout(Queue, Last, Cur, StartOffset); in performOptimizedStructLayout()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86OptimizeLEAs.cpp | 323 assert(Last.getParent() == First.getParent() && in calcInstrDist() 326 InstrPos.find(&Last) != InstrPos.end() && in calcInstrDist() 329 return InstrPos[&Last] - InstrPos[&First]; in calcInstrDist() 427 assert(isLEA(First) && isLEA(Last) && in isReplaceable() 435 MRI->getRegClass(Last.getOperand(0).getReg())) in isReplaceable() 439 AddrDispShift = getAddrDispShift(Last, 1, First, 1); in isReplaceable() 639 MachineInstr &Last = **I2; in removeRedundantLEAs() local 644 assert(calcInstrDist(First, Last) > 0 && in removeRedundantLEAs() 657 Register LastVReg = Last.getOperand(0).getReg(); in removeRedundantLEAs() 693 Last.dump();); in removeRedundantLEAs() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
H A D | DIE.h | 528 Node *Last = nullptr; member 530 bool empty() const { return !Last; } in empty() 536 if (Last) { in push_back() 537 N.Next = Last->Next; in push_back() 540 Last = &N; in push_back() 547 if (Last) { in push_front() 551 Last = &N; in push_front() 565 return *static_cast<T *>(Last ? Last->Next.getPointer() : nullptr); in front() 568 return *static_cast<T *>(Last ? Last->Next.getPointer() : nullptr); in front() 587 Other.Last = nullptr; in takeNodes() [all …]
|
H A D | SwitchLoweringUtils.h | 182 APInt Last; member 190 : First(std::move(F)), Last(std::move(L)), SValue(SV), HeaderBB(H), in First() 233 unsigned Last); 237 unsigned First, unsigned Last); 277 unsigned Last, const SwitchInst *SI, 285 bool buildBitTests(CaseClusterVector &Clusters, unsigned First, unsigned Last,
|
/netbsd/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | DebugLoc.cpp | 75 DILocation *Last = InlinedAt; in appendInlinedAt() local 82 Last = cast<DILocation>(Found); in appendInlinedAt() 94 Cache[MD] = Last = DILocation::getDistinct( in appendInlinedAt() 95 Ctx, MD->getLine(), MD->getColumn(), MD->getScope(), Last); in appendInlinedAt() 97 return Last; in appendInlinedAt()
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/profile/ |
H A D | InstrProfilingPlatformOther.c | 49 #define UPDATE_LAST(Last, New) Last = New > Last ? New : Last in __llvm_profile_register_function() argument
|
/netbsd/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastSizeChecker.cpp | 59 const FieldDecl *Last = nullptr; in evenFlexibleArraySize() local 61 Last = *Iter; in evenFlexibleArraySize() 62 assert(Last && "empty structs should already be handled"); in evenFlexibleArraySize() 64 const Type *ElemType = Last->getType()->getArrayElementTypeNoTypeQual(); in evenFlexibleArraySize() 67 Ctx.getAsConstantArrayType(Last->getType())) { in evenFlexibleArraySize()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/ProfileData/Coverage/ |
H A D | CoverageMapping.cpp | 430 const auto &Last = Segments.back(); in startSegment() local 431 if (Last.HasCount == HasCount && Last.Count == Region.ExecutionCount && in startSegment() 432 !Last.IsRegionEntry) in startSegment() 444 const auto &Last = Segments.back(); in startSegment() 445 dbgs() << "Segment at " << Last.Line << ":" << Last.Col in startSegment() 446 << " (count = " << Last.Count << ")" in startSegment() 448 << (!Last.HasCount ? ", Skipped" : "") in startSegment() 495 auto Last = ActiveRegions.back(); in completeRegionsUntil() local 496 if (FirstCompletedRegion && Last->endLoc() != *Loc) { in completeRegionsUntil() 504 startSegment(*Last, Last->endLoc(), false, true); in completeRegionsUntil() [all …]
|
/netbsd/external/apache2/llvm/dist/clang/include/clang/Basic/ |
H A D | SyncScope.h | 47 Last = OpenCLSubGroup enumerator 104 Last = SubGroup enumerator 125 S <= static_cast<unsigned>(Last); in isValid() 129 static_assert(Last == SubGroup, "Does not include all synch scopes"); in getRuntimeValues()
|
/netbsd/external/apache2/llvm/dist/clang/utils/TableGen/ |
H A D | ClangASTNodesEmitter.cpp | 94 ASTNode First, Last; in EmitNode() local 96 First = Last = Base; in EmitNode() 118 Last = Result.second; in EmitNode() 128 assert(Last && "set First without Last"); in EmitNode() 138 << Last.getName() << ")\n\n"; in EmitNode() 141 return std::make_pair(First, Last); in EmitNode()
|
/netbsd/external/apache2/llvm/dist/clang/lib/ASTMatchers/Dynamic/ |
H A D | Diagnostics.cpp | 68 ErrorContent &Last = Errors.back(); in addError() local 69 Last.ContextStack = ContextStack; in addError() 70 Last.Messages.emplace_back(); in addError() 71 Last.Messages.back().Range = Range; in addError() 72 Last.Messages.back().Type = Error; in addError() 73 return ArgStream(&Last.Messages.back().Args); in addError()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | SIInsertHardClauses.cpp | 113 MachineInstr *Last = nullptr; member 125 std::distance(CI.First->getIterator(), CI.Last->getIterator()) + 1; in emitClause() 135 std::next(CI.Last->getIterator())); in emitClause() 187 CI.Last = &MI; in runOnMachineFunction()
|