Home
last modified time | relevance | path

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

12345678910>>...12

/external/abi-compliance-checker/modules/Internals/
DCallConv.pm178 my $Pos = 0;
183 foreach my $Pos (0 .. $Max)
189 $Type{"Memb"}{$Pos}{"algn"} = getAlignment_Model($BaseType{"Tid"}, $TInfo, $Arch);
190 $Type{"Memb"}{$Pos}{"type"} = $BaseType{"Tid"};
191 $Type{"Memb"}{$Pos}{"name"} = "[$Pos]";
196 foreach my $Pos (keys(%{$Type{"Memb"}}))
198 $Offsets{$Pos} = $Pos;
199 $Group{0}{$Pos} = 1;
204 foreach my $Pos (keys(%{$Type{"Memb"}}))
206 my $Offset = getOffset($Pos, \%Type, $TInfo, $Arch, $Word)/$BYTE;
[all …]
DXmlDump.pm100 foreach my $Pos (sort { $a<=>$b } @Positions)
103 $ABI_DUMP .= addTag("name", $TInfo{"Memb"}{$Pos}{"name"});
104 if(my $MTid = $TInfo{"Memb"}{$Pos}{"type"}) {
107 if(my $Access = $TInfo{"Memb"}{$Pos}{"access"}) {
110 my $Val = $TInfo{"Memb"}{$Pos}{"value"};
114 if(my $Align = $TInfo{"Memb"}{$Pos}{"algn"}) {
117 if(my $Bitfield = $TInfo{"Memb"}{$Pos}{"bitfield"}) {
120 if($TInfo{"Memb"}{$Pos}{"mutable"}) {
123 $ABI_DUMP .= addTag("pos", $Pos);
131 foreach my $Pos (sort { $a<=>$b } @Positions)
[all …]
/external/llvm/include/llvm/Transforms/IPO/
DWholeProgramDevirt.h42 std::pair<uint8_t *, uint8_t *> getPtrToData(uint64_t Pos, uint8_t Size) { in getPtrToData()
43 if (Bytes.size() < Pos + Size) { in getPtrToData()
44 Bytes.resize(Pos + Size); in getPtrToData()
45 BytesUsed.resize(Pos + Size); in getPtrToData()
47 return std::make_pair(Bytes.data() + Pos, BytesUsed.data() + Pos); in getPtrToData()
52 void setLE(uint64_t Pos, uint64_t Val, uint8_t Size) { in setLE()
53 assert(Pos % 8 == 0); in setLE()
54 auto DataUsed = getPtrToData(Pos / 8, Size); in setLE()
64 void setBE(uint64_t Pos, uint64_t Val, uint8_t Size) { in setBE()
65 assert(Pos % 8 == 0); in setBE()
[all …]
/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/llvm/lib/Target/WebAssembly/Disassembler/
DWebAssemblyDisassembler.cpp67 uint64_t Pos = 0; in getInstruction() local
70 if (Pos + sizeof(uint64_t) > Bytes.size()) in getInstruction()
72 uint64_t Opcode = support::endian::read64le(Bytes.data() + Pos); in getInstruction()
73 Pos += sizeof(uint64_t); in getInstruction()
85 if (Pos + sizeof(uint64_t) > Bytes.size()) in getInstruction()
87 NumExtraOperands = support::endian::read64le(Bytes.data() + Pos); in getInstruction()
88 Pos += sizeof(uint64_t); in getInstruction()
98 if (Pos + sizeof(uint64_t) > Bytes.size()) in getInstruction()
100 uint64_t Imm = support::endian::read64le(Bytes.data() + Pos); in getInstruction()
101 Pos += sizeof(uint64_t); in getInstruction()
[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 …]
/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/llvm/lib/Fuzzer/
DFuzzerUtil.cpp192 for (size_t Pos = L; Pos <= R; Pos++) { in ParseOneDictionaryEntry() local
193 uint8_t V = (uint8_t)Str[Pos]; in ParseOneDictionaryEntry()
197 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { in ParseOneDictionaryEntry()
198 U->push_back(Str[Pos + 1]); in ParseOneDictionaryEntry()
199 Pos++; in ParseOneDictionaryEntry()
203 if (Pos + 3 <= R && Str[Pos + 1] == 'x' in ParseOneDictionaryEntry()
204 && isxdigit(Str[Pos + 2]) && isxdigit(Str[Pos + 3])) { in ParseOneDictionaryEntry()
206 Hex[2] = Str[Pos + 2]; in ParseOneDictionaryEntry()
207 Hex[3] = Str[Pos + 3]; in ParseOneDictionaryEntry()
209 Pos += 3; in ParseOneDictionaryEntry()
[all …]
DFuzzerTraceState.cpp167 uint32_t Pos; member
236 MD.AddWordToAutoDictionary(M.W, M.Pos); in StopTraceRecording()
240 void AddMutation(uint32_t Pos, uint32_t Size, const uint8_t *Data) { in AddMutation() argument
243 M.Pos = Pos; in AddMutation()
247 void AddMutation(uint32_t Pos, uint32_t Size, uint64_t Data) { in AddMutation() argument
249 AddMutation(Pos, Size, reinterpret_cast<uint8_t*>(&Data)); in AddMutation()
321 for (size_t Pos = LR.Beg; Pos + CmpSize <= LR.End; Pos++) { in DFSanCmpCallback() local
322 AddMutation(Pos, CmpSize, Data); in DFSanCmpCallback()
323 AddMutation(Pos, CmpSize, Data + 1); in DFSanCmpCallback()
324 AddMutation(Pos, CmpSize, Data - 1); in DFSanCmpCallback()
[all …]
/external/flatbuffers/go/
Dtable.go8 Pos UOffsetT // Always < 1<<31. member
15 vtable := UOffsetT(SOffsetT(t.Pos) - t.GetSOffsetT(t.Pos))
44 off += t.Pos
52 off += t.Pos
62 off += t.Pos
63 t2.Pos = off + t.GetUOffsetT(off)
151 return t.GetBool(t.Pos + UOffsetT(off))
163 return t.GetByte(t.Pos + UOffsetT(off))
175 return t.GetInt8(t.Pos + UOffsetT(off))
187 return t.GetUint8(t.Pos + UOffsetT(off))
[all …]
/external/flatbuffers/tests/MyGame/Example/
DVec3.go15 rcv._tab.Pos = i
23 return rcv._tab.GetFloat32(rcv._tab.Pos + flatbuffers.UOffsetT(0))
26 return rcv._tab.MutateFloat32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n)
30 return rcv._tab.GetFloat32(rcv._tab.Pos + flatbuffers.UOffsetT(4))
33 return rcv._tab.MutateFloat32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n)
37 return rcv._tab.GetFloat32(rcv._tab.Pos + flatbuffers.UOffsetT(8))
40 return rcv._tab.MutateFloat32(rcv._tab.Pos+flatbuffers.UOffsetT(8), n)
44 return rcv._tab.GetFloat64(rcv._tab.Pos + flatbuffers.UOffsetT(16))
47 return rcv._tab.MutateFloat64(rcv._tab.Pos+flatbuffers.UOffsetT(16), n)
51 return rcv._tab.GetInt8(rcv._tab.Pos + flatbuffers.UOffsetT(24))
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DFileUtilities.cpp50 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 …]
DFoldingSet.cpp103 unsigned Pos = 0; in AddString() local
109 Pos = (Units + 1) * 4; in AddString()
115 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString()
116 unsigned V = ((unsigned char)String[Pos - 4] << 24) | in AddString()
117 ((unsigned char)String[Pos - 3] << 16) | in AddString()
118 ((unsigned char)String[Pos - 2] << 8) | in AddString()
119 (unsigned char)String[Pos - 1]; in AddString()
124 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString()
125 unsigned V = ((unsigned char)String[Pos - 1] << 24) | in AddString()
126 ((unsigned char)String[Pos - 2] << 16) | in AddString()
[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/MC/
DStringTableBuilder.cpp40 static int charTailAt(StringPair *P, size_t Pos) { in charTailAt() argument
42 if (Pos >= S.size()) in charTailAt()
44 return (unsigned char)S[S.size() - Pos - 1]; in charTailAt()
49 static void multikey_qsort(StringPair **Begin, StringPair **End, int Pos) { in multikey_qsort() argument
56 int Pivot = charTailAt(*Begin, Pos); in multikey_qsort()
60 int C = charTailAt(*R, Pos); in multikey_qsort()
69 multikey_qsort(Begin, P, Pos); in multikey_qsort()
70 multikey_qsort(Q, End, Pos); in multikey_qsort()
75 ++Pos; in multikey_qsort()
129 size_t Pos = StringTable.size() - S.size() - (K != RAW); in finalizeStringTable() local
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
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/llvm/lib/Target/Mips/
DMipsLongBranch.cpp256 MachineBasicBlock::iterator Pos; in expandToLongBranch() local
296 Pos = LongBrMBB->begin(); in expandToLongBranch()
298 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch()
300 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) in expandToLongBranch()
319 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) in expandToLongBranch()
321 MIBundleBuilder(*LongBrMBB, Pos) in expandToLongBranch()
328 Pos = BalTgtMBB->begin(); in expandToLongBranch()
330 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) in expandToLongBranch()
332 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) in expandToLongBranch()
337 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DAllocationOrder.h28 const unsigned *Pos; variable
50 if (!Pos) { in next()
51 Pos = Begin; in next()
56 while (Pos != End) { in next()
57 unsigned Reg = *Pos++; in next()
65 void rewind() { Pos = 0; } in rewind()
/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/include/llvm/LineEditor/
DLineEditor.h104 CompletionAction getCompletionAction(StringRef Buffer, size_t Pos) const;
119 virtual CompletionAction complete(StringRef Buffer, size_t Pos) const = 0;
124 CompletionAction complete(StringRef Buffer, size_t Pos) const override;
127 size_t Pos) const = 0;
133 CompletionAction complete(StringRef Buffer, size_t Pos) const override { in complete()
134 return Value(Buffer, Pos); in complete()
143 size_t Pos) const override { in getCompletions()
144 return Value(Buffer, Pos); in getCompletions()
/external/swiftshader/third_party/subzero/src/
DIceBitVector.h194 template <SizeT Pos>
195 typename std::enable_if<Pos == BitsElements, int>::type find_first() const { in find_first()
199 template <SizeT Pos>
201 Pos<BitsElements, int>::type find_first() const {
202 if (Bits[Pos] != 0) {
203 return NumBitsPerPos * Pos + llvm::countTrailingZeros(Bits[Pos]);
205 return find_first<Pos + 1>();
208 template <SizeT Pos>
209 typename std::enable_if<Pos == BitsElements, int>::type
214 template <SizeT Pos>
[all …]
/external/flatbuffers/python/flatbuffers/
Dtable.py30 self.Pos = pos
37 vtable = self.Pos - self.Get(N.SOffsetTFlags, self.Pos)
61 off += self.Pos
71 off += self.Pos
83 off += self.Pos
84 t2.Pos = off + self.Get(N.UOffsetTFlags, off)
102 return self.Get(validator_flags, self.Pos + off)

12345678910>>...12