Home
last modified time | relevance | path

Searched refs:Pos (Results 1 – 25 of 244) sorted by relevance

12345678910

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h46 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 DFuzzerIOWindows.cpp266 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 DFuzzerUtil.cpp98 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 DLineIterator.cpp57 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 DFileUtilities.cpp56 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 DFoldingSet.cpp97 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 DJsonSupport.h33 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 Dflags_parser.cpp58 ++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 Dstring_utils.cpp42 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 DAllocationOrder.h46 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 DRenameIndependentSubregs.cpp189 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 DLayoutOverrideSource.cpp60 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 Doptions_parser.cpp57 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 DMipsBranchExpansion.cpp409 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 DCommentParser.cpp50 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 DStringTableBuilder.cpp86 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 DTableGenBackend.cpp24 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 DWebAssemblyUtilities.cpp147 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 DIteratorRangeChecker.cpp67 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 DContainerModeling.cpp583 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 DSTLAlgorithmModeling.cpp122 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 DIteratorModeling.cpp239 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 Dllvm-symbolizer.cpp119 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 DLineEditor.h103 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 DMapVector.h113 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 …]

12345678910