Home
last modified time | relevance | path

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

1234567891011

/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
H A DFuzzerIOWindows.cpp76 size_t Pos = Path.find_last_of("/\\"); in Basename() local
77 if (Pos == std::string::npos) return Path; in Basename()
78 assert(Pos < Path.size()); in Basename()
79 return Path.substr(Pos + 1); in Basename()
198 size_t Pos = Offset; in ParseFileName() local
200 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName()
202 return Pos - Offset; in ParseFileName()
208 size_t Pos = Offset; in ParseDir() local
210 if (Pos >= End || IsSeparator(FileName[Pos])) in ParseDir()
212 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseDir()
[all …]
H A DFuzzerUtil.cpp99 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()
105 U->push_back(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()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h45 std::pair<uint8_t *, uint8_t *> getPtrToData(uint64_t Pos, uint8_t Size) { in getPtrToData()
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()
55 void setLE(uint64_t Pos, uint64_t Val, uint8_t Size) { in setLE()
56 assert(Pos % 8 == 0); in setLE()
57 auto DataUsed = getPtrToData(Pos / 8, Size); in setLE()
67 void setBE(uint64_t Pos, uint64_t Val, uint8_t Size) { in setBE()
68 assert(Pos % 8 == 0); in setBE()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
45 if (TempPos != Str.find("\\\\", Pos)) { in JsonFormat()
46 Str.insert(Pos, "\\"); in JsonFormat()
47 ++Pos; // As we insert the backslash move plus one. in JsonFormat()
50 ++Pos; in JsonFormat()
54 Pos = 0; in JsonFormat()
56 Pos = Str.find('\"', Pos); in JsonFormat()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
62 if (!SkipBlanks && isAtLineEnd(Pos)) { in advance()
66 while (skipIfAtLineEnd(Pos)) in advance()
71 if (isAtLineEnd(Pos) && !SkipBlanks) 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()
[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()
120 unsigned V = ((unsigned char)String[Pos - 1] << 24) | in AddString()
121 ((unsigned char)String[Pos - 2] << 16) | in AddString()
[all …]
/netbsd-src/sys/external/bsd/acpica/dist/utilities/
H A Dutprint.c179 char *Pos; in AcpiUtPutNumber() local
182 Pos = String; in AcpiUtPutNumber()
187 *(Pos++) = '0'; in AcpiUtPutNumber()
194 *(Pos++) = Digits[DigitIndex]; in AcpiUtPutNumber()
199 return (Pos); in AcpiUtPutNumber()
299 char *Pos; in AcpiUtFormatNumber() local
357 Pos = AcpiUtPutNumber (ReversedString, Number, Base, Upper); in AcpiUtFormatNumber()
358 i = (INT32) ACPI_PTR_DIFF (Pos, ReversedString); in AcpiUtFormatNumber()
447 char *Pos; in vsnprintf() local
456 Pos = String; in vsnprintf()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-rc/
H A DResourceScriptToken.cpp88 Tokenizer(StringRef Input) : Data(Input), DataLength(Input.size()), Pos(0) {} in Tokenizer()
145 size_t DataLength, Pos; member in __anon5fea977f0111::Tokenizer
149 Pos = Data.find_first_of("\r\n", Pos); in skipCurrentLine()
150 Pos = Data.find_first_not_of("\r\n", Pos); in skipCurrentLine()
152 if (Pos == StringRef::npos) in skipCurrentLine()
153 Pos = DataLength; in skipCurrentLine()
157 Pos = 0; in run()
170 return getStringError("Invalid token found at position " + Twine(Pos)); in run()
172 const size_t TokenStart = Pos; in run()
180 RCToken Token(TokenKind, Data.take_front(Pos).drop_front(TokenStart)); in run()
[all …]
H A DResourceScriptCppFilter.cpp38 size_t Pos = 0; member in __anonf83bb3e70111::Filter
45 while (!streamEof() && Pos != StringRef::npos) { in run()
46 size_t LineStart = Pos; in run()
47 Pos = Data.find_first_of("\r\n", Pos); in run()
48 Pos = Data.find_first_not_of("\r\n", Pos); in run()
49 StringRef Line = Data.take_front(Pos).drop_front(LineStart); in run()
103 bool Filter::streamEof() const { return Pos == DataLength; } in streamEof()
/netbsd-src/external/apache2/llvm/dist/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
52 bool isHint() const { return Pos < 0; } in isHint()
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]))
[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()
291 static bool subRangeLiveAt(const LiveInterval &LI, SlotIndex Pos) { in subRangeLiveAt() argument
293 if (SR.liveAt(Pos)) in subRangeLiveAt()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp60 StringRef::size_type Pos; in LayoutOverrideSource() local
61 if ((Pos = LineStr.find("struct ")) != StringRef::npos) in LayoutOverrideSource()
62 LineStr = LineStr.substr(Pos + strlen("struct ")); in LayoutOverrideSource()
63 else if ((Pos = LineStr.find("class ")) != StringRef::npos) in LayoutOverrideSource()
64 LineStr = LineStr.substr(Pos + strlen("class ")); in LayoutOverrideSource()
65 else if ((Pos = LineStr.find("union ")) != StringRef::npos) in LayoutOverrideSource()
66 LineStr = LineStr.substr(Pos + strlen("union ")); in LayoutOverrideSource()
77 StringRef::size_type Pos = LineStr.find(" Size:"); in LayoutOverrideSource() local
78 if (Pos != StringRef::npos) { in LayoutOverrideSource()
80 LineStr = LineStr.substr(Pos + strlen(" Size:")); in LayoutOverrideSource()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsBranchExpansion.cpp161 MachineBasicBlock::iterator Pos, DebugLoc DL);
375 MachineBasicBlock::iterator Pos, in buildProperJumpMI() argument
396 BuildMI(*MBB, Pos, DL, TII->get(JumpOp)).addReg(ATReg); in buildProperJumpMI()
409 MachineBasicBlock::iterator Pos; in expandToLongBranch() local
463 Pos = LongBrMBB->begin(); in expandToLongBranch()
465 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch()
468 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)) in expandToLongBranch()
489 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) in expandToLongBranch()
501 LongBrMBB->insert(Pos, ADDiuInstr); in expandToLongBranch()
502 LongBrMBB->insert(Pos, BalInstr); in expandToLongBranch()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DCommentParser.cpp50 Position Pos; member in clang::comments::TextTokenRetokenizer
53 return Pos.CurToken >= Toks.size(); in isEnd()
59 const Token &Tok = Toks[Pos.CurToken]; in setupBuffer()
61 Pos.BufferStart = Tok.getText().begin(); in setupBuffer()
62 Pos.BufferEnd = Tok.getText().end(); in setupBuffer()
63 Pos.BufferPtr = Pos.BufferStart; in setupBuffer()
64 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer()
68 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation()
69 return Pos.BufferStartLoc.getLocWithOffset(CharNo); in getSourceLocation()
74 assert(Pos.BufferPtr != Pos.BufferEnd); in peek()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/
H A DStringTableBuilder.cpp85 static int charTailAt(StringPair *P, size_t Pos) { in charTailAt() argument
87 if (Pos >= S.size()) in charTailAt()
89 return (unsigned char)S[S.size() - Pos - 1]; in charTailAt()
94 static void multikeySort(MutableArrayRef<StringPair *> Vec, int Pos) { in multikeySort() argument
102 int Pivot = charTailAt(Vec[0], Pos); in multikeySort()
106 int C = charTailAt(Vec[K], Pos); in multikeySort()
115 multikeySort(Vec.slice(0, I), Pos); in multikeySort()
116 multikeySort(Vec.slice(J), Pos); in multikeySort()
122 ++Pos; in multikeySort()
152 size_t Pos = Size - S.size() - (K != RAW); in finalizeStringTable() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyUtilities.cpp122 auto Pos = EHPad->begin(); in findCatch() local
125 while (Pos != EHPad->end() && in findCatch()
126 (Pos->isLabel() || Pos->isDebugInstr() || isMarker(Pos->getOpcode()))) in findCatch()
127 Pos++; in findCatch()
128 if (Pos != EHPad->end() && WebAssembly::isCatch(Pos->getOpcode())) in findCatch()
129 return &*Pos; in findCatch()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DContainerModeling.cpp582 const auto *Pos = getIteratorPosition(State, Iter); in handleInsert() local
583 if (!Pos) in handleInsert()
592 State = invalidateIteratorPositions(State, Pos->getOffset(), BO_GE); in handleInsert()
613 const auto *Pos = getIteratorPosition(State, Iter); in handleErase() local
614 if (!Pos) in handleErase()
624 State = invalidateIteratorPositions(State, Pos->getOffset(), BO_GE); in handleErase()
633 State = invalidateIteratorPositions(State, Pos->getOffset(), BO_EQ); in handleErase()
677 const auto *Pos = getIteratorPosition(State, Iter); in handleEraseAfter() local
678 if (!Pos) in handleEraseAfter()
688 nonloc::SymbolVal(Pos->getOffset()), in handleEraseAfter()
[all …]
H A DIteratorRangeChecker.cpp67 bool isPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos);
68 bool isAheadOfRange(ProgramStateRef State, const IteratorPosition &Pos);
69 bool isBehindPastTheEnd(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
285 assert(Pos && "Iterator without known position cannot be out-of-range."); in reportBug()
288 R->markInteresting(Pos->getContainer()); in reportBug()
305 bool isPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos) { in isPastTheEnd() argument
306 const auto *Cont = Pos.getContainer(); in isPastTheEnd()
[all …]
H A DIteratorModeling.cpp206 if (const auto *Pos = getIteratorPosition(State, Call.getArgSVal(0))) { in checkPostCall() local
207 State = setIteratorPosition(State, Call.getReturnValue(), *Pos); in checkPostCall()
226 if (const auto *Pos = getIteratorPosition(State, Call.getArgSVal(i))) { in checkPostCall() local
228 Pos->getContainer()); in checkPostCall()
238 const auto *Pos = getIteratorPosition(State, Val); in checkBind() local
239 if (Pos) { in checkBind()
240 State = setIteratorPosition(State, Loc, *Pos); in checkBind()
296 const auto *Pos = getIteratorPosition(State, C.getSVal(MTE->getSubExpr())); in checkPostStmt() local
297 if (!Pos) in checkPostStmt()
299 State = setIteratorPosition(State, C.getSVal(MTE), *Pos); in checkPostStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-symbolizer/
H A Dllvm-symbolizer.cpp117 const char *Pos = InputString.data(); in parseCommand() local
120 Pos += strspn(Pos, kDelimiters); in parseCommand()
121 if (*Pos == '"' || *Pos == '\'') { in parseCommand()
122 char Quote = *Pos; in parseCommand()
123 Pos++; in parseCommand()
124 const char *End = strchr(Pos, Quote); in parseCommand()
127 ModuleName = std::string(Pos, End - Pos); in parseCommand()
128 Pos = End + 1; in parseCommand()
130 int NameLength = strcspn(Pos, kDelimiters); in parseCommand()
131 ModuleName = std::string(Pos, NameLength); in parseCommand()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp486 Value *getShadowAddress(Value *Addr, Instruction *Pos);
487 Value *getShadowAddress(Value *Addr, Instruction *Pos, Value *ShadowOffset);
489 getShadowOriginAddress(Value *Addr, Align InstAlignment, Instruction *Pos);
510 Value *loadNextOrigin(Instruction *Pos, Align OriginAlign,
635 const std::vector<Value *> &Origins, Instruction *Pos,
642 Value *combineShadows(Value *V1, Value *V2, Instruction *Pos);
646 Instruction *Pos);
658 Instruction *Pos);
662 Value *Origin, Instruction *Pos);
670 Instruction *Pos);
[all …]

1234567891011