| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | JsonSupport.h | 34 size_t Pos = 0; in JsonFormat() local 38 Pos = Str.find('\\', Pos); in JsonFormat() 39 if (Pos == std::string::npos) in JsonFormat() 43 size_t TempPos = (Pos != 0) ? Pos - 1 : 0; in JsonFormat() 47 Str.insert(Pos, "\\"); in JsonFormat() 51 ++Pos; in JsonFormat() 55 Pos = 0; in JsonFormat() 57 Pos = Str.find('\"', Pos); in JsonFormat() 62 size_t TempPos = (Pos != 0) ? Pos - 1 : 0; in JsonFormat() 66 Str.insert(Pos, "\\"); in JsonFormat() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOWindows.cpp | 265 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName() 275 if (Pos >= End || IsSeparator(FileName[Pos])) in ParseDir() 277 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseDir() 292 Pos += Res; in ParseServerAndShare() 295 Pos += Res; in ParseServerAndShare() 316 Pos += Res; in ParseLocation() 328 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation() 329 ++Pos; in ParseLocation() 331 ++Pos; in ParseLocation() 336 return Pos; in ParseLocation() [all …]
|
| H A D | FuzzerUtil.cpp | 98 for (size_t Pos = L; Pos <= R; Pos++) { in ParseOneDictionaryEntry() local 99 uint8_t V = (uint8_t)Str[Pos]; in ParseOneDictionaryEntry() 103 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { in ParseOneDictionaryEntry() 105 Pos++; in ParseOneDictionaryEntry() 109 if (Pos + 3 <= R && Str[Pos + 1] == 'x' in ParseOneDictionaryEntry() 110 && isxdigit(Str[Pos + 2]) && isxdigit(Str[Pos + 3])) { in ParseOneDictionaryEntry() 112 Hex[2] = Str[Pos + 2]; in ParseOneDictionaryEntry() 113 Hex[3] = Str[Pos + 3]; in ParseOneDictionaryEntry() 115 Pos += 3; in ParseOneDictionaryEntry() 139 size_t Pos = 0; in ParseDictionaryFile() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | LineIterator.cpp | 58 const char *Pos = CurrentLine.end(); in advance() local 59 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance() 61 if (skipIfAtLineEnd(Pos)) in advance() 67 while (skipIfAtLineEnd(Pos)) in advance() 74 if (*Pos == CommentMarker) in advance() 76 ++Pos; in advance() 77 } while (*Pos != '\0' && !isAtLineEnd(Pos)); in advance() 78 if (!skipIfAtLineEnd(Pos)) in advance() 84 if (*Pos == '\0') { in advance() 93 while (Pos[Length] != '\0' && !isAtLineEnd(&Pos[Length])) { in advance() [all …]
|
| H A D | FoldingSet.cpp | 55 unsigned Pos = 0; in AddString() local 61 Pos = (Units + 1) * 4; in AddString() 69 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 70 unsigned V = ((unsigned char)String[Pos - 4] << 24) | in AddString() 71 ((unsigned char)String[Pos - 3] << 16) | in AddString() 72 ((unsigned char)String[Pos - 2] << 8) | in AddString() 73 (unsigned char)String[Pos - 1]; in AddString() 77 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 80 ((unsigned char)String[Pos - 3] << 8) | in AddString() 81 (unsigned char)String[Pos - 4]; in AddString() [all …]
|
| H A D | FileUtilities.cpp | 54 static const char *BackupNumber(const char *Pos, const char *FirstChar) { in BackupNumber() argument 56 if (!isNumberChar(*Pos)) return Pos; in BackupNumber() 60 while (Pos > FirstChar && isNumberChar(Pos[-1])) { in BackupNumber() 62 if (Pos[-1] == '.') { in BackupNumber() 68 --Pos; in BackupNumber() 69 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[-1])) in BackupNumber() 72 return Pos; in BackupNumber() 78 static const char *EndOfNumber(const char *Pos) { in EndOfNumber() argument 79 while (isNumberChar(*Pos)) in EndOfNumber() 80 ++Pos; in EndOfNumber() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | WholeProgramDevirt.h | 46 if (Bytes.size() < Pos + Size) { in getPtrToData() 47 Bytes.resize(Pos + Size); in getPtrToData() 48 BytesUsed.resize(Pos + Size); in getPtrToData() 50 return std::make_pair(Bytes.data() + Pos, BytesUsed.data() + Pos); in getPtrToData() 56 assert(Pos % 8 == 0); in setLE() 68 assert(Pos % 8 == 0); in setBE() 78 void setBit(uint64_t Pos, bool b) { in setBit() 81 *DataUsed.first |= 1 << (Pos % 8); in setBit() 83 *DataUsed.second |= 1 << (Pos % 8); in setBit() 169 void setBeforeBit(uint64_t Pos) { in setBeforeBit() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | flags_parser.cpp | 60 ++Pos; in skipWhitespace() 65 while (Buffer[Pos] != '=' && !isSeparatorOrNull(Buffer[Pos])) in parseFlag() 66 ++Pos; in parseFlag() 67 if (Buffer[Pos] != '=') in parseFlag() 72 if (Buffer[Pos] == '\'' || Buffer[Pos] == '"') { in parseFlag() 74 while (Buffer[Pos] != 0 && Buffer[Pos] != Quote) in parseFlag() 75 ++Pos; in parseFlag() 76 if (Buffer[Pos] == 0) in parseFlag() 82 ++Pos; in parseFlag() 105 Pos = 0; in parseString() [all …]
|
| H A D | string_utils.cpp | 42 int Pos = 0; in appendNumber() local 44 RAW_CHECK_MSG(static_cast<uptr>(Pos) < MaxLen, in appendNumber() 49 if (Pos < MinNumberLength) { in appendNumber() 50 memset(&NumBuffer[Pos], 0, in appendNumber() 52 Pos = MinNumberLength; in appendNumber() 54 RAW_CHECK(Pos > 0); in appendNumber() 55 Pos--; in appendNumber() 56 for (; Pos >= 0 && NumBuffer[Pos] == 0; Pos--) { in appendNumber() 57 char c = (PadWithZero || Pos == 0) ? '0' : ' '; in appendNumber() 62 for (; Pos >= 0; Pos--) { in appendNumber() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AllocationOrder.h | 46 int Pos = 0; variable 49 Iterator(const AllocationOrder &AO, int Pos) : AO(AO), Pos(Pos) {} in Iterator() argument 56 if (Pos < 0) 57 return AO.Hints.end()[Pos]; 58 assert(Pos < AO.IterationLimit); 59 return AO.Order[Pos]; 65 if (Pos < AO.IterationLimit) 66 ++Pos; 67 while (Pos >= 0 && Pos < AO.IterationLimit && AO.isHint(AO.Order[Pos])) 68 ++Pos; [all …]
|
| H A D | RenameIndependentSubregs.cpp | 189 SlotIndex Pos = LIS->getInstructionIndex(*MO.getParent()); in findComponents() local 190 Pos = MO.isDef() ? Pos.getRegSlot(MO.isEarlyClobber()) in findComponents() 191 : Pos.getBaseIndex(); in findComponents() 192 const VNInfo *VNI = SR.getVNInfoAt(Pos); in findComponents() 223 SlotIndex Pos = LIS->getInstructionIndex(*MI); in rewriteOperands() local 224 Pos = MO.isDef() ? Pos.getRegSlot(MO.isEarlyClobber()) in rewriteOperands() 225 : Pos.getBaseIndex(); in rewriteOperands() 234 const VNInfo *VNI = SR.getVNInfoAt(Pos); in rewriteOperands() 293 if (SR.liveAt(Pos)) in subRangeLiveAt() 356 if (!subRangeLiveAt(LI, Pos)) in computeMainRangesFixFlags() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | LayoutOverrideSource.cpp | 73 StringRef::size_type Pos; in LayoutOverrideSource() local 91 if (Pos != StringRef::npos) { in LayoutOverrideSource() 102 Pos = LineStr.find("Alignment:"); in LayoutOverrideSource() 103 if (Pos != StringRef::npos) { in LayoutOverrideSource() 115 Pos = LineStr.find("sizeof="); in LayoutOverrideSource() 116 if (Pos != StringRef::npos) { in LayoutOverrideSource() 125 Pos = LineStr.find("align="); in LayoutOverrideSource() 126 if (Pos != StringRef::npos) { in LayoutOverrideSource() 141 if (Pos != StringRef::npos) { in LayoutOverrideSource() 156 if (Pos != StringRef::npos) { in LayoutOverrideSource() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/ |
| H A D | options_parser.cpp | 57 uintptr_t Pos = 0; member in __anon6506c7250111::OptionParser 82 ++Pos; in skipWhitespace() 87 while (Buffer[Pos] != '=' && !isSeparatorOrNull(Buffer[Pos])) in parseOption() 88 ++Pos; in parseOption() 91 if (Buffer[Pos] != '=') { in parseOption() 98 if (Buffer[Pos] == '\'' || Buffer[Pos] == '"') { in parseOption() 100 while (Buffer[Pos] != 0 && Buffer[Pos] != Quote) in parseOption() 101 ++Pos; in parseOption() 111 ++Pos; in parseOption() 121 if (Buffer[Pos] == 0) in parseOptions() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsBranchExpansion.cpp | 414 MachineBasicBlock::iterator Pos; in expandToLongBranch() local 468 Pos = LongBrMBB->begin(); in expandToLongBranch() 507 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 509 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 514 Pos = BalTgtMBB->begin(); in expandToLongBranch() 591 Pos = LongBrMBB->begin(); in expandToLongBranch() 618 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 620 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 625 Pos = BalTgtMBB->begin(); in expandToLongBranch() 649 Pos = LongBrMBB->begin(); in expandToLongBranch() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | CommentParser.cpp | 50 Position Pos; member in clang::comments::TextTokenRetokenizer 63 Pos.BufferPtr = Pos.BufferStart; in setupBuffer() 68 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation() 74 assert(Pos.BufferPtr != Pos.BufferEnd); in peek() 80 assert(Pos.BufferPtr != Pos.BufferEnd); in consumeChar() 81 Pos.BufferPtr++; in consumeChar() 82 if (Pos.BufferPtr == Pos.BufferEnd) { in consumeChar() 83 Pos.CurToken++; in consumeChar() 239 if (Pos.BufferPtr != Pos.BufferStart) { in putBackLeftoverTokens() 241 Pos.BufferPtr, Pos.BufferEnd - Pos.BufferPtr, in putBackLeftoverTokens() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/MC/ |
| H A D | StringTableBuilder.cpp | 87 static int charTailAt(StringPair *P, size_t Pos) { in charTailAt() argument 89 if (Pos >= S.size()) in charTailAt() 91 return (unsigned char)S[S.size() - Pos - 1]; in charTailAt() 104 int Pivot = charTailAt(Vec[0], Pos); in multikeySort() 108 int C = charTailAt(Vec[K], Pos); in multikeySort() 117 multikeySort(Vec.slice(0, I), Pos); in multikeySort() 118 multikeySort(Vec.slice(J), Pos); in multikeySort() 124 ++Pos; in multikeySort() 154 size_t Pos = Size - S.size() - (K != RAW); in finalizeStringTable() local 155 if (isAligned(Alignment, Pos)) { in finalizeStringTable() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TableGenBackend.cpp | 34 size_t Pos = (size_t)OS.tell(); in printLine() local 38 for (size_t i = (size_t)OS.tell() - Pos, e = MAX_LINE_LEN - Suffix.size(); in printLine() 52 size_t Pos = 0U; in emitSourceFileHeader() local 54 size_t Length = std::min(Desc.size() - Pos, MAX_LINE_LEN - PSLen); in emitSourceFileHeader() 55 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix); in emitSourceFileHeader() 56 Pos += Length; in emitSourceFileHeader() 57 } while (Pos < Desc.size()); in emitSourceFileHeader()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IteratorRangeChecker.cpp | 66 bool isPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos); 193 const auto *Pos = getIteratorPosition(State, Val); in verifyDereference() local 194 if (Pos && isPastTheEnd(State, *Pos)) { in verifyDereference() 278 const auto *Pos = getIteratorPosition(C.getState(), Val); in reportBug() local 282 R->markInteresting(Pos->getContainer()); in reportBug() 300 const auto *Cont = Pos.getContainer(); in isPastTheEnd() 307 if (isEqual(State, Pos.getOffset(), End)) { in isPastTheEnd() 316 const auto *Cont = Pos.getContainer(); in isAheadOfRange() 323 if (isLess(State, Pos.getOffset(), Beg)) { in isAheadOfRange() 332 const auto *Cont = Pos.getContainer(); in isBehindPastTheEnd() [all …]
|
| H A D | ContainerModeling.cpp | 569 if (!Pos) in handleInsert() 600 if (!Pos) in handleErase() 664 if (!Pos) in handleEraseAfter() 924 return Pos.getContainer() == Cont; in invalidateAllIteratorPositions() 927 return Pos.invalidate(); in invalidateAllIteratorPositions() 941 return Pos.invalidate(); in invalidateAllIteratorPositionsExcept() 953 return Pos.invalidate(); in invalidateIteratorPositions() 968 return Pos.invalidate(); in invalidateIteratorPositions() 980 return Pos.reAssign(NewCont); in reassignAllIteratorPositions() 995 return Pos.reAssign(NewCont); in reassignAllIteratorPositionsUnless() [all …]
|
| H A D | IteratorModeling.cpp | 238 if (Pos) { in checkBind() 296 if (!Pos) in checkPostStmt() 541 if (!Pos) in handleIncrement() 567 if (!Pos) in handleDecrement() 594 if (!Pos) in handleRandomIncrOrDecr() 740 const auto Pos = Sym.second; in printState() local 742 Pos.getContainer()->dumpToStream(Out); in printState() 744 Pos.getOffset()->dumpToStream(Out); in printState() 753 const auto Pos = Reg.second; in printState() local 755 Pos.getContainer()->dumpToStream(Out); in printState() [all …]
|
| H A D | STLAlgorithmModeling.cpp | 123 const auto *Pos = getIteratorPosition(State, Param); in Find() local 124 if (Pos) { in Find() 125 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 132 nonloc::SymbolVal(Pos->getOffset()), in Find() 145 Pos = getIteratorPosition(State, Param); in Find() 146 if (Pos) { in Find() 147 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 154 nonloc::SymbolVal(Pos->getOffset()), in Find()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LineEditor/ |
| H A D | LineEditor.h | 103 CompletionAction getCompletionAction(StringRef Buffer, size_t Pos) const; 118 virtual CompletionAction complete(StringRef Buffer, size_t Pos) const = 0; 123 CompletionAction complete(StringRef Buffer, size_t Pos) const override; 126 size_t Pos) const = 0; 132 CompletionAction complete(StringRef Buffer, size_t Pos) const override { in complete() 133 return Value(Buffer, Pos); in complete() 142 size_t Pos) const override { in getCompletions() 143 return Value(Buffer, Pos); in getCompletions()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyUtilities.cpp | 150 auto Pos = EHPad->begin(); in findCatch() local 153 while (Pos != EHPad->end() && in findCatch() 154 (Pos->isLabel() || Pos->isDebugInstr() || isMarker(Pos->getOpcode()))) in findCatch() 155 Pos++; in findCatch() 156 if (Pos != EHPad->end() && WebAssembly::isCatch(Pos->getOpcode())) in findCatch() 157 return &*Pos; in findCatch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIMemoryLegalizer.cpp | 1011 if (Pos == Position::AFTER) in insertWait() 1092 if (Pos == Position::AFTER) in insertWait() 1110 if (Pos == Position::AFTER) in insertAcquire() 1137 if (Pos == Position::AFTER) in insertAcquire() 1170 if (Pos == Position::AFTER) in insertAcquire() 1197 if (Pos == Position::AFTER) in insertAcquire() 1393 if (Pos == Position::AFTER) in insertAcquire() 1439 if (Pos == Position::AFTER) in insertAcquire() 1457 if (Pos == Position::AFTER) in insertRelease() 1487 if (Pos == Position::AFTER) in insertRelease() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Option/ |
| H A D | ArgList.cpp | 72 bool ArgList::hasFlag(OptSpecifier Pos, OptSpecifier Neg, bool Default) const { in hasFlag() argument 73 if (Arg *A = getLastArg(Pos, Neg)) in hasFlag() 74 return A->getOption().matches(Pos); in hasFlag() 78 bool ArgList::hasFlagNoClaim(OptSpecifier Pos, OptSpecifier Neg, in hasFlagNoClaim() argument 80 if (Arg *A = getLastArgNoClaim(Pos, Neg)) in hasFlagNoClaim() 81 return A->getOption().matches(Pos); in hasFlagNoClaim() 87 if (Arg *A = getLastArg(Pos, PosAlias, Neg)) in hasFlag() 88 return A->getOption().matches(Pos) || A->getOption().matches(PosAlias); in hasFlag() 104 void ArgList::addOptInFlag(ArgStringList &Output, OptSpecifier Pos, in addOptInFlag() argument 106 if (Arg *A = getLastArg(Pos, Neg)) in addOptInFlag() [all …]
|