| /freebsd-13.1/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-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOWindows.cpp | 266 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName() 276 if (Pos >= End || IsSeparator(FileName[Pos])) in ParseDir() 278 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseDir() 293 Pos += Res; in ParseServerAndShare() 296 Pos += Res; in ParseServerAndShare() 318 Pos += Res; in ParseLocation() 330 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation() 331 ++Pos; in ParseLocation() 333 ++Pos; in ParseLocation() 338 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-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | LineIterator.cpp | 57 const char *Pos = CurrentLine.end(); in advance() local 58 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance() 60 if (skipIfAtLineEnd(Pos)) in advance() 66 while (skipIfAtLineEnd(Pos)) in advance() 73 if (*Pos == CommentMarker) in advance() 75 ++Pos; in advance() 76 } while (*Pos != '\0' && !isAtLineEnd(Pos)); in advance() 77 if (!skipIfAtLineEnd(Pos)) in advance() 83 if (*Pos == '\0') { in advance() 92 while (Pos[Length] != '\0' && !isAtLineEnd(&Pos[Length])) { in advance() [all …]
|
| H A D | FileUtilities.cpp | 56 static const char *BackupNumber(const char *Pos, const char *FirstChar) { in BackupNumber() argument 58 if (!isNumberChar(*Pos)) return Pos; in BackupNumber() 62 while (Pos > FirstChar && isNumberChar(Pos[-1])) { in BackupNumber() 64 if (Pos[-1] == '.') { in BackupNumber() 70 --Pos; in BackupNumber() 71 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[-1])) in BackupNumber() 74 return Pos; in BackupNumber() 80 static const char *EndOfNumber(const char *Pos) { in EndOfNumber() argument 81 while (isNumberChar(*Pos)) in EndOfNumber() 82 ++Pos; in EndOfNumber() [all …]
|
| H A D | FoldingSet.cpp | 97 unsigned Pos = 0; in AddString() local 103 Pos = (Units + 1) * 4; in AddString() 111 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 112 unsigned V = ((unsigned char)String[Pos - 4] << 24) | in AddString() 113 ((unsigned char)String[Pos - 3] << 16) | in AddString() 114 ((unsigned char)String[Pos - 2] << 8) | in AddString() 115 (unsigned char)String[Pos - 1]; in AddString() 119 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 122 ((unsigned char)String[Pos - 3] << 8) | in AddString() 123 (unsigned char)String[Pos - 4]; in AddString() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | JsonSupport.h | 33 size_t Pos = 0; in JsonFormat() local 37 Pos = Str.find('\\', Pos); in JsonFormat() 38 if (Pos == std::string::npos) in JsonFormat() 42 size_t TempPos = (Pos != 0) ? Pos - 1 : 0; in JsonFormat() 46 Str.insert(Pos, "\\"); in JsonFormat() 50 ++Pos; in JsonFormat() 54 Pos = 0; in JsonFormat() 56 Pos = Str.find('\"', Pos); in JsonFormat() 61 size_t TempPos = (Pos != 0) ? Pos - 1 : 0; in JsonFormat() 65 Str.insert(Pos, "\\"); in JsonFormat() [all …]
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | flags_parser.cpp | 58 ++Pos; in skipWhitespace() 63 while (Buffer[Pos] != '=' && !isSeparatorOrNull(Buffer[Pos])) in parseFlag() 64 ++Pos; in parseFlag() 65 if (Buffer[Pos] != '=') in parseFlag() 70 if (Buffer[Pos] == '\'' || Buffer[Pos] == '"') { in parseFlag() 72 while (Buffer[Pos] != 0 && Buffer[Pos] != Quote) in parseFlag() 73 ++Pos; in parseFlag() 74 if (Buffer[Pos] == 0) in parseFlag() 80 ++Pos; in parseFlag() 103 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-13.1/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-13.1/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | LayoutOverrideSource.cpp | 60 StringRef::size_type Pos; in LayoutOverrideSource() local 77 StringRef::size_type Pos = LineStr.find(" Size:"); in LayoutOverrideSource() local 78 if (Pos != StringRef::npos) { in LayoutOverrideSource() 89 Pos = LineStr.find("Alignment:"); in LayoutOverrideSource() 90 if (Pos != StringRef::npos) { in LayoutOverrideSource() 101 Pos = LineStr.find("sizeof="); in LayoutOverrideSource() 102 if (Pos != StringRef::npos) { in LayoutOverrideSource() 111 Pos = LineStr.find("align="); in LayoutOverrideSource() 112 if (Pos != StringRef::npos) { in LayoutOverrideSource() 126 Pos = LineStr.find("FieldOffsets: ["); in LayoutOverrideSource() [all …]
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/ |
| H A D | options_parser.cpp | 57 uintptr_t Pos = 0; member in __anon50b5f8630111::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-13.1/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsBranchExpansion.cpp | 409 MachineBasicBlock::iterator Pos; in expandToLongBranch() local 463 Pos = LongBrMBB->begin(); in expandToLongBranch() 502 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 504 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 509 Pos = BalTgtMBB->begin(); in expandToLongBranch() 586 Pos = LongBrMBB->begin(); in expandToLongBranch() 613 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 620 Pos = BalTgtMBB->begin(); in expandToLongBranch() 644 Pos = LongBrMBB->begin(); in expandToLongBranch() 665 BuildMI(*LongBrMBB, Pos, DL, in expandToLongBranch() [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/MC/ |
| H A D | StringTableBuilder.cpp | 86 static int charTailAt(StringPair *P, size_t Pos) { in charTailAt() argument 88 if (Pos >= S.size()) in charTailAt() 90 return (unsigned char)S[S.size() - Pos - 1]; in charTailAt() 103 int Pivot = charTailAt(Vec[0], Pos); in multikeySort() 107 int C = charTailAt(Vec[K], Pos); in multikeySort() 116 multikeySort(Vec.slice(0, I), Pos); in multikeySort() 117 multikeySort(Vec.slice(J), Pos); in multikeySort() 123 ++Pos; in multikeySort() 153 size_t Pos = Size - S.size() - (K != RAW); in finalizeStringTable() local 154 if (!(Pos & (Alignment - 1))) { in finalizeStringTable() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TableGenBackend.cpp | 24 size_t Pos = (size_t)OS.tell(); in printLine() local 28 for (size_t i = (size_t)OS.tell() - Pos, e = MAX_LINE_LEN - Suffix.size(); in printLine() 41 size_t Pos = 0U; in emitSourceFileHeader() local 43 size_t Length = std::min(Desc.size() - Pos, MAX_LINE_LEN - PSLen); in emitSourceFileHeader() 44 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix); in emitSourceFileHeader() 45 Pos += Length; in emitSourceFileHeader() 46 } while (Pos < Desc.size()); in emitSourceFileHeader()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/ |
| H A D | WebAssemblyUtilities.cpp | 147 auto Pos = EHPad->begin(); in findCatch() local 150 while (Pos != EHPad->end() && in findCatch() 151 (Pos->isLabel() || Pos->isDebugInstr() || isMarker(Pos->getOpcode()))) in findCatch() 152 Pos++; in findCatch() 153 if (Pos != EHPad->end() && WebAssembly::isCatch(Pos->getOpcode())) in findCatch() 154 return &*Pos; in findCatch()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IteratorRangeChecker.cpp | 67 bool isPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos); 199 const auto *Pos = getIteratorPosition(State, Val); in verifyDereference() local 200 if (Pos && isPastTheEnd(State, *Pos)) { in verifyDereference() 284 const auto *Pos = getIteratorPosition(C.getState(), Val); in reportBug() local 288 R->markInteresting(Pos->getContainer()); in reportBug() 306 const auto *Cont = Pos.getContainer(); in isPastTheEnd() 313 if (isEqual(State, Pos.getOffset(), End)) { in isPastTheEnd() 322 const auto *Cont = Pos.getContainer(); in isAheadOfRange() 329 if (isLess(State, Pos.getOffset(), Beg)) { in isAheadOfRange() 338 const auto *Cont = Pos.getContainer(); in isBehindPastTheEnd() [all …]
|
| H A D | ContainerModeling.cpp | 583 if (!Pos) in handleInsert() 614 if (!Pos) in handleErase() 678 if (!Pos) in handleEraseAfter() 938 return Pos.getContainer() == Cont; in invalidateAllIteratorPositions() 941 return Pos.invalidate(); in invalidateAllIteratorPositions() 955 return Pos.invalidate(); in invalidateAllIteratorPositionsExcept() 967 return Pos.invalidate(); in invalidateIteratorPositions() 982 return Pos.invalidate(); in invalidateIteratorPositions() 994 return Pos.reAssign(NewCont); in reassignAllIteratorPositions() 1009 return Pos.reAssign(NewCont); in reassignAllIteratorPositionsUnless() [all …]
|
| H A D | STLAlgorithmModeling.cpp | 122 const auto *Pos = getIteratorPosition(State, Param); in Find() local 123 if (Pos) { in Find() 124 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 131 nonloc::SymbolVal(Pos->getOffset()), in Find() 144 Pos = getIteratorPosition(State, Param); in Find() 145 if (Pos) { in Find() 146 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), in Find() 153 nonloc::SymbolVal(Pos->getOffset()), in Find()
|
| H A D | IteratorModeling.cpp | 239 if (Pos) { in checkBind() 297 if (!Pos) in checkPostStmt() 546 if (!Pos) in handleIncrement() 572 if (!Pos) in handleDecrement() 600 if (!Pos) in handleRandomIncrOrDecr() 746 const auto Pos = Sym.second; in printState() local 748 Pos.getContainer()->dumpToStream(Out); in printState() 750 Pos.getOffset()->dumpToStream(Out); in printState() 759 const auto Pos = Reg.second; in printState() local 761 Pos.getContainer()->dumpToStream(Out); in printState() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-symbolizer/ |
| H A D | llvm-symbolizer.cpp | 119 const char *Pos = InputString.data(); in parseCommand() local 122 Pos += strspn(Pos, kDelimiters); in parseCommand() 123 if (*Pos == '"' || *Pos == '\'') { in parseCommand() 124 char Quote = *Pos; in parseCommand() 125 Pos++; in parseCommand() 126 const char *End = strchr(Pos, Quote); in parseCommand() 129 ModuleName = std::string(Pos, End - Pos); in parseCommand() 130 Pos = End + 1; in parseCommand() 134 Pos += NameLength; in parseCommand() 140 Pos += strspn(Pos, kDelimiters); in parseCommand() [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | MapVector.h | 113 typename MapType::const_iterator Pos = Map.find(Key); in lookup() local 114 return Pos == Map.end()? ValueT() : Vector[Pos->second].second; in lookup() 143 typename MapType::const_iterator Pos = Map.find(Key); in count() local 144 return Pos == Map.end()? 0 : 1; in count() 148 typename MapType::const_iterator Pos = Map.find(Key); in find() local 149 return Pos == Map.end()? Vector.end() : in find() 150 (Vector.begin() + Pos->second); in find() 154 typename MapType::const_iterator Pos = Map.find(Key); in find() local 155 return Pos == Map.end()? Vector.end() : in find() 156 (Vector.begin() + Pos->second); in find() [all …]
|