/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | AllocationOrder.h | 33 int Pos; member in class:llvm::AllocationOrder 56 if (Pos < 0) 57 return Hints.end()[Pos++]; 62 while (Pos < int(Limit)) { 63 unsigned Reg = Order[Pos++]; 75 if (Pos < 0) 76 return Hints.end()[Pos++]; 79 if (Pos < int(Limit)) 80 return Order[Pos++]; 85 void rewind() { Pos [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | LineIterator.cpp | 53 const char *Pos = CurrentLine.end(); local 54 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); 56 if (skipIfAtLineEnd(Pos)) 58 if (!SkipBlanks && isAtLineEnd(Pos)) { 62 while (skipIfAtLineEnd(Pos)) 67 if (isAtLineEnd(Pos) && !SkipBlanks) 69 if (*Pos == CommentMarker) 71 ++Pos; [all...] |
H A D | FileUtilities.cpp | 56 static const char *BackupNumber(const char *Pos, const char *FirstChar) { argument 58 if (!isNumberChar(*Pos)) return Pos; 62 while (Pos > FirstChar && isNumberChar(Pos[-1])) { 64 if (Pos[-1] == '.') { 70 --Pos; 71 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[ 80 EndOfNumber(const char *Pos) argument [all...] |
H A D | FoldingSet.cpp | 97 unsigned Pos = 0; local 103 Pos = (Units + 1) * 4; 111 for (Pos += 4; Pos <= Size; Pos += 4) { 112 unsigned V = ((unsigned char)String[Pos - 4] << 24) | 113 ((unsigned char)String[Pos - 3] << 16) | 114 ((unsigned char)String[Pos - 2] << 8) | 115 (unsigned char)String[Pos - 1]; 119 for (Pos [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | JsonSupport.h | 33 size_t Pos = 0; local 37 Pos = Str.find('\\', Pos); 38 if (Pos == std::string::npos) 42 size_t TempPos = (Pos != 0) ? Pos - 1 : 0; 45 if (TempPos != Str.find("\\\\", Pos)) { 46 Str.insert(Pos, "\\"); 47 ++Pos; // As we insert the backslash move plus one. 50 ++Pos; [all...] |
H A D | Sanitizers.h | 49 static constexpr bool checkBitPos(const unsigned Pos) { argument 50 return Pos < kNumBits; 53 /// Create a mask with a bit enabled at position Pos. 54 static constexpr SanitizerMask bitPosToMask(const unsigned Pos) { argument 55 uint64_t mask1 = (Pos < kNumBitElem) ? 1ULL << (Pos % kNumBitElem) : 0; 56 uint64_t mask2 = (Pos >= kNumBitElem && Pos < (kNumBitElem * 2)) 57 ? 1ULL << (Pos % kNumBitElem)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Demangle/ |
H A D | Demangle.cpp | 17 size_t Pos = MangledName.find_first_not_of('_'); local 19 return Pos > 0 && Pos <= 4 && MangledName[Pos] == 'Z';
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | WholeProgramDevirt.h | 45 std::pair<uint8_t *, uint8_t *> getPtrToData(uint64_t Pos, uint8_t Size) { argument 46 if (Bytes.size() < Pos + Size) { 47 Bytes.resize(Pos + Size); 48 BytesUsed.resize(Pos + Size); 50 return std::make_pair(Bytes.data() + Pos, BytesUsed.data() + Pos); 53 // Set little-endian value Val with size Size at bit position Pos, 55 void setLE(uint64_t Pos, uint64_t Val, uint8_t Size) { argument 56 assert(Pos % 8 == 0); 57 auto DataUsed = getPtrToData(Pos / 67 setBE(uint64_t Pos, uint64_t Val, uint8_t Size) argument 78 setBit(uint64_t Pos, bool b) argument 169 setBeforeBit(uint64_t Pos) argument 175 setAfterBit(uint64_t Pos) argument 183 setBeforeBytes(uint64_t Pos, uint8_t Size) argument 192 setAfterBytes(uint64_t Pos, uint8_t Size) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | TableGenBackend.cpp | 24 size_t Pos = (size_t)OS.tell(); local 28 for (size_t i = (size_t)OS.tell() - Pos, e = MAX_LINE_LEN - Suffix.size(); 41 size_t Pos = 0U; 43 size_t Length = std::min(Desc.size() - Pos, MAX_LINE_LEN - PSLen); 44 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix); 45 Pos += Length; 46 } while (Pos < Desc.size());
|
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | flags_parser.cpp | 57 while (isSeparator(Buffer[Pos])) 58 ++Pos; 62 const uptr NameStart = Pos; 63 while (Buffer[Pos] != '=' && !isSeparatorOrNull(Buffer[Pos])) 64 ++Pos; 65 if (Buffer[Pos] != '=') 68 const uptr ValueStart = ++Pos; 70 if (Buffer[Pos] == '\'' || Buffer[Pos] [all...] |
H A D | string_utils.cpp | 42 int Pos = 0; 44 RAW_CHECK_MSG(static_cast<uptr>(Pos) < MaxLen, 46 NumBuffer[Pos++] = static_cast<uptr>(AbsoluteValue % Base); 49 if (Pos < MinNumberLength) { 50 memset(&NumBuffer[Pos], 0, 51 sizeof(NumBuffer[0]) * static_cast<uptr>(MinNumberLength - Pos)); 52 Pos = MinNumberLength; 54 RAW_CHECK(Pos > 0); 55 Pos--; 56 for (; Pos > 35 RAW_CHECK(MinNumberLength < MaxLen); int Res = 0; if (Negative && MinNumberLength) --MinNumberLength; if (Negative && PadWithZero) Res += appendChar(Buffer, BufferEnd, �); uptr NumBuffer[MaxLen]; int Pos = 0; do { RAW_CHECK_MSG(static_cast<uptr>(Pos) < MaxLen, �); NumBuffer[Pos++] = static_cast<uptr>(AbsoluteValue % Base); AbsoluteValue /= Base; } while (AbsoluteValue > 0); if (Pos < MinNumberLength) { memset(&NumBuffer[Pos], 0, sizeof(NumBuffer[0]) * static_cast<uptr>(MinNumberLength - Pos)); Pos = MinNumberLength; } RAW_CHECK(Pos > 0); Pos--; for (; Pos >= 0 && NumBuffer[Pos] == 0; Pos--) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerIOWindows.cpp | 80 size_t Pos = Path.find_last_of("/\\"); local 81 if (Pos == std::string::npos) return Path; 82 assert(Pos < Path.size()); 83 return Path.substr(Pos + 1); 252 size_t Pos = Offset; local 254 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) 256 return Pos - Offset; 262 size_t Pos local 278 size_t Pos = Offset, Res; local 303 size_t Pos = 0, Res; local [all...] |
H A D | FuzzerUtil.cpp | 98 for (size_t Pos = L; Pos <= R; Pos++) { 99 uint8_t V = (uint8_t)Str[Pos]; 103 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { 104 U->push_back(Str[Pos + 1]); 105 Pos++; 109 if (Pos 139 size_t Pos = 0; local [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/ |
H A D | LayoutOverrideSource.cpp | 60 StringRef::size_type Pos; local 61 if ((Pos = LineStr.find("struct ")) != StringRef::npos) 62 LineStr = LineStr.substr(Pos + strlen("struct ")); 63 else if ((Pos = LineStr.find("class ")) != StringRef::npos) 64 LineStr = LineStr.substr(Pos + strlen("class ")); 65 else if ((Pos = LineStr.find("union ")) != StringRef::npos) 66 LineStr = LineStr.substr(Pos + strlen("union ")); 77 StringRef::size_type Pos = LineStr.find(" Size:"); local 78 if (Pos != StringRef::npos) { 80 LineStr = LineStr.substr(Pos [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTImporterSharedState.h | 68 auto Pos = ImportErrors.find(ToD); local 69 if (Pos != ImportErrors.end()) 70 return Pos->second;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/ |
H A D | StringTableBuilder.cpp | 79 // Returns the character at Pos from end of a string. 80 static int charTailAt(StringPair *P, size_t Pos) { argument 82 if (Pos >= S.size()) 84 return (unsigned char)S[S.size() - Pos - 1]; 89 static void multikeySort(MutableArrayRef<StringPair *> Vec, int Pos) { argument 97 int Pivot = charTailAt(Vec[0], Pos); 101 int C = charTailAt(Vec[K], Pos); 110 multikeySort(Vec.slice(0, I), Pos); 111 multikeySort(Vec.slice(J), Pos); 113 // multikeySort(Vec.slice(I, J - I), Pos 147 size_t Pos = Size - S.size() - (K != RAW); local [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/ |
H A D | ArgumentsAdjusters.h | 59 ArgumentInsertPosition Pos); 65 ArgumentInsertPosition Pos = ArgumentInsertPosition::END);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/LineEditor/ |
H A D | LineEditor.h | 102 /// \param Pos The zero-based cursor position in the StringRef 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 { 133 return Value(Buffer, Pos); 142 size_t Pos) const override { 143 return Value(Buffer, Pos);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | STLAlgorithmModeling.cpp | 122 const auto *Pos = getIteratorPosition(State, Param); local 123 if (Pos) { 124 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), 131 nonloc::SymbolVal(Pos->getOffset()), 144 Pos = getIteratorPosition(State, Param); 145 if (Pos) { 146 StateFound = createIteratorPosition(StateFound, RetVal, Pos->getContainer(), 153 nonloc::SymbolVal(Pos->getOffset()),
|
H A D | IteratorRangeChecker.cpp | 67 bool isPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos); 68 bool isAheadOfRange(ProgramStateRef State, const IteratorPosition &Pos); 69 bool isBehindPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos); 197 const auto *Pos = getIteratorPosition(State, Val); local 198 if (Pos && isPastTheEnd(State, *Pos)) { 282 const auto *Pos = getIteratorPosition(C.getState(), Val); local 283 assert(Pos && "Iterator without known position cannot be out-of-range."); 286 R->markInteresting(Pos->getContainer()); 303 bool isPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos) { argument 319 isAheadOfRange(ProgramStateRef State, const IteratorPosition &Pos) argument 335 isBehindPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/ |
H A D | CodeExpander.cpp | 25 size_t Pos = Current.find_first_of("$\n\\"); local 26 if (Pos == StringRef::npos) { 32 OS << Current.substr(0, Pos); 33 Current = Current.substr(Pos);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsBranchExpansion.cpp | 161 MachineBasicBlock::iterator Pos, DebugLoc DL); 375 MachineBasicBlock::iterator Pos, 396 BuildMI(*MBB, Pos, DL, TII->get(JumpOp)).addReg(ATReg); 409 MachineBasicBlock::iterator Pos; local 463 Pos = LongBrMBB->begin(); 465 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) 468 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)) 489 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) 501 LongBrMBB->insert(Pos, ADDiuInstr); 502 LongBrMBB->insert(Pos, BalInst 374 buildProperJumpMI(MachineBasicBlock *MBB, MachineBasicBlock::iterator Pos, DebugLoc DL) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | MapVector.h | 113 typename MapType::const_iterator Pos = Map.find(Key); local 114 return Pos == Map.end()? ValueT() : Vector[Pos->second].second; 143 typename MapType::const_iterator Pos = Map.find(Key); local 144 return Pos == Map.end()? 0 : 1; 148 typename MapType::const_iterator Pos = Map.find(Key); local 149 return Pos == Map.end()? Vector.end() : 150 (Vector.begin() + Pos->second); 154 typename MapType::const_iterator Pos = Map.find(Key); local 155 return Pos 161 typename MapType::iterator Pos = Map.find(Vector.back().first); local [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | CommentParser.cpp | 50 Position Pos; member in class:clang::comments::TextTokenRetokenizer 53 return Pos.CurToken >= Toks.size(); 59 const Token &Tok = Toks[Pos.CurToken]; 61 Pos.BufferStart = Tok.getText().begin(); 62 Pos.BufferEnd = Tok.getText().end(); 63 Pos.BufferPtr = Pos.BufferStart; 64 Pos.BufferStartLoc = Tok.getLocation(); 68 const unsigned CharNo = Pos.BufferPtr - Pos [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
H A D | AddressSanitizer.h | 55 auto Pos = Entries.find(G); local 56 return (Pos != Entries.end()) ? Pos->second : Entry();
|