/external/llvm/lib/Support/ |
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() 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 …]
|
D | FileUtilities.cpp | 49 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 …]
|
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() 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/ |
D | LayoutOverrideSource.cpp | 61 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 …]
|
D | VerifyDiagnosticConsumer.cpp | 311 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/CodeGen/ |
D | AllocationOrder.h | 31 int Pos; variable 49 if (Pos < 0) 50 return Hints.end()[Pos++]; 53 while (Pos < int(Limit)) { 54 unsigned Reg = Order[Pos++]; 66 if (Pos < 0) in nextWithDups() 67 return Hints.end()[Pos++]; in nextWithDups() 68 if (Pos < int(Limit)) in nextWithDups() 69 return Order[Pos++]; in nextWithDups() 74 void rewind() { Pos = -int(Hints.size()); } in rewind() [all …]
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerCrossOver.cpp | 24 size_t *Pos = &PosA; in CrossOver() local 28 if (*Pos < V->size()) { in CrossOver() 29 size_t SizeLeftV = V->size() - *Pos; in CrossOver() 32 U->insert(U->end(), V->begin() + *Pos, V->begin() + *Pos + ExtraSize); in CrossOver() 33 (*Pos) += ExtraSize; in CrossOver() 37 if (Pos == &PosA) { in CrossOver() 38 Pos = &PosB; in CrossOver() 41 Pos = &PosA; in CrossOver()
|
/external/clang/lib/AST/ |
D | CommentParser.cpp | 51 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/ |
D | TableGenBackend.cpp | 25 size_t Pos = (size_t)OS.tell(); in printLine() local 30 for (size_t i = (size_t)OS.tell() - Pos; i < e; ++i) in printLine() 38 size_t Pos = 0U; in emitSourceFileHeader() local 44 PosE = Pos + ((MAX_LINE_LEN > (Desc.size() - PSLen)) ? in emitSourceFileHeader() 47 printLine(OS, Prefix + Desc.slice(Pos, PosE), ' ', Suffix); in emitSourceFileHeader() 48 Pos = PosE; in emitSourceFileHeader() 49 } while(Pos < Desc.size()); in emitSourceFileHeader()
|
/external/llvm/include/llvm/ADT/ |
D | MapVector.h | 87 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/Target/Mips/ |
D | MipsLongBranch.cpp | 253 MachineBasicBlock::iterator Pos; in expandToLongBranch() local 294 Pos = LongBrMBB->begin(); in expandToLongBranch() 296 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch() 298 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) in expandToLongBranch() 317 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) in expandToLongBranch() 319 MIBundleBuilder(*LongBrMBB, Pos) in expandToLongBranch() 326 Pos = BalTgtMBB->begin(); in expandToLongBranch() 328 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) in expandToLongBranch() 330 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) in expandToLongBranch() 334 MIBundleBuilder(*BalTgtMBB, Pos) in expandToLongBranch() [all …]
|
/external/llvm/include/llvm/LineEditor/ |
D | LineEditor.h | 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 { 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/ |
D | RewriteBufferTest.cpp | 36 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/ |
D | ArgumentsAdjusters.cpp | 57 ArgumentInsertPosition Pos) { in getInsertArgumentAdjuster() argument 58 return [Extra, Pos](const CommandLineArguments &Args) { in getInsertArgumentAdjuster() 62 if (Pos == ArgumentInsertPosition::END) { in getInsertArgumentAdjuster() 75 ArgumentInsertPosition Pos) { in getInsertArgumentAdjuster() argument 76 return getInsertArgumentAdjuster(CommandLineArguments(1, Extra), Pos); in getInsertArgumentAdjuster()
|
/external/lzma/Java/SevenZip/ |
D | LzmaBench.java | 59 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/ |
D | ARMUnwindOpAsm.cpp | 30 size_t Pos; member in __anon1d8c4ff10111::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/ |
D | LzmaBench.cs | 64 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/include/llvm/Support/ |
D | StreamingMemoryObject.h | 66 bool fetchToPos(size_t Pos) const { in fetchToPos() argument 68 return Pos < ObjectSize; in fetchToPos() 69 while (Pos >= BytesRead) { in fetchToPos() 80 return Pos < BytesRead; in fetchToPos()
|
/external/llvm/lib/DebugInfo/DWARF/ |
D | DWARFDebugAbbrev.cpp | 108 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/ |
D | DataFlowSanitizer.cpp | 253 Value *getShadowAddress(Value *Addr, Instruction *Pos); 310 Value *getArgTLS(unsigned Index, Instruction *Pos); 314 Value *combineShadows(Value *V1, Value *V2, Instruction *Pos); 317 Instruction *Pos); 319 Instruction *Pos); 512 size_t Pos = Asm.find(SearchStr); in addGlobalNamePrefix() local 513 if (Pos != std::string::npos) { in addGlobalNamePrefix() 514 Asm.replace(Pos, SearchStr.size(), in addGlobalNamePrefix() 841 Instruction *Pos; in runOnModule() local 843 Pos = I->getNextNode(); in runOnModule() [all …]
|
/external/llvm/tools/llvm-ar/ |
D | llvm-ar.cpp | 474 int Pos = -1) { in addMember() argument 476 if (Pos == -1) in addMember() 479 Members[Pos] = NI; in addMember() 493 std::vector<StringRef>::iterator &Pos) { in computeInsertAction() argument 505 Pos = MI; in computeInsertAction() 549 int Pos = Ret.size(); in computeNewArchiveMembers() local 556 InsertPos = Pos; in computeNewArchiveMembers() 558 InsertPos = Pos + 1; in computeNewArchiveMembers() 598 int Pos = InsertPos; in computeNewArchiveMembers() local 601 addMember(Ret, Member, Name, Pos); in computeNewArchiveMembers() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | StackMaps.h | 55 unsigned getMetaIdx(unsigned Pos = 0) const { 56 assert(Pos < MetaEnd && "Meta operand index out of range."); 57 return (HasDef ? 1 : 0) + Pos; 60 const MachineOperand &getMetaOper(unsigned Pos) { in getMetaOper() argument 61 return MI->getOperand(getMetaIdx(Pos)); in getMetaOper()
|
/external/icu/icu4c/source/common/ |
D | ruleiter.h | 133 struct Pos : public UMemory { struct 158 void getPos(Pos& p) const; 165 void setPos(const Pos& p);
|
/external/clang/lib/Lex/ |
D | PreprocessingRecord.cpp | 91 int Pos = std::distance(iterator(this, 0), PPEI); in isEntityInFileID() local 92 if (Pos < 0) { in isEntityInFileID() 93 if (unsigned(-Pos-1) >= LoadedPreprocessedEntities.size()) { in isEntityInFileID() 98 unsigned LoadedIndex = LoadedPreprocessedEntities.size()+Pos; in isEntityInFileID() 116 if (unsigned(Pos) >= PreprocessedEntities.size()) { in isEntityInFileID() local 120 return isPreprocessedEntityIfInFileID(PreprocessedEntities[Pos], in isEntityInFileID() 359 llvm::DenseMap<const MacroInfo *, MacroDefinition *>::iterator Pos in findMacroDefinition() local 361 if (Pos == MacroDefinitions.end()) in findMacroDefinition() 364 return Pos->second; in findMacroDefinition()
|
/external/llvm/lib/Target/R600/ |
D | R600OptimizeVectorRegisters.cpp | 182 MachineBasicBlock::iterator Pos = RSI->Instr; in RebuildVector() local 183 MachineBasicBlock &MBB = *Pos->getParent(); in RebuildVector() 184 DebugLoc DL = Pos->getDebugLoc(); in RebuildVector() 196 MachineInstr *Tmp = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::INSERT_SUBREG), in RebuildVector() 213 Pos = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::COPY), Reg) in RebuildVector() 215 DEBUG(dbgs() << " ->"; Pos->dump();); in RebuildVector() 227 RSI->Instr = Pos; in RebuildVector() 231 return Pos; in RebuildVector()
|