Searched refs:Pos (Results 1 - 25 of 105) sorted by relevance

12345

/freebsd-9.3-release/contrib/llvm/lib/CodeGen/
H A DAllocationOrder.h31 int Pos; member in class:llvm::AllocationOrder
49 if (Pos < 0)
50 return Hints.end()[Pos++];
51 while (Pos < int(Order.size())) {
52 unsigned Reg = Order[Pos++];
64 if (Pos < 0)
65 return Hints.end()[Pos++];
66 if (Pos < int(Limit))
67 return Order[Pos++];
72 void rewind() { Pos
[all...]
H A DAllocationOrder.cpp32 : Pos(0) {
H A DBranchFolding.h82 void setTailStartPos(MachineBasicBlock::iterator Pos) { argument
83 TailStartPos = Pos;
/freebsd-9.3-release/contrib/llvm/lib/TableGen/
H A DTableGenBackend.cpp25 size_t Pos = (size_t)OS.tell(); local
30 for (size_t i = (size_t)OS.tell() - Pos; i < e; ++i)
38 size_t Pos = 0U; local
44 PosE = Pos + ((MAX_LINE_LEN > (Desc.size() - PSLen)) ?
47 printLine(OS, Prefix + Desc.slice(Pos, PosE), ' ', Suffix);
48 Pos = PosE;
49 } while(Pos < Desc.size());
/freebsd-9.3-release/contrib/llvm/lib/Support/
H A DFileUtilities.cpp50 static const char *BackupNumber(const char *Pos, const char *FirstChar) { argument
52 if (!isNumberChar(*Pos)) return Pos;
56 while (Pos > FirstChar && isNumberChar(Pos[-1])) {
58 if (Pos[-1] == '.') {
64 --Pos;
65 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[
74 EndOfNumber(const char *Pos) argument
[all...]
H A DFoldingSet.cpp93 unsigned Pos = 0; local
99 Pos = (Units + 1) * 4;
105 for (Pos += 4; Pos <= Size; Pos += 4) {
106 unsigned V = ((unsigned char)String[Pos - 4] << 24) |
107 ((unsigned char)String[Pos - 3] << 16) |
108 ((unsigned char)String[Pos - 2] << 8) |
109 (unsigned char)String[Pos - 1];
114 for (Pos
[all...]
H A DConvertUTFWrapper.cpp23 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); local
24 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) {
26 ErrorPtr = Pos;
H A DTriple.cpp386 for (unsigned Pos = 0; Pos != array_lengthof(Found); ++Pos) {
387 if (Found[Pos])
398 switch (Pos) {
424 if (Pos < Idx) {
430 // Insert the component being moved at Pos, displacing any existing
432 for (unsigned i = Pos; !CurrentComponent.empty(); ++i) {
440 } else if (Pos > Idx) {
442 // reaches the target position Pos
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Frontend/
H A DLayoutOverrideSource.cpp61 StringRef::size_type Pos; local
62 if ((Pos = LineStr.find("struct ")) != StringRef::npos)
63 LineStr = LineStr.substr(Pos + strlen("struct "));
64 else if ((Pos = LineStr.find("class ")) != StringRef::npos)
65 LineStr = LineStr.substr(Pos + strlen("class "));
66 else if ((Pos = LineStr.find("union ")) != StringRef::npos)
67 LineStr = LineStr.substr(Pos + strlen("union "));
78 StringRef::size_type Pos = LineStr.find(" Size:"); local
79 if (Pos != StringRef::npos) {
81 LineStr = LineStr.substr(Pos
[all...]
H A DTextDiagnosticBuffer.cpp48 size_t Pos = Str.find('%'); local
49 if (Pos == StringRef::npos)
54 Buf.append(Str.data(), Str.data() + Pos);
55 for (size_t I = Pos, E = Str.size(); I != E; ++I) {
H A DVerifyDiagnosticConsumer.cpp286 Preprocessor *PP, SourceLocation Pos,
313 Diags.Report(Pos, diag::err_verify_invalid_no_diags)
323 Diags.Report(Pos, diag::err_verify_invalid_no_diags)
348 ExpectedLoc = Pos;
357 unsigned ExpectedLine = SM.getSpellingLineNumber(Pos, &Invalid);
361 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1);
366 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1);
374 const FileEntry *FE = PP->LookupFile(Pos, Filename, false, NULL, CurDir,
377 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
383 SM.createFileID(FE, Pos, SrcMg
285 ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM, Preprocessor *PP, SourceLocation Pos, VerifyDiagnosticConsumer::DirectiveStatus &Status) argument
[all...]
/freebsd-9.3-release/contrib/llvm/include/llvm/ADT/
H A DMapVector.h89 typename MapType::const_iterator Pos = Map.find(Key); local
90 return Pos == Map.end()? ValueT() : Vector[Pos->second].second;
106 typename MapType::const_iterator Pos = Map.find(Key); local
107 return Pos == Map.end()? 0 : 1;
111 typename MapType::const_iterator Pos = Map.find(Key); local
112 return Pos == Map.end()? Vector.end() :
113 (Vector.begin() + Pos->second);
117 typename MapType::const_iterator Pos = Map.find(Key); local
118 return Pos
124 typename MapType::iterator Pos = Map.find(Vector.back().first); local
[all...]
/freebsd-9.3-release/contrib/llvm/include/llvm/Support/
H A DStreamableMemoryObject.h146 // Fetch enough bytes such that Pos can be read or EOF is reached
147 // (i.e. BytesRead > Pos). Return true if Pos can be read.
151 bool fetchToPos(size_t Pos) const {
152 if (EOFReached) return Pos < ObjectSize;
153 while (Pos >= BytesRead) {
159 if (ObjectSize && BytesRead < Pos)
161 if (BytesRead <= Pos) { // reached EOF/ran out of bytes
/freebsd-9.3-release/contrib/llvm/lib/Target/Mips/
H A DMipsLongBranch.cpp250 MachineBasicBlock::iterator Pos; local
291 Pos = LongBrMBB->begin();
293 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP)
295 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA)
298 MIBundleBuilder(*LongBrMBB, Pos)
302 Pos = BalTgtMBB->begin();
304 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::AT)
306 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT)
308 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA)
311 MIBundleBuilder(*BalTgtMBB, Pos)
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/AST/
H A DCommentParser.cpp51 Position Pos; member in class:clang::comments::TextTokenRetokenizer
54 return Pos.CurToken >= Toks.size();
60 const Token &Tok = Toks[Pos.CurToken];
62 Pos.BufferStart = Tok.getText().begin();
63 Pos.BufferEnd = Tok.getText().end();
64 Pos.BufferPtr = Pos.BufferStart;
65 Pos.BufferStartLoc = Tok.getLocation();
69 const unsigned CharNo = Pos.BufferPtr - Pos
[all...]
H A DCXXInheritance.cpp658 Pos = Overriding.begin(), PosEnd = Overriding.end();
659 Pos != PosEnd;
661 if (!Pos->InVirtualSubobject) {
662 ++Pos;
676 if (Pos == OP)
680 const_cast<CXXRecordDecl *>(Pos->InVirtualSubobject)))
687 Pos = Overriding.erase(Pos);
690 ++Pos;
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.cpp31 size_t Pos; member in class:__anon2354::UnwindOpcodeStreamer
34 UnwindOpcodeStreamer(SmallVectorImpl<uint8_t> &V) : Vec(V), Pos(3) {
39 Vec[Pos] = elem;
40 Pos = (((Pos ^ 0x3u) + 1) ^ 0x3u);
59 while (Pos < Vec.size())
/freebsd-9.3-release/contrib/llvm/include/llvm/CodeGen/
H A DStackMaps.h51 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) {
57 return MI->getOperand(getMetaIdx(Pos));
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DIdentifierResolver.h55 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { argument
56 Decls.insert(Pos, D);
168 void InsertDeclAfter(iterator Pos, NamedDecl *D);
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp181 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); local
412 if (Pos != std::string::npos) {
413 Asm.replace(Pos, SearchStr.size(),
713 Instruction *Pos; local
715 Pos
754 getArgTLS(unsigned Idx, Instruction *Pos) argument
801 getShadowAddress(Value *Addr, Instruction *Pos) argument
813 combineShadows(Value *V1, Value *V2, Instruction *Pos) argument
867 loadShadow(Value *Addr, uint64_t Size, uint64_t Align, Instruction *Pos) argument
991 storeShadow(Value *Addr, uint64_t Size, uint64_t Align, Value *Shadow, Instruction *Pos) argument
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Target/R600/
H A DR600OptimizeVectorRegisters.cpp180 MachineBasicBlock::iterator Pos = RSI->Instr; local
181 MachineBasicBlock &MBB = *Pos->getParent();
182 DebugLoc DL = Pos->getDebugLoc();
194 MachineInstr *Tmp = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::INSERT_SUBREG),
211 Pos = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::COPY), Reg)
213 DEBUG(dbgs() << " ->"; Pos->dump(););
225 RSI->Instr = Pos;
229 return Pos;
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Lex/
H A DPreprocessingRecord.cpp93 int Pos = PPEI.Position; local
94 if (Pos < 0) {
95 if (unsigned(-Pos-1) >= LoadedPreprocessedEntities.size()) {
100 unsigned LoadedIndex = LoadedPreprocessedEntities.size()+Pos;
118 if (unsigned(Pos) >= PreprocessedEntities.size()) {
122 return isPreprocessedEntityIfInFileID(PreprocessedEntities[Pos],
361 llvm::DenseMap<const MacroInfo *, MacroDefinition *>::iterator Pos
363 if (Pos == MacroDefinitions.end())
366 return Pos->second;
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/
H A DThumb2ITBlockPass.cpp195 unsigned Mask = 0, Pos = 3; local
202 for (; MBBI != E && Pos &&
213 Mask |= (NCC & 1) << Pos;
230 --Pos;
235 Mask |= (1 << Pos);
/freebsd-9.3-release/contrib/llvm/tools/llvm-ar/
H A Dllvm-ar.cpp437 int Pos = -1) {
439 if (Pos == -1)
442 Members[Pos] = NI;
466 std::vector<std::string>::iterator &Pos) {
476 Pos = MI;
522 int Pos = Ret.size(); local
528 InsertPos = Pos;
530 InsertPos = Pos + 1;
569 int Pos = InsertPos; local
572 I != E; ++I, ++Pos) {
464 computeInsertAction(ArchiveOperation Operation, object::Archive::child_iterator I, StringRef Name, std::vector<std::string>::iterator &Pos) argument
647 int Pos = Out.tell(); local
727 unsigned Pos = Out.tell(); local
767 unsigned Pos = Out.tell(); local
[all...]
/freebsd-9.3-release/contrib/llvm/lib/MC/
H A DSubtargetFeature.cpp73 size_t Pos = 0;
76 size_t Comma = S.find(',', Pos);
80 V.push_back(S.substr(Pos));
84 V.push_back(S.substr(Pos, Comma - Pos));
86 Pos = Comma + 1;

Completed in 164 milliseconds

12345