Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/Support/
DRegistry.h71 for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next) in Announce() local
72 Cur->registered(E); in Announce()
106 const node *Cur; variable
109 explicit iterator(const node *N) : Cur(N) {} in iterator()
111 bool operator==(const iterator &That) const { return Cur == That.Cur; }
112 bool operator!=(const iterator &That) const { return Cur != That.Cur; }
113 iterator &operator++() { Cur = Cur->Next; return *this; }
114 const entry &operator*() const { return Cur->Val; }
115 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/lzma/CPP/7zip/Common/
DCWrappers.h47 const Byte *Cur; member
62 Lim = Cur = Buf; in Init()
67 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed()
71 if (Cur != Lim) in ReadByte()
72 return *Cur++; in ReadByte()
80 Byte *Cur; member
94 Cur = Buf; in Init()
99 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed()
103 *Cur++ = b; in WriteByte()
104 if (Cur == Lim) in WriteByte()
DCWrappers.cpp145 Lim = Cur = Buf = (Byte *)::MidAlloc((size_t)size); in Alloc()
156 Processed += (Cur - Buf); in ReadByteFromNewBlock()
158 Cur = Buf; in ReadByteFromNewBlock()
161 return *Cur++; in ReadByteFromNewBlock()
170 if (p->Cur != p->Lim) in Wrap_ReadByte()
171 return *p->Cur++; in Wrap_ReadByte()
204 size_t size = (Cur - Buf); in Flush()
208 Cur = Buf; in Flush()
216 Byte *dest = p->Cur; in Wrap_WriteByte()
218 p->Cur = ++dest; in Wrap_WriteByte()
/external/clang/lib/AST/
DTypeLoc.cpp129 TypeLoc Cur = *this; in getBeginLoc() local
130 TypeLoc LeftMost = Cur; in getBeginLoc()
132 switch (Cur.getTypeLocClass()) { in getBeginLoc()
134 LeftMost = Cur; in getBeginLoc()
137 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr() in getBeginLoc()
139 LeftMost = Cur; in getBeginLoc()
150 Cur = Cur.getNextTypeLoc(); in getBeginLoc()
153 if (!Cur.getLocalSourceRange().getBegin().isInvalid()) in getBeginLoc()
154 LeftMost = Cur; in getBeginLoc()
155 Cur = Cur.getNextTypeLoc(); in getBeginLoc()
[all …]
DType.cpp248 QualType Cur = T; in getSplitDesugaredType() local
250 const Type *CurTy = Qs.strip(Cur); in getSplitDesugaredType()
258 Cur = Ty->desugar(); \ in getSplitDesugaredType()
315 template<typename T> static const T *getAsSugar(const Type *Cur) { in getAsSugar() argument
317 if (const T *Sugar = dyn_cast<T>(Cur)) in getAsSugar()
319 switch (Cur->getTypeClass()) { in getAsSugar()
323 const Class##Type *Ty = cast<Class##Type>(Cur); \ in getAsSugar()
325 Cur = Ty->desugar().getTypePtr(); \ in getAsSugar()
345 const Type *Cur = this; in getUnqualifiedDesugaredType() local
348 switch (Cur->getTypeClass()) { in getUnqualifiedDesugaredType()
[all …]
/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/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/utils/TableGen/
DCodeGenInstruction.cpp362 FlattenAsmStringVariants(StringRef Cur, unsigned Variant) { in FlattenAsmStringVariants() argument
368 for (size_t e = Cur.size(); VariantsStart != e; ++VariantsStart) in FlattenAsmStringVariants()
369 if (Cur[VariantsStart] == '{' && in FlattenAsmStringVariants()
370 (VariantsStart == 0 || (Cur[VariantsStart-1] != '$' && in FlattenAsmStringVariants()
371 Cur[VariantsStart-1] != '\\'))) in FlattenAsmStringVariants()
375 Res += Cur.slice(0, VariantsStart); in FlattenAsmStringVariants()
376 if (VariantsStart == Cur.size()) in FlattenAsmStringVariants()
384 for (size_t e = Cur.size(); VariantsEnd != e; ++VariantsEnd) { in FlattenAsmStringVariants()
385 if (Cur[VariantsEnd] == '}' && Cur[VariantsEnd-1] != '\\') { in FlattenAsmStringVariants()
388 } 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 == 0) return 0; in unlinkNode()
47 Cur->takeNext(); in unlinkNode()
48 Cur->setNext(Other->takeNext()); in unlinkNode()
DRegisterInfoEmitter.cpp577 uint16_t Cur = List[i]; in diffEncode() local
578 V.push_back(Cur - Val); in diffEncode()
579 Val = Cur; in diffEncode()
590 uint16_t Cur = (*I)->EnumValue; in diffEncode() local
591 V.push_back(Cur - Val); in diffEncode()
592 Val = Cur; in diffEncode()
/external/llvm/lib/Target/X86/
DX86JITInfo.cpp448 uint8_t *Cur = Buffer; in emitGlobalValueIndirectSym() local
449 MachineCodeEmitter::emitWordLEInto(Cur, (unsigned)(intptr_t)ptr); in emitGlobalValueIndirectSym()
450 MachineCodeEmitter::emitWordLEInto(Cur, (unsigned)(((intptr_t)ptr) >> 32)); in emitGlobalValueIndirectSym()
454 uint8_t *Cur = Buffer; in emitGlobalValueIndirectSym()
455 MachineCodeEmitter::emitWordLEInto(Cur, (intptr_t)ptr); in emitGlobalValueIndirectSym()
/external/llvm/tools/llvm-diff/
DDifferenceEngine.cpp499 DiffEntry *Cur = Paths1.data(); in runBlockDiff() local
510 Cur[I].Cost = I * LeftCost; in runBlockDiff()
512 Cur[I].Path.push_back(DC_left); in runBlockDiff()
517 Next[0] = Cur[0]; in runBlockDiff()
524 Next[Index] = Cur[Index-1]; in runBlockDiff()
528 } else if (Next[Index-1].Cost <= Cur[Index].Cost) { in runBlockDiff()
533 Next[Index] = Cur[Index]; in runBlockDiff()
539 std::swap(Cur, Next); in runBlockDiff()
546 SmallVectorImpl<char> &Path = Cur[NL].Path; in runBlockDiff()
/external/clang/lib/Sema/
DIdentifierResolver.cpp51 IdDeclInfoPool *Cur = CurPool; in ~IdDeclInfoMap() local
52 while (IdDeclInfoPool *P = Cur) { in ~IdDeclInfoMap()
53 Cur = Cur->Next; in ~IdDeclInfoMap()
DSemaAccess.cpp641 bool findFriendship(const CXXRecordDecl *Cur, unsigned PrivateDepth) { in findFriendship()
645 if (Cur == NamingClass) in findFriendship()
648 if (CheckDependent && MightInstantiateTo(Cur, NamingClass)) in findFriendship()
653 I = Cur->bases_begin(), E = Cur->bases_end(); I != E; ++I) { in findFriendship()
685 bool findFriendship(const CXXRecordDecl *Cur) { in findFriendship()
687 CurPath.push_back(Cur); in findFriendship()
688 return findFriendship(Cur, 0); in findFriendship()
DSemaDecl.cpp4000 DeclContext *Cur = CurContext; in diagnoseQualifiedDeclaration() local
4001 while (isa<LinkageSpecDecl>(Cur)) in diagnoseQualifiedDeclaration()
4002 Cur = Cur->getParent(); in diagnoseQualifiedDeclaration()
4019 if (Cur->Equals(DC)) { in diagnoseQualifiedDeclaration()
4029 if (!Cur->Encloses(DC)) { in diagnoseQualifiedDeclaration()
4030 if (Cur->isRecord()) in diagnoseQualifiedDeclaration()
4036 else if (isa<FunctionDecl>(Cur)) in diagnoseQualifiedDeclaration()
4041 << Name << cast<NamedDecl>(Cur) << cast<NamedDecl>(DC) << SS.getRange(); in diagnoseQualifiedDeclaration()
4046 if (Cur->isRecord()) { in diagnoseQualifiedDeclaration()
4058 Context.getTypeDeclType(cast<CXXRecordDecl>(Cur)))) in diagnoseQualifiedDeclaration()
/external/llvm/lib/Support/Windows/
DProgram.inc117 /// CountPrecedingBackslashes - Returns the number of backslashes preceding Cur
120 const char *Cur) {
122 --Cur;
123 while (Cur >= Start && *Cur == '\\') {
125 --Cur;
131 /// preceding Cur in the Start string. Assumes Dst has enough space.
133 const char *Cur) {
134 unsigned PrecedingEscapes = CountPrecedingBackslashes(Start, Cur);
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp183 uint64_t Cur = cast<ConstantInt>(Node->getOperand(Idx + 1))-> in getParent() local
185 if (Cur > Offset) { in getParent()
195 uint64_t Cur = cast<ConstantInt>(Node->getOperand(TheIdx + 1))-> in getParent() local
197 Offset -= Cur; in getParent()
/external/llvm/lib/Option/
DArgList.cpp301 StringRef Cur = getArgString(Index); in GetOrMakeJoinedArgString() local
302 if (Cur.size() == LHS.size() + RHS.size() && in GetOrMakeJoinedArgString()
303 Cur.startswith(LHS) && Cur.endswith(RHS)) in GetOrMakeJoinedArgString()
304 return Cur.data(); in GetOrMakeJoinedArgString()
/external/llvm/lib/IR/
DDebugLoc.cpp221 MDNode *Cur = get(); in deleted() local
225 assert(Ctx->ScopeRecordIdx[Cur] == Idx && "Mapping out of date!"); in deleted()
226 Ctx->ScopeRecordIdx.erase(Cur); in deleted()
DMetadata.cpp56 MDNodeOperand *Cur = this; in getParent() local
58 while (Cur->getValPtrInt() != 1) in getParent()
59 --Cur; in getParent()
61 assert(Cur->getValPtrInt() == 1 && in getParent()
63 return reinterpret_cast<MDNode*>(Cur) - 1; in getParent()
/external/llvm/lib/MC/
DMCAssembler.cpp99 MCFragment *Cur = LastValidFragment[&SD]; in ensureValid() local
100 if (!Cur) in ensureValid()
101 Cur = &*SD.begin(); in ensureValid()
103 Cur = Cur->getNextNode(); in ensureValid()
107 assert(Cur && "Layout bookkeeping error"); in ensureValid()
108 const_cast<MCAsmLayout*>(this)->layoutFragment(Cur); in ensureValid()
109 Cur = Cur->getNextNode(); in ensureValid()
/external/llvm/lib/Target/ARM/
DARMJITInfo.cpp144 uint8_t *Cur = Buffer; in emitGlobalValueIndirectSym() local
145 MachineCodeEmitter::emitWordLEInto(Cur, (intptr_t)Ptr); in emitGlobalValueIndirectSym()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp3777 Instruction *Cur = Worklist.back(); in AddReductionVar() local
3783 if (Cur->use_empty()) in AddReductionVar()
3786 bool IsAPhi = isa<PHINode>(Cur); in AddReductionVar()
3789 if (Cur != Phi && IsAPhi && Cur->getParent() == Phi->getParent()) in AddReductionVar()
3794 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
3795 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) && in AddReductionVar()
3796 !VisitedInsts.count(dyn_cast<Instruction>(Cur->getOperand(0)))) in AddReductionVar()
3800 ReduxDesc = isReductionInstr(Cur, Kind, ReduxDesc); in AddReductionVar()
3806 hasMultipleUsesOf(Cur, VisitedInsts)) in AddReductionVar()
3810 if(IsAPhi && Cur != Phi && !areAllUsesIn(Cur, VisitedInsts)) in AddReductionVar()
[all …]
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp86 BasicBlock *Cur = I++; // Advance over block so we don't traverse new blocks in runOnFunction() local
88 if (SwitchInst *SI = dyn_cast<SwitchInst>(Cur->getTerminator())) { in runOnFunction()

12