| /trueos/sys/contrib/dev/acpica/components/utilities/ |
| HD | utprint.c | 185 char *Pos; in AcpiUtPutNumber() local 188 Pos = String; in AcpiUtPutNumber() 193 *(Pos++) = '0'; in AcpiUtPutNumber() 200 *(Pos++) = Digits[DigitIndex]; in AcpiUtPutNumber() 205 return (Pos); in AcpiUtPutNumber() 305 char *Pos; in AcpiUtFormatNumber() local 363 Pos = AcpiUtPutNumber (ReversedString, Number, Base, Upper); in AcpiUtFormatNumber() 364 i = ACPI_PTR_DIFF (Pos, ReversedString); in AcpiUtFormatNumber() 451 char *Pos; in AcpiUtVsnprintf() local 460 Pos = String; in AcpiUtVsnprintf() [all …]
|
| /trueos/contrib/llvm/tools/clang/lib/Frontend/ |
| HD | 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 …]
|
| HD | VerifyDiagnosticConsumer.cpp | 286 Preprocessor *PP, SourceLocation Pos, in ParseDirective() argument 313 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 323 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective() 348 ExpectedLoc = Pos; in ParseDirective() 357 unsigned ExpectedLine = SM.getSpellingLineNumber(Pos, &Invalid); in ParseDirective() 361 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1); in ParseDirective() 366 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1); in ParseDirective() 374 const FileEntry *FE = PP->LookupFile(Pos, Filename, false, NULL, CurDir, in ParseDirective() 377 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 383 SM.createFileID(FE, Pos, SrcMgr::C_User); in ParseDirective() [all …]
|
| HD | TextDiagnosticBuffer.cpp | 48 size_t Pos = Str.find('%'); in escapeDiag() local 49 if (Pos == StringRef::npos) in escapeDiag() 54 Buf.append(Str.data(), Str.data() + Pos); in escapeDiag() 55 for (size_t I = Pos, E = Str.size(); I != E; ++I) { in escapeDiag()
|
| /trueos/contrib/llvm/lib/CodeGen/ |
| HD | AllocationOrder.h | 31 int Pos; variable 49 if (Pos < 0) in next() 50 return Hints.end()[Pos++]; in next() 51 while (Pos < int(Order.size())) { in next() 52 unsigned Reg = Order[Pos++]; in next() 64 if (Pos < 0) in nextWithDups() 65 return Hints.end()[Pos++]; in nextWithDups() 66 if (Pos < int(Limit)) in nextWithDups() 67 return Order[Pos++]; in nextWithDups() 72 void rewind() { Pos = -int(Hints.size()); } in rewind() [all …]
|
| /trueos/contrib/llvm/lib/Support/ |
| HD | FileUtilities.cpp | 50 static const char *BackupNumber(const char *Pos, const char *FirstChar) { in BackupNumber() argument 52 if (!isNumberChar(*Pos)) return Pos; in BackupNumber() 56 while (Pos > FirstChar && isNumberChar(Pos[-1])) { in BackupNumber() 58 if (Pos[-1] == '.') { in BackupNumber() 64 --Pos; in BackupNumber() 65 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[-1])) in BackupNumber() 68 return Pos; in BackupNumber() 74 static const char *EndOfNumber(const char *Pos) { in EndOfNumber() argument 75 while (isNumberChar(*Pos)) in EndOfNumber() 76 ++Pos; in EndOfNumber() [all …]
|
| HD | FoldingSet.cpp | 93 unsigned Pos = 0; in AddString() local 99 Pos = (Units + 1) * 4; in AddString() 105 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 106 unsigned V = ((unsigned char)String[Pos - 4] << 24) | in AddString() 107 ((unsigned char)String[Pos - 3] << 16) | in AddString() 108 ((unsigned char)String[Pos - 2] << 8) | in AddString() 109 (unsigned char)String[Pos - 1]; in AddString() 114 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 115 unsigned V = ((unsigned char)String[Pos - 1] << 24) | in AddString() 116 ((unsigned char)String[Pos - 2] << 16) | in AddString() [all …]
|
| HD | Triple.cpp | 386 for (unsigned Pos = 0; Pos != array_lengthof(Found); ++Pos) { in normalize() local 387 if (Found[Pos]) in normalize() 398 switch (Pos) { in normalize() 424 if (Pos < Idx) { in normalize() 432 for (unsigned i = Pos; !CurrentComponent.empty(); ++i) { in normalize() 440 } else if (Pos > Idx) { in normalize() 465 } while (Idx < Pos); // Add more until the final position is reached. in normalize() 467 assert(Pos < Components.size() && Components[Pos] == Comp && in normalize() 469 Found[Pos] = true; in normalize()
|
| /trueos/contrib/llvm/tools/clang/lib/AST/ |
| HD | 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 …]
|
| HD | CXXInheritance.cpp | 658 Pos = Overriding.begin(), PosEnd = Overriding.end(); in getFinalOverriders() local 659 Pos != PosEnd; in getFinalOverriders() 661 if (!Pos->InVirtualSubobject) { in getFinalOverriders() 662 ++Pos; in getFinalOverriders() 676 if (Pos == OP) in getFinalOverriders() 680 const_cast<CXXRecordDecl *>(Pos->InVirtualSubobject))) in getFinalOverriders() 687 Pos = Overriding.erase(Pos); in getFinalOverriders() 690 ++Pos; in getFinalOverriders()
|
| /trueos/contrib/llvm/include/llvm/ADT/ |
| HD | MapVector.h | 89 typename MapType::const_iterator Pos = Map.find(Key); in lookup() local 90 return Pos == Map.end()? ValueT() : Vector[Pos->second].second; in lookup() 106 typename MapType::const_iterator Pos = Map.find(Key); in count() local 107 return Pos == Map.end()? 0 : 1; in count() 111 typename MapType::const_iterator Pos = Map.find(Key); in find() local 112 return Pos == Map.end()? Vector.end() : in find() 113 (Vector.begin() + Pos->second); in find() 117 typename MapType::const_iterator Pos = Map.find(Key); in find() local 118 return Pos == Map.end()? Vector.end() : in find() 119 (Vector.begin() + Pos->second); in find() [all …]
|
| /trueos/contrib/llvm/lib/TableGen/ |
| HD | 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()
|
| /trueos/contrib/llvm/lib/Target/Mips/ |
| HD | MipsLongBranch.cpp | 250 MachineBasicBlock::iterator Pos; in expandToLongBranch() local 291 Pos = LongBrMBB->begin(); in expandToLongBranch() 293 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch() 295 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) in expandToLongBranch() 298 MIBundleBuilder(*LongBrMBB, Pos) in expandToLongBranch() 302 Pos = BalTgtMBB->begin(); in expandToLongBranch() 304 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::AT) in expandToLongBranch() 306 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) in expandToLongBranch() 308 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) in expandToLongBranch() 311 MIBundleBuilder(*BalTgtMBB, Pos) in expandToLongBranch() [all …]
|
| /trueos/contrib/llvm/tools/llvm-ar/ |
| HD | llvm-ar.cpp | 437 int Pos = -1) { in addMember() argument 439 if (Pos == -1) in addMember() 442 Members[Pos] = NI; in addMember() 466 std::vector<std::string>::iterator &Pos) { in computeInsertAction() argument 476 Pos = MI; in computeInsertAction() 522 int Pos = Ret.size(); in computeNewArchiveMembers() local 528 InsertPos = Pos; in computeNewArchiveMembers() 530 InsertPos = Pos + 1; in computeNewArchiveMembers() 569 int Pos = InsertPos; in computeNewArchiveMembers() local 572 I != E; ++I, ++Pos) { in computeNewArchiveMembers() [all …]
|
| /trueos/contrib/llvm/lib/Target/ARM/MCTargetDesc/ |
| HD | ARMUnwindOpAsm.cpp | 31 size_t Pos; member in __anon993ee0480111::UnwindOpcodeStreamer 34 UnwindOpcodeStreamer(SmallVectorImpl<uint8_t> &V) : Vec(V), Pos(3) { in UnwindOpcodeStreamer() 39 Vec[Pos] = elem; in EmitByte() 40 Pos = (((Pos ^ 0x3u) + 1) ^ 0x3u); in EmitByte() 59 while (Pos < Vec.size()) in FillFinishOpcode()
|
| /trueos/contrib/llvm/include/llvm/Support/ |
| HD | StreamableMemoryObject.h | 151 bool fetchToPos(size_t Pos) const { in fetchToPos() argument 152 if (EOFReached) return Pos < ObjectSize; in fetchToPos() 153 while (Pos >= BytesRead) { in fetchToPos() 159 if (ObjectSize && BytesRead < Pos) in fetchToPos() 161 if (BytesRead <= Pos) { // reached EOF/ran out of bytes in fetchToPos()
|
| /trueos/contrib/llvm/lib/Transforms/Instrumentation/ |
| HD | DataFlowSanitizer.cpp | 181 Value *getShadowAddress(Value *Addr, Instruction *Pos); 182 Value *combineShadows(Value *V1, Value *V2, Instruction *Pos); 223 Value *getArgTLS(unsigned Index, Instruction *Pos); 229 Instruction *Pos); 231 Instruction *Pos); 411 size_t Pos = Asm.find(SearchStr); in addGlobalNamePrefix() local 412 if (Pos != std::string::npos) { in addGlobalNamePrefix() 413 Asm.replace(Pos, SearchStr.size(), in addGlobalNamePrefix() 713 Instruction *Pos; in runOnModule() local 715 Pos = I->getNextNode(); in runOnModule() [all …]
|
| /trueos/contrib/llvm/include/llvm/CodeGen/ |
| HD | StackMaps.h | 51 unsigned getMetaIdx(unsigned Pos = 0) const { 52 assert(Pos < MetaEnd && "Meta operand index out of range."); 53 return (HasDef ? 1 : 0) + Pos; 56 const MachineOperand &getMetaOper(unsigned Pos) { in getMetaOper() argument 57 return MI->getOperand(getMetaIdx(Pos)); in getMetaOper()
|
| /trueos/contrib/llvm/tools/clang/lib/Lex/ |
| HD | PreprocessingRecord.cpp | 93 int Pos = PPEI.Position; in isEntityInFileID() local 94 if (Pos < 0) { in isEntityInFileID() 95 if (unsigned(-Pos-1) >= LoadedPreprocessedEntities.size()) { in isEntityInFileID() 100 unsigned LoadedIndex = LoadedPreprocessedEntities.size()+Pos; in isEntityInFileID() 118 if (unsigned(Pos) >= PreprocessedEntities.size()) { in isEntityInFileID() local 122 return isPreprocessedEntityIfInFileID(PreprocessedEntities[Pos], in isEntityInFileID() 361 llvm::DenseMap<const MacroInfo *, MacroDefinition *>::iterator Pos in findMacroDefinition() local 363 if (Pos == MacroDefinitions.end()) in findMacroDefinition() 366 return Pos->second; in findMacroDefinition()
|
| /trueos/contrib/llvm/lib/Target/R600/ |
| HD | R600OptimizeVectorRegisters.cpp | 180 MachineBasicBlock::iterator Pos = RSI->Instr; in RebuildVector() local 181 MachineBasicBlock &MBB = *Pos->getParent(); in RebuildVector() 182 DebugLoc DL = Pos->getDebugLoc(); in RebuildVector() 194 MachineInstr *Tmp = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::INSERT_SUBREG), in RebuildVector() 211 Pos = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::COPY), Reg) in RebuildVector() 213 DEBUG(dbgs() << " ->"; Pos->dump();); in RebuildVector() 225 RSI->Instr = Pos; in RebuildVector() 229 return Pos; in RebuildVector()
|
| /trueos/contrib/llvm/lib/MC/ |
| HD | SubtargetFeature.cpp | 73 size_t Pos = 0; in Split() local 76 size_t Comma = S.find(',', Pos); in Split() 80 V.push_back(S.substr(Pos)); in Split() 84 V.push_back(S.substr(Pos, Comma - Pos)); in Split() 86 Pos = Comma + 1; in Split()
|
| /trueos/contrib/llvm/lib/Target/ARM/ |
| HD | Thumb2ITBlockPass.cpp | 195 unsigned Mask = 0, Pos = 3; in InsertITInstructions() local 202 for (; MBBI != E && Pos && in InsertITInstructions() 213 Mask |= (NCC & 1) << Pos; in InsertITInstructions() 230 --Pos; in InsertITInstructions() 235 Mask |= (1 << Pos); in InsertITInstructions()
|
| /trueos/contrib/llvm/lib/MC/MCParser/ |
| HD | AsmParser.cpp | 1705 std::size_t End = Body.size(), Pos = 0; in expandMacro() local 1706 for (; Pos != End; ++Pos) { in expandMacro() 1710 if (Body[Pos] != '$' || Pos + 1 == End) in expandMacro() 1713 char Next = Body[Pos + 1]; in expandMacro() 1719 if (Body[Pos] == '\\' && Pos + 1 != End) in expandMacro() 1725 OS << Body.slice(0, Pos); in expandMacro() 1728 if (Pos == End) in expandMacro() 1732 switch (Body[Pos + 1]) { in expandMacro() 1746 unsigned Index = Body[Pos + 1] - '0'; in expandMacro() 1758 Pos += 2; in expandMacro() [all …]
|
| /trueos/contrib/llvm/patches/ |
| HD | patch-r274286-llvm-r201784-asm-dollar.diff | 40 std::size_t End = Body.size(), Pos = 0; 41 for (; Pos != End; ++Pos) { 46 if (Body[Pos] != '$' || Pos + 1 == End) 49 if (Pos == End) 54 switch (Body[Pos + 1]) {
|
| /trueos/contrib/llvm/tools/clang/include/clang/Sema/ |
| HD | IdentifierResolver.h | 55 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl() argument 56 Decls.insert(Pos, D); in InsertDecl() 168 void InsertDeclAfter(iterator Pos, NamedDecl *D);
|