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

123456

/external/llvm/lib/CodeGen/
H A DAllocationOrder.h31 int Pos; member in class:llvm::AllocationOrder
49 if (Pos < 0)
50 return Hints.end()[Pos++];
53 while (Pos < int(Limit)) {
54 unsigned Reg = Order[Pos++];
66 if (Pos < 0)
67 return Hints.end()[Pos++];
68 if (Pos < int(Limit))
69 return Order[Pos++];
74 void rewind() { Pos
[all...]
H A DAllocationOrder.cpp33 : Pos(0) {
/external/llvm/lib/Support/
H A DLineIterator.cpp54 const char *Pos = CurrentLine.end(); local
55 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0');
57 if (skipIfAtLineEnd(Pos))
59 if (!SkipBlanks && isAtLineEnd(Pos)) {
63 while (skipIfAtLineEnd(Pos))
68 if (isAtLineEnd(Pos) && !SkipBlanks)
70 if (*Pos == CommentMarker)
72 ++Pos;
[all...]
H A DFileUtilities.cpp49 static const char *BackupNumber(const char *Pos, const char *FirstChar) { argument
51 if (!isNumberChar(*Pos)) return Pos;
55 while (Pos > FirstChar && isNumberChar(Pos[-1])) {
57 if (Pos[-1] == '.') {
63 --Pos;
64 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[
73 EndOfNumber(const char *Pos) argument
[all...]
H A DFoldingSet.cpp93 unsigned Pos = 0; local
99 Pos = (Units + 1) * 4;
107 for (Pos += 4; Pos <= Size; Pos += 4) {
108 unsigned V = ((unsigned char)String[Pos - 4] << 24) |
109 ((unsigned char)String[Pos - 3] << 16) |
110 ((unsigned char)String[Pos - 2] << 8) |
111 (unsigned char)String[Pos - 1];
115 for (Pos
[all...]
/external/llvm/lib/Fuzzer/
H A DFuzzerCrossOver.cpp24 size_t *Pos = &PosA; local
28 if (*Pos < V->size()) {
29 size_t SizeLeftV = V->size() - *Pos;
32 U->insert(U->end(), V->begin() + *Pos, V->begin() + *Pos + ExtraSize);
33 (*Pos) += ExtraSize;
37 if (Pos == &PosA) {
38 Pos = &PosB;
41 Pos = &PosA;
/external/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());
/external/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...]
/external/clang/lib/Tooling/
H A DArgumentsAdjusters.cpp57 ArgumentInsertPosition Pos) {
58 return [Extra, Pos](const CommandLineArguments &Args) {
62 if (Pos == ArgumentInsertPosition::END) {
75 ArgumentInsertPosition Pos) {
76 return getInsertArgumentAdjuster(CommandLineArguments(1, Extra), Pos);
56 getInsertArgumentAdjuster(const CommandLineArguments &Extra, ArgumentInsertPosition Pos) argument
/external/clang/unittests/Rewrite/
H A DRewriteBufferTest.cpp36 size_t Pos = Input.find(RemoveStr); local
37 Buf.RemoveText(Pos, RemoveStr.size());
40 Pos = Input.find(TagStr);
41 tagRange(Pos, TagStr.size(), "outer", Buf);
42 tagRange(Pos, TagStr.size(), "inner", Buf);
/external/clang/include/clang/Tooling/
H A DArgumentsAdjusters.h50 ArgumentInsertPosition Pos);
56 ArgumentInsertPosition Pos = ArgumentInsertPosition::END);
/external/llvm/include/llvm/LineEditor/
H A DLineEditor.h102 /// \param Pos The zero-based cursor position in the StringRef
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 {
133 return Value(Buffer, Pos);
142 size_t Pos) const override {
143 return Value(Buffer, Pos);
/external/llvm/include/llvm/Support/
H A DStreamingMemoryObject.h61 // Fetch enough bytes such that Pos can be read or EOF is reached
62 // (i.e. BytesRead > Pos). Return true if Pos can be read.
66 bool fetchToPos(size_t Pos) const {
68 return Pos < ObjectSize;
69 while (Pos >= BytesRead) {
80 return Pos < BytesRead;
/external/llvm/include/llvm/ADT/
H A DMapVector.h87 typename MapType::const_iterator Pos = Map.find(Key); local
88 return Pos == Map.end()? ValueT() : Vector[Pos->second].second;
104 typename MapType::const_iterator Pos = Map.find(Key); local
105 return Pos == Map.end()? 0 : 1;
109 typename MapType::const_iterator Pos = Map.find(Key); local
110 return Pos == Map.end()? Vector.end() :
111 (Vector.begin() + Pos->second);
115 typename MapType::const_iterator Pos = Map.find(Key); local
116 return Pos
122 typename MapType::iterator Pos = Map.find(Vector.back().first); local
[all...]
/external/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugAbbrev.cpp108 const auto Pos = AbbrDeclSets.find(CUAbbrOffset); local
109 if (Pos != End) {
110 PrevAbbrOffsetPos = Pos;
111 return &(Pos->second);
/external/icu/icu4c/source/common/
H A Druleiter.h133 struct Pos : public UMemory { struct in class:RuleCharacterIterator
146 * RuleCharacterIterator::Pos pos;
158 void getPos(Pos& p) const;
165 void setPos(const Pos& p);
/external/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...]
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.cpp30 size_t Pos; member in class:__anon10705::UnwindOpcodeStreamer
33 UnwindOpcodeStreamer(SmallVectorImpl<uint8_t> &V) : Vec(V), Pos(3) {
38 Vec[Pos] = elem;
39 Pos = (((Pos ^ 0x3u) + 1) ^ 0x3u);
59 while (Pos < Vec.size())
/external/llvm/lib/Target/Mips/
H A DMipsLongBranch.cpp253 MachineBasicBlock::iterator Pos; local
294 Pos = LongBrMBB->begin();
296 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP)
298 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA)
317 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT)
319 MIBundleBuilder(*LongBrMBB, Pos)
326 Pos = BalTgtMBB->begin();
328 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT)
330 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA)
334 MIBundleBuilder(*BalTgtMBB, Pos)
[all...]
/external/llvm/include/llvm/CodeGen/
H A DStackMaps.h55 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) {
61 return MI->getOperand(getMetaIdx(Pos));
/external/lzma/CS/7zip/Compress/LzmaAlone/
H A DLzmaBench.cs64 UInt32 Pos; field in class:SevenZip.LzmaBench.CBenchRandomGenerator
75 Pos = 0;
96 while (Pos < BufferSize)
98 if (GetRndBit() == 0 || Pos < 1)
99 Buffer[Pos++] = (Byte)RG.GetRnd(8);
109 while (Rep0 >= Pos);
113 for (UInt32 i = 0; i < len && Pos < BufferSize; i++, Pos++)
114 Buffer[Pos] = Buffer[Pos
[all...]
/external/lzma/Java/SevenZip/
H A DLzmaBench.java59 int Pos; field in class:LzmaBench.CBenchRandomGenerator
69 Pos = 0;
90 while (Pos < BufferSize)
92 if (GetRndBit() == 0 || Pos < 1)
93 Buffer[Pos++] = (byte)(RG.GetRnd(8));
103 while (Rep0 >= Pos);
107 for (int i = 0; i < len && Pos < BufferSize; i++, Pos++)
108 Buffer[Pos] = Buffer[Pos
[all...]
/external/llvm/unittests/LineEditor/
H A DLineEditor.cpp50 size_t Pos) const {
52 EXPECT_EQ(0u, Pos);
/external/clang/lib/Lex/
H A DPreprocessingRecord.cpp91 int Pos = std::distance(iterator(this, 0), PPEI); local
92 if (Pos < 0) {
93 if (unsigned(-Pos-1) >= LoadedPreprocessedEntities.size()) {
98 unsigned LoadedIndex = LoadedPreprocessedEntities.size()+Pos;
116 if (unsigned(Pos) >= PreprocessedEntities.size()) {
120 return isPreprocessedEntityIfInFileID(PreprocessedEntities[Pos],
359 llvm::DenseMap<const MacroInfo *, MacroDefinition *>::iterator Pos
361 if (Pos == MacroDefinitions.end())
364 return Pos->second;
/external/llvm/lib/Target/R600/
H A DR600OptimizeVectorRegisters.cpp182 MachineBasicBlock::iterator Pos = RSI->Instr; local
183 MachineBasicBlock &MBB = *Pos->getParent();
184 DebugLoc DL = Pos->getDebugLoc();
196 MachineInstr *Tmp = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::INSERT_SUBREG),
213 Pos = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::COPY), Reg)
215 DEBUG(dbgs() << " ->"; Pos->dump(););
227 RSI->Instr = Pos;
231 return Pos;

Completed in 739 milliseconds

123456