| /freebsd-12.1/contrib/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOWindows.cpp | 200 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName() 210 if (Pos >= End || IsSeparator(FileName[Pos])) in ParseDir() 212 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseDir() 227 Pos += Res; in ParseServerAndShare() 230 Pos += Res; in ParseServerAndShare() 252 Pos += Res; in ParseLocation() 264 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation() 265 ++Pos; in ParseLocation() 267 ++Pos; in ParseLocation() 272 return Pos; in ParseLocation() [all …]
|
| H A D | FuzzerUtil.cpp | 99 for (size_t Pos = L; Pos <= R; Pos++) { in ParseOneDictionaryEntry() local 100 uint8_t V = (uint8_t)Str[Pos]; in ParseOneDictionaryEntry() 104 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { in ParseOneDictionaryEntry() 106 Pos++; in ParseOneDictionaryEntry() 110 if (Pos + 3 <= R && Str[Pos + 1] == 'x' in ParseOneDictionaryEntry() 111 && isxdigit(Str[Pos + 2]) && isxdigit(Str[Pos + 3])) { in ParseOneDictionaryEntry() 113 Hex[2] = Str[Pos + 2]; in ParseOneDictionaryEntry() 114 Hex[3] = Str[Pos + 3]; in ParseOneDictionaryEntry() 116 Pos += 3; in ParseOneDictionaryEntry() 140 size_t Pos = 0; in ParseDictionaryFile() local [all …]
|
| H A D | FuzzerUtil.h | 77 auto Pos = S.find(X); in SplitBefore() local 78 if (Pos == std::string::npos) in SplitBefore() 80 return std::make_pair(S.substr(0, Pos), S.substr(Pos)); in SplitBefore()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/IPO/ |
| H A D | WholeProgramDevirt.h | 44 if (Bytes.size() < Pos + Size) { in getPtrToData() 45 Bytes.resize(Pos + Size); in getPtrToData() 46 BytesUsed.resize(Pos + Size); in getPtrToData() 48 return std::make_pair(Bytes.data() + Pos, BytesUsed.data() + Pos); in getPtrToData() 54 assert(Pos % 8 == 0); in setLE() 66 assert(Pos % 8 == 0); in setBE() 76 void setBit(uint64_t Pos, bool b) { in setBit() 79 *DataUsed.first |= 1 << (Pos % 8); in setBit() 81 *DataUsed.second |= 1 << (Pos % 8); in setBit() 167 void setBeforeBit(uint64_t Pos) { in setBeforeBit() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | LineIterator.cpp | 54 const char *Pos = CurrentLine.end(); in advance() local 55 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance() 57 if (skipIfAtLineEnd(Pos)) in advance() 63 while (skipIfAtLineEnd(Pos)) in advance() 70 if (*Pos == CommentMarker) in advance() 72 ++Pos; in advance() 73 } while (*Pos != '\0' && !isAtLineEnd(Pos)); in advance() 74 if (!skipIfAtLineEnd(Pos)) in advance() 80 if (*Pos == '\0') { in advance() 89 while (Pos[Length] != '\0' && !isAtLineEnd(&Pos[Length])) { in advance() [all …]
|
| H A D | FileUtilities.cpp | 53 static const char *BackupNumber(const char *Pos, const char *FirstChar) { in BackupNumber() argument 55 if (!isNumberChar(*Pos)) return Pos; in BackupNumber() 59 while (Pos > FirstChar && isNumberChar(Pos[-1])) { in BackupNumber() 61 if (Pos[-1] == '.') { in BackupNumber() 67 --Pos; in BackupNumber() 68 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[-1])) in BackupNumber() 71 return Pos; in BackupNumber() 77 static const char *EndOfNumber(const char *Pos) { in EndOfNumber() argument 78 while (isNumberChar(*Pos)) in EndOfNumber() 79 ++Pos; in EndOfNumber() [all …]
|
| H A D | FoldingSet.cpp | 93 unsigned Pos = 0; in AddString() local 99 Pos = (Units + 1) * 4; in AddString() 107 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 108 unsigned V = ((unsigned char)String[Pos - 4] << 24) | in AddString() 109 ((unsigned char)String[Pos - 3] << 16) | in AddString() 110 ((unsigned char)String[Pos - 2] << 8) | in AddString() 111 (unsigned char)String[Pos - 1]; in AddString() 115 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 118 ((unsigned char)String[Pos - 3] << 8) | in AddString() 119 (unsigned char)String[Pos - 4]; in AddString() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/ELF/ |
| H A D | ScriptLexer.cpp | 49 if (Pos != StringRef::npos) in getLine() 50 S = S.substr(Pos + 1); in getLine() 80 if (Pos) in setError() 133 if (Pos == 0) in tokenize() 134 Pos = 1; in tokenize() 136 S = S.substr(Pos); in tokenize() 236 return Tokens[Pos++]; in next() 243 Pos = Pos - 1; in peek() 252 Pos = Pos - 2; in peek2() 268 if (Tokens.size() >= Pos + 2 && Tokens[Pos] == Tok && in consumeLabel() [all …]
|
| H A D | DWARF.cpp | 64 LLDDwarfObj<ELFT>::findAux(const InputSectionBase &Sec, uint64_t Pos, in findAux() argument 67 Rels.begin(), Rels.end(), Pos, in findAux() 69 if (It == Rels.end() || It->r_offset != Pos) in findAux() 99 uint64_t Pos) const { in find() 102 return findAux(*Sec.Sec, Pos, Sec.Sec->template relas<ELFT>()); in find() 103 return findAux(*Sec.Sec, Pos, Sec.Sec->template rels<ELFT>()); in find()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | LayoutOverrideSource.cpp | 61 StringRef::size_type Pos; in LayoutOverrideSource() local 78 StringRef::size_type Pos = LineStr.find(" Size:"); in LayoutOverrideSource() local 79 if (Pos != StringRef::npos) { in LayoutOverrideSource() 90 Pos = LineStr.find("Alignment:"); in LayoutOverrideSource() 91 if (Pos != StringRef::npos) { in LayoutOverrideSource() 102 Pos = LineStr.find("sizeof="); in LayoutOverrideSource() 103 if (Pos != StringRef::npos) { in LayoutOverrideSource() 112 Pos = LineStr.find("align="); in LayoutOverrideSource() 113 if (Pos != StringRef::npos) { in LayoutOverrideSource() 127 Pos = LineStr.find("FieldOffsets: ["); in LayoutOverrideSource() [all …]
|
| H A D | VerifyDiagnosticConsumer.cpp | 434 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 441 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 456 ExpectedLoc = Pos; in ParseDirective() 486 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 492 SM.createFileID(FE, Pos, SrcMgr::C_User); in ParseDirective() 506 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 529 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 548 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 557 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 580 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | AllocationOrder.h | 33 int Pos; variable 56 if (Pos < 0) 57 return Hints.end()[Pos++]; 62 while (Pos < int(Limit)) { 63 unsigned Reg = Order[Pos++]; 75 if (Pos < 0) in nextWithDups() 76 return Hints.end()[Pos++]; in nextWithDups() 79 if (Pos < int(Limit)) in nextWithDups() 80 return Order[Pos++]; in nextWithDups() 85 void rewind() { Pos = -int(Hints.size()); } in rewind() [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 …]
|
| H A D | RegisterPressure.cpp | 408 SlotIndex Pos, LaneBitmask SafeDefault, in getLanesWithProperty() argument 415 if (Property(SR, Pos)) in getLanesWithProperty() 418 } else if (Property(LI, Pos)) { in getLanesWithProperty() 437 SlotIndex Pos) { in getLiveLanesAt() argument 441 return LR.liveAt(Pos); in getLiveLanesAt() 586 SlotIndex Pos, in adjustLaneLiveness() argument 1227 [](const LiveRange &LR, SlotIndex Pos) { in getLiveLanesAt() argument 1228 return LR.liveAt(Pos); in getLiveLanesAt() 1237 [](const LiveRange &LR, SlotIndex Pos) { in getLastUsedLanes() argument 1248 [](const LiveRange &LR, SlotIndex Pos) { in getLiveThroughAt() argument [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/Mips/ |
| H A D | MipsBranchExpansion.cpp | 401 MachineBasicBlock::iterator Pos; in expandToLongBranch() local 455 Pos = LongBrMBB->begin(); in expandToLongBranch() 494 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 496 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 501 Pos = BalTgtMBB->begin(); in expandToLongBranch() 578 Pos = LongBrMBB->begin(); in expandToLongBranch() 605 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch() 612 Pos = BalTgtMBB->begin(); in expandToLongBranch() 636 Pos = LongBrMBB->begin(); in expandToLongBranch() 657 BuildMI(*LongBrMBB, Pos, DL, in expandToLongBranch() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | CommentParser.cpp | 51 Position Pos; member in clang::comments::TextTokenRetokenizer 64 Pos.BufferPtr = Pos.BufferStart; in setupBuffer() 69 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation() 75 assert(Pos.BufferPtr != Pos.BufferEnd); in peek() 81 assert(Pos.BufferPtr != Pos.BufferEnd); in consumeChar() 82 Pos.BufferPtr++; in consumeChar() 83 if (Pos.BufferPtr == Pos.BufferEnd) { in consumeChar() 84 Pos.CurToken++; in consumeChar() 240 if (Pos.BufferPtr != Pos.BufferStart) { in putBackLeftoverTokens() 242 Pos.BufferPtr, Pos.BufferEnd - Pos.BufferPtr, in putBackLeftoverTokens() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IteratorChecker.cpp | 747 if (Pos) { in checkBind() 765 if (!Pos) in checkPostStmt() 920 if (Pos && isPastTheEnd(State, *Pos)) { in verifyDereference() 932 if (Pos && !Pos->isValid()) { in verifyAccess() 947 if (Pos) { in handleIncrement() 1027 if (!Pos) in handleRandomIncrOrDecr() 1064 if (!Pos) in verifyRandomIncrOrDecr() 1104 if (Pos && Pos->getContainer() != Cont) { in verifyMatch() 1438 if (!Pos) in handleInsert() 1463 if (!Pos) in handleErase() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/MC/ |
| H A D | StringTableBuilder.cpp | 77 static int charTailAt(StringPair *P, size_t Pos) { in charTailAt() argument 79 if (Pos >= S.size()) in charTailAt() 81 return (unsigned char)S[S.size() - Pos - 1]; in charTailAt() 94 int Pivot = charTailAt(Vec[0], Pos); in multikeySort() 98 int C = charTailAt(Vec[K], Pos); in multikeySort() 107 multikeySort(Vec.slice(0, I), Pos); in multikeySort() 108 multikeySort(Vec.slice(J), Pos); in multikeySort() 114 ++Pos; in multikeySort() 144 size_t Pos = Size - S.size() - (K != RAW); in finalizeStringTable() local 145 if (!(Pos & (Alignment - 1))) { in finalizeStringTable() [all …]
|
| /freebsd-12.1/contrib/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-12.1/contrib/llvm/include/llvm/LineEditor/ |
| H A D | LineEditor.h | 104 CompletionAction getCompletionAction(StringRef Buffer, size_t Pos) const; 119 virtual CompletionAction complete(StringRef Buffer, size_t Pos) const = 0; 124 CompletionAction complete(StringRef Buffer, size_t Pos) const override; 127 size_t Pos) const = 0; 133 CompletionAction complete(StringRef Buffer, size_t Pos) const override { in complete() 134 return Value(Buffer, Pos); in complete() 143 size_t Pos) const override { in getCompletions() 144 return Value(Buffer, Pos); in getCompletions()
|
| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | MapVector.h | 114 typename MapType::const_iterator Pos = Map.find(Key); in lookup() local 115 return Pos == Map.end()? ValueT() : Vector[Pos->second].second; in lookup() 144 typename MapType::const_iterator Pos = Map.find(Key); in count() local 145 return Pos == Map.end()? 0 : 1; in count() 149 typename MapType::const_iterator Pos = Map.find(Key); in find() local 150 return Pos == Map.end()? Vector.end() : in find() 151 (Vector.begin() + Pos->second); in find() 155 typename MapType::const_iterator Pos = Map.find(Key); in find() local 156 return Pos == Map.end()? Vector.end() : in find() 157 (Vector.begin() + Pos->second); in find() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/ |
| H A D | ArgumentsAdjusters.cpp | 78 ArgumentInsertPosition Pos) { in getInsertArgumentAdjuster() argument 79 return [Extra, Pos](const CommandLineArguments &Args, StringRef /*unused*/) { in getInsertArgumentAdjuster() 83 if (Pos == ArgumentInsertPosition::END) { in getInsertArgumentAdjuster() 96 ArgumentInsertPosition Pos) { in getInsertArgumentAdjuster() argument 97 return getInsertArgumentAdjuster(CommandLineArguments(1, Extra), Pos); in getInsertArgumentAdjuster()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch/ |
| H A D | RISCV.cpp | 165 auto Pos = Name.find_if(isDigit); in getExtensionFeatures() local 166 if (Pos != StringRef::npos) { in getExtensionFeatures() 167 auto Next = Name.substr(Pos); in getExtensionFeatures() 168 Name = Name.substr(0, Pos); in getExtensionFeatures() 272 size_t Pos = Exts.find_first_of("sx"); in getRISCVTargetFeatures() local 273 if (Pos != StringRef::npos) { in getRISCVTargetFeatures() 274 OtherExts = Exts.substr(Pos); in getRISCVTargetFeatures() 275 Exts = Exts.substr(0, Pos); in getRISCVTargetFeatures()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/ |
| H A D | DataFlowSanitizer.cpp | 958 Instruction *Pos; in runOnModule() local 963 while (isa<PHINode>(Pos) || isa<AllocaInst>(Pos)) in runOnModule() 964 Pos = Pos->getNextNode(); in runOnModule() 999 IRBuilder<> IRB(Pos); in getArgTLS() 1047 IRBuilder<> IRB(Pos); in getShadowAddress() 1096 IRBuilder<> IRB(Pos); in combineShadows() 1167 IRBuilder<> IRB(Pos); in loadShadow() 1198 IRBuilder<> IRB(Pos); in loadShadow() 1218 IRBuilder<> IRB(Pos); in loadShadow() 1268 IRBuilder<> IRB(Pos); in loadShadow() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMUnwindOpAsm.cpp | 32 size_t Pos = 3; member in __anon93cf4dd40111::UnwindOpcodeStreamer 39 Vec[Pos] = elem; in EmitByte() 40 Pos = (((Pos ^ 0x3u) + 1) ^ 0x3u); in EmitByte() 60 while (Pos < Vec.size()) in FillFinishOpcode()
|