Home
last modified time | relevance | path

Searched refs:Cur (Results 1 – 25 of 52) sorted by relevance

123

/external/swiftshader/third_party/LLVM/include/llvm/Support/
DRegistry.h69 for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next) in Announce() local
70 Cur->registered(E); in Announce()
104 const node *Cur; variable
107 explicit iterator(const node *N) : Cur(N) {} in iterator()
109 bool operator==(const iterator &That) const { return Cur == That.Cur; }
110 bool operator!=(const iterator &That) const { return Cur != That.Cur; }
111 iterator &operator++() { Cur = Cur->Next; return *this; }
112 const entry &operator*() const { return Cur->Val; }
113 const entry *operator->() const { return &Cur->Val; }
Dcircular_raw_ostream.h60 char *Cur; variable
77 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
79 TheStream->write(BufferArray, Cur - BufferArray); in flushBuffer()
80 Cur = BufferArray; in flushBuffer()
120 Cur = BufferArray; in raw_ostream()
130 Cur = BufferArray; in circular_raw_ostream()
/external/llvm/tools/llvm-c-test/
Decho.cpp706 LLVMValueRef Cur = First; in CloneBB() local
709 CloneInstruction(Cur, Builder); in CloneBB()
710 Next = LLVMGetNextInstruction(Cur); in CloneBB()
712 if (Cur != Last) in CloneBB()
718 if (Prev != Cur) in CloneBB()
721 Cur = Next; in CloneBB()
736 LLVMBasicBlockRef Cur = First; in CloneBBs() local
739 CloneBB(Cur); in CloneBBs()
741 Next = LLVMGetNextBasicBlock(Cur); in CloneBBs()
743 if (Cur != Last) in CloneBBs()
[all …]
/external/lzma/CPP/7zip/Common/
DCWrappers.h52 const Byte *Cur; member
67 Lim = Cur = Buf; in Init()
72 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed()
76 if (Cur != Lim) in ReadByte()
77 return *Cur++; in ReadByte()
85 Byte *Cur; member
99 Cur = Buf; in Init()
104 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed()
108 *Cur++ = b; in WriteByte()
109 if (Cur == Lim) in WriteByte()
DCWrappers.cpp149 Lim = Cur = Buf = (Byte *)::MidAlloc((size_t)size); in Alloc()
160 Processed += (Cur - Buf); in ReadByteFromNewBlock()
162 Cur = Buf; in ReadByteFromNewBlock()
165 return *Cur++; in ReadByteFromNewBlock()
174 if (p->Cur != p->Lim) in Wrap_ReadByte()
175 return *p->Cur++; in Wrap_ReadByte()
208 size_t size = (Cur - Buf); in Flush()
212 Cur = Buf; in Flush()
220 Byte *dest = p->Cur; in Wrap_WriteByte()
222 p->Cur = ++dest; in Wrap_WriteByte()
/external/clang/lib/AST/
DTypeLoc.cpp171 TypeLoc Cur = *this; in getBeginLoc() local
172 TypeLoc LeftMost = Cur; in getBeginLoc()
174 switch (Cur.getTypeLocClass()) { in getBeginLoc()
176 LeftMost = Cur; in getBeginLoc()
179 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr() in getBeginLoc()
181 LeftMost = Cur; in getBeginLoc()
192 Cur = Cur.getNextTypeLoc(); in getBeginLoc()
195 if (Cur.getLocalSourceRange().getBegin().isValid()) in getBeginLoc()
196 LeftMost = Cur; in getBeginLoc()
197 Cur = Cur.getNextTypeLoc(); in getBeginLoc()
[all …]
/external/llvm/include/llvm/Support/
DRegistry.h83 const node *Cur; variable
86 explicit iterator(const node *N) : Cur(N) {} in iterator()
88 bool operator==(const iterator &That) const { return Cur == That.Cur; }
89 bool operator!=(const iterator &That) const { return Cur != That.Cur; }
90 iterator &operator++() { Cur = Cur->Next; return *this; }
91 const entry &operator*() const { return Cur->Val; }
92 const entry *operator->() const { return &Cur->Val; }
Dcircular_raw_ostream.h59 char *Cur; variable
76 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
78 TheStream->write(BufferArray, Cur - BufferArray); in flushBuffer()
79 Cur = BufferArray; in flushBuffer()
115 Cur = BufferArray; in raw_ostream()
/external/llvm/lib/Support/
Dcircular_raw_ostream.cpp27 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
28 memcpy(Cur, Ptr, Bytes); in write_impl()
30 Cur += Bytes; in write_impl()
31 if (Cur == BufferArray + BufferSize) { in write_impl()
33 Cur = BufferArray; in write_impl()
/external/swiftshader/third_party/LLVM/lib/Support/
Dcircular_raw_ostream.cpp27 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
28 memcpy(Cur, Ptr, Bytes); in write_impl()
30 Cur += Bytes; in write_impl()
31 if (Cur == BufferArray + BufferSize) { in write_impl()
33 Cur = BufferArray; in write_impl()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp238 Instruction *Cur = Worklist.back(); in AddReductionVar() local
244 if (Cur->use_empty()) in AddReductionVar()
247 bool IsAPhi = isa<PHINode>(Cur); in AddReductionVar()
250 if (Cur != Phi && IsAPhi && Cur->getParent() == Phi->getParent()) in AddReductionVar()
255 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
256 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) && in AddReductionVar()
257 !VisitedInsts.count(dyn_cast<Instruction>(Cur->getOperand(0)))) in AddReductionVar()
263 if (Cur != Start) { in AddReductionVar()
264 ReduxDesc = isRecurrenceInstr(Cur, Kind, ReduxDesc, HasFunNoNaNAttr); in AddReductionVar()
271 hasMultipleUsesOf(Cur, VisitedInsts)) in AddReductionVar()
[all …]
/external/swiftshader/third_party/LLVM/utils/TableGen/
DCodeGenInstruction.cpp356 FlattenAsmStringVariants(StringRef Cur, unsigned Variant) { in FlattenAsmStringVariants() argument
362 for (size_t e = Cur.size(); VariantsStart != e; ++VariantsStart) in FlattenAsmStringVariants()
363 if (Cur[VariantsStart] == '{' && in FlattenAsmStringVariants()
364 (VariantsStart == 0 || (Cur[VariantsStart-1] != '$' && in FlattenAsmStringVariants()
365 Cur[VariantsStart-1] != '\\'))) in FlattenAsmStringVariants()
369 Res += Cur.slice(0, VariantsStart); in FlattenAsmStringVariants()
370 if (VariantsStart == Cur.size()) in FlattenAsmStringVariants()
378 for (size_t e = Cur.size(); VariantsEnd != e; ++VariantsEnd) { in FlattenAsmStringVariants()
379 if (Cur[VariantsEnd] == '}' && Cur[VariantsEnd-1] != '\\') { in FlattenAsmStringVariants()
382 } else if (Cur[VariantsEnd] == '{') in FlattenAsmStringVariants()
[all …]
DDAGISelMatcher.cpp40 Matcher *Cur = this; in unlinkNode() local
41 for (; Cur && Cur->getNext() != Other; Cur = Cur->getNext()) in unlinkNode()
44 if (Cur == 0) return 0; in unlinkNode()
45 Cur->takeNext(); in unlinkNode()
46 Cur->setNext(Other->takeNext()); in unlinkNode()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DScheduleDAG.cpp228 SUnit *Cur = WorkList.back(); in ComputeDepth() local
232 for (SUnit::const_pred_iterator I = Cur->Preds.begin(), in ComputeDepth()
233 E = Cur->Preds.end(); I != E; ++I) { in ComputeDepth()
246 if (MaxPredDepth != Cur->Depth) { in ComputeDepth()
247 Cur->setDepthDirty(); in ComputeDepth()
248 Cur->Depth = MaxPredDepth; in ComputeDepth()
250 Cur->isDepthCurrent = true; in ComputeDepth()
261 SUnit *Cur = WorkList.back(); in ComputeHeight() local
265 for (SUnit::const_succ_iterator I = Cur->Succs.begin(), in ComputeHeight()
266 E = Cur->Succs.end(); I != E; ++I) { in ComputeHeight()
[all …]
/external/llvm/lib/CodeGen/
DScheduleDAG.cpp238 SUnit *Cur = WorkList.back(); in ComputeDepth() local
242 for (SUnit::const_pred_iterator I = Cur->Preds.begin(), in ComputeDepth()
243 E = Cur->Preds.end(); I != E; ++I) { in ComputeDepth()
256 if (MaxPredDepth != Cur->Depth) { in ComputeDepth()
257 Cur->setDepthDirty(); in ComputeDepth()
258 Cur->Depth = MaxPredDepth; in ComputeDepth()
260 Cur->isDepthCurrent = true; in ComputeDepth()
271 SUnit *Cur = WorkList.back(); in ComputeHeight() local
275 for (SUnit::const_succ_iterator I = Cur->Succs.begin(), in ComputeHeight()
276 E = Cur->Succs.end(); I != E; ++I) { in ComputeHeight()
[all …]
/external/llvm/lib/Fuzzer/
DFuzzerTraceState.cpp392 for (const uint8_t *Cur = Beg; Cur < End; Cur++) { in TryToAddDesiredData() local
393 Cur = (uint8_t *)memmem(Cur, End - Cur, &PresentData, DataSize); in TryToAddDesiredData()
394 if (!Cur) in TryToAddDesiredData()
396 size_t Pos = Cur - Beg; in TryToAddDesiredData()
415 for (const uint8_t *Cur = Beg; Cur < End; Cur++) { in TryToAddDesiredData() local
416 Cur = (uint8_t *)memmem(Cur, End - Cur, PresentData, DataSize); in TryToAddDesiredData()
417 if (!Cur) in TryToAddDesiredData()
419 size_t Pos = Cur - Beg; in TryToAddDesiredData()
/external/llvm/utils/TableGen/
DCodeGenInstruction.cpp387 FlattenAsmStringVariants(StringRef Cur, unsigned Variant) { in FlattenAsmStringVariants() argument
393 for (size_t e = Cur.size(); VariantsStart != e; ++VariantsStart) in FlattenAsmStringVariants()
394 if (Cur[VariantsStart] == '{' && in FlattenAsmStringVariants()
395 (VariantsStart == 0 || (Cur[VariantsStart-1] != '$' && in FlattenAsmStringVariants()
396 Cur[VariantsStart-1] != '\\'))) in FlattenAsmStringVariants()
400 Res += Cur.slice(0, VariantsStart); in FlattenAsmStringVariants()
401 if (VariantsStart == Cur.size()) in FlattenAsmStringVariants()
409 for (size_t e = Cur.size(); VariantsEnd != e; ++VariantsEnd) { in FlattenAsmStringVariants()
410 if (Cur[VariantsEnd] == '}' && Cur[VariantsEnd-1] != '\\') { in FlattenAsmStringVariants()
413 } else if (Cur[VariantsEnd] == '{') in FlattenAsmStringVariants()
[all …]
DDAGISelMatcher.cpp42 Matcher *Cur = this; in unlinkNode() local
43 for (; Cur && Cur->getNext() != Other; Cur = Cur->getNext()) in unlinkNode()
46 if (!Cur) return nullptr; in unlinkNode()
47 Cur->takeNext(); in unlinkNode()
48 Cur->setNext(Other->takeNext()); in unlinkNode()
/external/llvm/lib/Analysis/
DAliasSetTracker.cpp219 iterator Cur = I++; in mergeAliasSetsForPointer() local
220 if (Cur->Forward || !Cur->aliasesPointer(Ptr, Size, AAInfo, AA)) continue; in mergeAliasSetsForPointer()
223 FoundSet = &*Cur; // Remember it. in mergeAliasSetsForPointer()
225 FoundSet->mergeSetIn(*Cur, *this); // Merge in contents. in mergeAliasSetsForPointer()
253 iterator Cur = I++; in findAliasSetForUnknownInst() local
254 if (Cur->Forward || !Cur->aliasesUnknownInst(Inst, AA)) in findAliasSetForUnknownInst()
257 FoundSet = &*Cur; // Remember it. in findAliasSetForUnknownInst()
258 else if (!Cur->Forward) // Otherwise, we must merge the sets. in findAliasSetForUnknownInst()
259 FoundSet->mergeSetIn(*Cur, *this); // Merge in contents. in findAliasSetForUnknownInst()
561 iterator Cur = I++; in deleteValue() local
[all …]
DTypeBasedAliasAnalysis.cpp234 uint64_t Cur = Node->getNumOperands() == 2 in getParent() local
238 Offset -= Cur; in getParent()
249 uint64_t Cur = mdconst::extract<ConstantInt>(Node->getOperand(Idx + 1)) in getParent() local
251 if (Cur > Offset) { in getParent()
261 uint64_t Cur = mdconst::extract<ConstantInt>(Node->getOperand(TheIdx + 1)) in getParent() local
263 Offset -= Cur; in getParent()
/external/llvm/lib/CodeGen/AsmPrinter/
DDIEHash.cpp88 const DIE *Cur = &Parent; in addParentContext() local
89 while (Cur->getParent()) { in addParentContext()
90 Parents.push_back(Cur); in addParentContext()
91 Cur = Cur->getParent(); in addParentContext()
93 assert(Cur->getTag() == dwarf::DW_TAG_compile_unit || in addParentContext()
94 Cur->getTag() == dwarf::DW_TAG_type_unit); in addParentContext()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86JITInfo.cpp442 uint8_t *Cur = Buffer; in emitGlobalValueIndirectSym() local
443 MachineCodeEmitter::emitWordLEInto(Cur, (unsigned)(intptr_t)ptr); in emitGlobalValueIndirectSym()
444 MachineCodeEmitter::emitWordLEInto(Cur, (unsigned)(((intptr_t)ptr) >> 32)); in emitGlobalValueIndirectSym()
448 uint8_t *Cur = Buffer; in emitGlobalValueIndirectSym()
449 MachineCodeEmitter::emitWordLEInto(Cur, (intptr_t)ptr); in emitGlobalValueIndirectSym()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp578 const unsigned char *Cur) { in readSummary() argument
583 reinterpret_cast<const IndexedInstrProf::Summary *>(Cur); in readSummary()
613 return Cur + SummarySize; in readSummary()
621 return Cur; in readSummary()
628 const unsigned char *Cur = Start; in readHeader() local
629 if ((const unsigned char *)DataBuffer->getBufferEnd() - Cur < 24) in readHeader()
634 auto *Header = reinterpret_cast<const IndexedInstrProf::Header *>(Cur); in readHeader()
635 Cur += sizeof(IndexedInstrProf::Header); in readHeader()
648 Cur = readSummary((IndexedInstrProf::ProfVersion)FormatVersion, Cur); in readHeader()
661 Start + HashOffset, Cur, Start, HashType, FormatVersion); in readHeader()
/external/llvm/tools/llvm-diff/
DDifferenceEngine.cpp497 DiffEntry *Cur = Paths1.data(); in runBlockDiff() local
508 Cur[I].Cost = I * LeftCost; in runBlockDiff()
510 Cur[I].Path.push_back(DC_left); in runBlockDiff()
515 Next[0] = Cur[0]; in runBlockDiff()
522 Next[Index] = Cur[Index-1]; in runBlockDiff()
526 } else if (Next[Index-1].Cost <= Cur[Index].Cost) { in runBlockDiff()
531 Next[Index] = Cur[Index]; in runBlockDiff()
537 std::swap(Cur, Next); in runBlockDiff()
544 SmallVectorImpl<char> &Path = Cur[NL].Path; in runBlockDiff()
/external/swiftshader/third_party/LLVM/tools/llvm-diff/
DDifferenceEngine.cpp497 DiffEntry *Cur = Paths1.data(); in runBlockDiff() local
508 Cur[I].Cost = I * LeftCost; in runBlockDiff()
510 Cur[I].Path.push_back(DC_left); in runBlockDiff()
515 Next[0] = Cur[0]; in runBlockDiff()
522 Next[Index] = Cur[Index-1]; in runBlockDiff()
526 } else if (Next[Index-1].Cost <= Cur[Index].Cost) { in runBlockDiff()
531 Next[Index] = Cur[Index]; in runBlockDiff()
537 std::swap(Cur, Next); in runBlockDiff()
544 SmallVectorImpl<char> &Path = Cur[NL].Path; in runBlockDiff()

123