Home
last modified time | relevance | path

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

1234567

/external/llvm/lib/Support/
DLineIterator.cpp54 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()
59 if (!SkipBlanks && isAtLineEnd(Pos)) { in advance()
63 while (skipIfAtLineEnd(Pos)) in advance()
68 if (isAtLineEnd(Pos) && !SkipBlanks) 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()
[all …]
DFileUtilities.cpp49 static const char *BackupNumber(const char *Pos, const char *FirstChar) { in BackupNumber() argument
51 if (!isNumberChar(*Pos)) return Pos; in BackupNumber()
55 while (Pos > FirstChar && isNumberChar(Pos[-1])) { in BackupNumber()
57 if (Pos[-1] == '.') { in BackupNumber()
63 --Pos; in BackupNumber()
64 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[-1])) in BackupNumber()
67 return Pos; in BackupNumber()
73 static const char *EndOfNumber(const char *Pos) { in EndOfNumber() argument
74 while (isNumberChar(*Pos)) in EndOfNumber()
75 ++Pos; in EndOfNumber()
[all …]
DFoldingSet.cpp93 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()
116 unsigned V = ((unsigned char)String[Pos - 1] << 24) | in AddString()
117 ((unsigned char)String[Pos - 2] << 16) | in AddString()
[all …]
/external/clang/lib/Frontend/
DLayoutOverrideSource.cpp61 StringRef::size_type Pos; in LayoutOverrideSource() local
62 if ((Pos = LineStr.find("struct ")) != StringRef::npos) in LayoutOverrideSource()
63 LineStr = LineStr.substr(Pos + strlen("struct ")); in LayoutOverrideSource()
64 else if ((Pos = LineStr.find("class ")) != StringRef::npos) in LayoutOverrideSource()
65 LineStr = LineStr.substr(Pos + strlen("class ")); in LayoutOverrideSource()
66 else if ((Pos = LineStr.find("union ")) != StringRef::npos) in LayoutOverrideSource()
67 LineStr = LineStr.substr(Pos + strlen("union ")); in LayoutOverrideSource()
78 StringRef::size_type Pos = LineStr.find(" Size:"); in LayoutOverrideSource() local
79 if (Pos != StringRef::npos) { in LayoutOverrideSource()
81 LineStr = LineStr.substr(Pos + strlen(" Size:")); in LayoutOverrideSource()
[all …]
DVerifyDiagnosticConsumer.cpp311 Preprocessor *PP, SourceLocation Pos, in ParseDirective() argument
340 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective()
350 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective()
376 ExpectedLoc = Pos; in ParseDirective()
385 unsigned ExpectedLine = SM.getSpellingLineNumber(Pos, &Invalid); in ParseDirective()
389 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1); in ParseDirective()
394 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1); in ParseDirective()
403 PP->LookupFile(Pos, Filename, false, nullptr, nullptr, CurDir, in ParseDirective()
406 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
412 SM.createFileID(FE, Pos, SrcMgr::C_User); in ParseDirective()
[all …]
/external/llvm/lib/Fuzzer/
DFuzzerUtil.cpp112 for (size_t Pos = L; Pos <= R; Pos++) { in ParseOneDictionaryEntry() local
113 uint8_t V = (uint8_t)Str[Pos]; in ParseOneDictionaryEntry()
117 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { in ParseOneDictionaryEntry()
118 U->push_back(Str[Pos + 1]); in ParseOneDictionaryEntry()
119 Pos++; in ParseOneDictionaryEntry()
123 if (Pos + 3 <= R && Str[Pos + 1] == 'x' in ParseOneDictionaryEntry()
124 && isxdigit(Str[Pos + 2]) && isxdigit(Str[Pos + 3])) { in ParseOneDictionaryEntry()
126 Hex[2] = Str[Pos + 2]; in ParseOneDictionaryEntry()
127 Hex[3] = Str[Pos + 3]; in ParseOneDictionaryEntry()
129 Pos += 3; in ParseOneDictionaryEntry()
[all …]
DFuzzerTraceState.cpp168 size_t Pos; member
232 Printf("TBM %zd %zd %zd\n", M.Pos, M.Size, M.Data); in ApplyTraceBasedMutation()
233 if (M.Pos + M.Size > U->size()) return; in ApplyTraceBasedMutation()
234 memcpy(U->data() + M.Pos, &M.Data, M.Size); in ApplyTraceBasedMutation()
250 for (size_t Pos = LR.Beg; Pos + CmpSize <= LR.End; Pos++) { in DFSanCmpCallback() local
251 Mutations.push_back({Pos, CmpSize, Data}); in DFSanCmpCallback()
252 Mutations.push_back({Pos, CmpSize, Data + 1}); in DFSanCmpCallback()
253 Mutations.push_back({Pos, CmpSize, Data - 1}); in DFSanCmpCallback()
278 for (size_t Pos = LR.Beg; Pos + ValSize <= LR.End; Pos++) in DFSanSwitchCallback() local
280 Mutations.push_back({Pos, ValSize, Cases[i]}); in DFSanSwitchCallback()
[all …]
/external/llvm/lib/CodeGen/
DAllocationOrder.h32 int Pos; variable
51 if (Pos < 0)
52 return Hints.end()[Pos++];
55 while (Pos < int(Limit)) {
56 unsigned Reg = Order[Pos++];
68 if (Pos < 0) in nextWithDups()
69 return Hints.end()[Pos++]; in nextWithDups()
70 if (Pos < int(Limit)) in nextWithDups()
71 return Order[Pos++]; in nextWithDups()
76 void rewind() { Pos = -int(Hints.size()); } in rewind()
[all …]
/external/clang/lib/AST/
DCommentParser.cpp51 Position Pos; member in clang::comments::TextTokenRetokenizer
54 return Pos.CurToken >= Toks.size(); in isEnd()
60 const Token &Tok = Toks[Pos.CurToken]; in setupBuffer()
62 Pos.BufferStart = Tok.getText().begin(); in setupBuffer()
63 Pos.BufferEnd = Tok.getText().end(); in setupBuffer()
64 Pos.BufferPtr = Pos.BufferStart; in setupBuffer()
65 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer()
69 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation()
70 return Pos.BufferStartLoc.getLocWithOffset(CharNo); in getSourceLocation()
75 assert(Pos.BufferPtr != Pos.BufferEnd); in peek()
[all …]
/external/llvm/lib/TableGen/
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()
/external/llvm/include/llvm/ADT/
DMapVector.h87 typename MapType::const_iterator Pos = Map.find(Key); in lookup() local
88 return Pos == Map.end()? ValueT() : Vector[Pos->second].second; in lookup()
104 typename MapType::const_iterator Pos = Map.find(Key); in count() local
105 return Pos == Map.end()? 0 : 1; in count()
109 typename MapType::const_iterator Pos = Map.find(Key); in find() local
110 return Pos == Map.end()? Vector.end() : in find()
111 (Vector.begin() + Pos->second); in find()
115 typename MapType::const_iterator Pos = Map.find(Key); in find() local
116 return Pos == Map.end()? Vector.end() : in find()
117 (Vector.begin() + Pos->second); in find()
[all …]
/external/llvm/lib/MC/
DStringTableBuilder.cpp24 static int charTailAt(StringPair *P, size_t Pos) { in charTailAt() argument
26 if (Pos >= S.size()) in charTailAt()
28 return (unsigned char)S[S.size() - Pos - 1]; in charTailAt()
33 static void multikey_qsort(StringPair **Begin, StringPair **End, int Pos) { in multikey_qsort() argument
40 int Pivot = charTailAt(*Begin, Pos); in multikey_qsort()
44 int C = charTailAt(*R, Pos); in multikey_qsort()
53 multikey_qsort(Begin, P, Pos); in multikey_qsort()
54 multikey_qsort(Q, End, Pos); in multikey_qsort()
59 ++Pos; in multikey_qsort()
/external/llvm/lib/Target/Mips/
DMipsLongBranch.cpp253 MachineBasicBlock::iterator Pos; in expandToLongBranch() local
293 Pos = LongBrMBB->begin(); in expandToLongBranch()
295 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch()
297 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) in expandToLongBranch()
316 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) in expandToLongBranch()
318 MIBundleBuilder(*LongBrMBB, Pos) in expandToLongBranch()
325 Pos = BalTgtMBB->begin(); in expandToLongBranch()
327 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) in expandToLongBranch()
329 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) in expandToLongBranch()
333 MIBundleBuilder(*BalTgtMBB, Pos) in expandToLongBranch()
[all …]
/external/llvm/include/llvm/LineEditor/
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()
/external/clang/unittests/Rewrite/
DRewriteBufferTest.cpp36 size_t Pos = Input.find(RemoveStr); in TEST() local
37 Buf.RemoveText(Pos, RemoveStr.size()); in TEST()
40 Pos = Input.find(TagStr); in TEST()
41 tagRange(Pos, TagStr.size(), "outer", Buf); in TEST()
42 tagRange(Pos, TagStr.size(), "inner", Buf); in TEST()
/external/clang/lib/Tooling/
DArgumentsAdjusters.cpp55 ArgumentInsertPosition Pos) { in getInsertArgumentAdjuster() argument
56 return [Extra, Pos](const CommandLineArguments &Args, StringRef /*unused*/) { in getInsertArgumentAdjuster()
60 if (Pos == ArgumentInsertPosition::END) { in getInsertArgumentAdjuster()
73 ArgumentInsertPosition Pos) { in getInsertArgumentAdjuster() argument
74 return getInsertArgumentAdjuster(CommandLineArguments(1, Extra), Pos); in getInsertArgumentAdjuster()
/external/lzma/Java/SevenZip/
DLzmaBench.java59 int Pos; field in LzmaBench.CBenchRandomGenerator
69 Pos = 0; in Set()
90 while (Pos < BufferSize) in Generate()
92 if (GetRndBit() == 0 || Pos < 1) in Generate()
93 Buffer[Pos++] = (byte)(RG.GetRnd(8)); in Generate()
103 while (Rep0 >= Pos); in Generate()
107 for (int i = 0; i < len && Pos < BufferSize; i++, Pos++) in Generate()
108 Buffer[Pos] = Buffer[Pos - Rep0]; in Generate()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMUnwindOpAsm.cpp30 size_t Pos; member in __anona097591d0111::UnwindOpcodeStreamer
33 UnwindOpcodeStreamer(SmallVectorImpl<uint8_t> &V) : Vec(V), Pos(3) { in UnwindOpcodeStreamer()
38 Vec[Pos] = elem; in EmitByte()
39 Pos = (((Pos ^ 0x3u) + 1) ^ 0x3u); in EmitByte()
59 while (Pos < Vec.size()) in FillFinishOpcode()
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs64 UInt32 Pos; field in SevenZip.LzmaBench.CBenchRandomGenerator
75 Pos = 0; in Set()
96 while (Pos < BufferSize) in Generate()
98 if (GetRndBit() == 0 || Pos < 1) in Generate()
99 Buffer[Pos++] = (Byte)RG.GetRnd(8); in Generate()
109 while (Rep0 >= Pos); in Generate()
113 for (UInt32 i = 0; i < len && Pos < BufferSize; i++, Pos++) in Generate()
114 Buffer[Pos] = Buffer[Pos - Rep0]; in Generate()
/external/llvm/tools/llvm-ar/
Dllvm-ar.cpp434 StringRef FileName, int Pos = -1) { in addMember() argument
436 if (Pos == -1) in addMember()
439 Members[Pos] = NI; in addMember()
444 int Pos = -1) { in addMember() argument
448 if (Pos == -1) in addMember()
451 Members[Pos] = NI; in addMember()
465 std::vector<StringRef>::iterator &Pos) { in computeInsertAction() argument
477 Pos = MI; in computeInsertAction()
523 int Pos = Ret.size(); in computeNewArchiveMembers() local
530 InsertPos = Pos; in computeNewArchiveMembers()
[all …]
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugAbbrev.cpp108 const auto Pos = AbbrDeclSets.find(CUAbbrOffset); in getAbbreviationDeclarationSet() local
109 if (Pos != End) { in getAbbreviationDeclarationSet()
110 PrevAbbrOffsetPos = Pos; in getAbbreviationDeclarationSet()
111 return &(Pos->second); in getAbbreviationDeclarationSet()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp260 Value *getShadowAddress(Value *Addr, Instruction *Pos);
317 Value *getArgTLS(unsigned Index, Instruction *Pos);
321 Value *combineShadows(Value *V1, Value *V2, Instruction *Pos);
324 Instruction *Pos);
326 Instruction *Pos);
525 size_t Pos = Asm.find(SearchStr); in addGlobalNamePrefix() local
526 if (Pos != std::string::npos) { in addGlobalNamePrefix()
527 Asm.replace(Pos, SearchStr.size(), in addGlobalNamePrefix()
850 Instruction *Pos; in runOnModule() local
852 Pos = I->getNextNode(); in runOnModule()
[all …]
/external/llvm/include/llvm/CodeGen/
DStackMaps.h56 unsigned getMetaIdx(unsigned Pos = 0) const {
57 assert(Pos < MetaEnd && "Meta operand index out of range.");
58 return (HasDef ? 1 : 0) + Pos;
61 const MachineOperand &getMetaOper(unsigned Pos) { in getMetaOper() argument
62 return MI->getOperand(getMetaIdx(Pos)); in getMetaOper()
/external/icu/icu4c/source/common/
Druleiter.h133 struct Pos : public UMemory { struct
158 void getPos(Pos& p) const;
165 void setPos(const Pos& p);
/external/llvm/include/llvm/Support/
DStreamingMemoryObject.h70 bool fetchToPos(size_t Pos) const { in fetchToPos() argument
71 while (Pos >= BytesRead) { in fetchToPos()
84 return !ObjectSize || Pos < ObjectSize; in fetchToPos()

1234567