/external/scudo/standalone/ |
D | string_utils.cpp | 126 const char *Cur = Format; in formatString() local 128 for (; *Cur; Cur++) { in formatString() 129 if (*Cur != '%') { in formatString() 130 Res += appendChar(&Buffer, BufferEnd, *Cur); in formatString() 133 Cur++; in formatString() 134 const bool LeftJustified = *Cur == '-'; in formatString() 136 Cur++; in formatString() 137 bool HaveWidth = (*Cur >= '0' && *Cur <= '9'); in formatString() 138 const bool PadWithZero = (*Cur == '0'); in formatString() 141 while (*Cur >= '0' && *Cur <= '9') in formatString() [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | string_utils.cpp | 126 const char *Cur = Format; in formatString() local 128 for (; *Cur; Cur++) { in formatString() 129 if (*Cur != '%') { in formatString() 130 Res += appendChar(&Buffer, BufferEnd, *Cur); in formatString() 133 Cur++; in formatString() 134 const bool LeftJustified = *Cur == '-'; in formatString() 136 Cur++; in formatString() 137 bool HaveWidth = (*Cur >= '0' && *Cur <= '9'); in formatString() 138 const bool PadWithZero = (*Cur == '0'); in formatString() 141 while (*Cur >= '0' && *Cur <= '9') in formatString() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/ |
D | OpDescriptor.h | 47 using PredT = std::function<bool(ArrayRef<Value *> Cur, const Value *New)>; 52 ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes)>; 62 Make = [Pred](ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes) { in SourcePred() 67 if (Pred(Cur, V)) in SourcePred() 77 bool matches(ArrayRef<Value *> Cur, const Value *New) { in matches() argument 78 return Pred(Cur, New); in matches() 82 std::vector<Constant *> generate(ArrayRef<Value *> Cur, in generate() argument 84 return Make(Cur, BaseTypes); in generate() 195 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in matchFirstType() 196 assert(!Cur.empty() && "No first source yet"); in matchFirstType() [all …]
|
/external/llvm-project/llvm/include/llvm/FuzzMutate/ |
D | OpDescriptor.h | 47 using PredT = std::function<bool(ArrayRef<Value *> Cur, const Value *New)>; 52 ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes)>; 62 Make = [Pred](ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes) { in SourcePred() 67 if (Pred(Cur, V)) in SourcePred() 77 bool matches(ArrayRef<Value *> Cur, const Value *New) { in matches() argument 78 return Pred(Cur, New); in matches() 82 std::vector<Constant *> generate(ArrayRef<Value *> Cur, in generate() argument 84 return Make(Cur, BaseTypes); in generate() 195 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in matchFirstType() 196 assert(!Cur.empty() && "No first source yet"); in matchFirstType() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceRegAlloc.cpp | 401 assert(!Iter.Cur->getLiveRange().isEmpty()); in addSpillFill() 402 InstNumberT Start = Iter.Cur->getLiveRange().getStart(); in addSpillFill() 403 InstNumberT End = Iter.Cur->getLiveRange().getEnd(); in addSpillFill() 404 CfgNode *Node = Func->getVMetadata()->getLocalUseNode(Iter.Cur); in addSpillFill() 435 Iter.Cur->setRegNumTmp(RegNum); in addSpillFill() 436 Variable *Preg = Target->getPhysicalRegister(RegNum, Iter.Cur->getType()); in addSpillFill() 439 Variable *SpillLoc = Func->makeVariable(Iter.Cur->getType()); in addSpillFill() 448 void LinearScan::handleActiveRangeExpiredOrInactive(const Variable *Cur) { in handleActiveRangeExpiredOrInactive() argument 452 Item->trimLiveRange(Cur->getLiveRange().getStart()); in handleActiveRangeExpiredOrInactive() 454 if (Item->rangeEndsBefore(Cur)) { in handleActiveRangeExpiredOrInactive() [all …]
|
/external/llvm-project/llvm/tools/llvm-c-test/ |
D | echo.cpp | 903 LLVMValueRef Cur = First; in CloneBB() local 906 CloneInstruction(Cur, Builder); in CloneBB() 907 Next = LLVMGetNextInstruction(Cur); in CloneBB() 909 if (Cur != Last) in CloneBB() 915 if (Prev != Cur) in CloneBB() 918 Cur = Next; in CloneBB() 933 LLVMBasicBlockRef Cur = First; in CloneBBs() local 936 CloneBB(Cur); in CloneBBs() 938 Next = LLVMGetNextBasicBlock(Cur); in CloneBBs() 940 if (Cur != Last) in CloneBBs() [all …]
|
/external/lzma/CPP/7zip/Common/ |
D | CWrappers.h | 57 const Byte *Cur; member 72 Lim = Cur = Buf; in Init() 77 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed() 81 if (Cur != Lim) in ReadByte() 82 return *Cur++; in ReadByte() 91 Byte *Cur; member 105 Cur = Buf; in Init() 110 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed() 114 *Cur++ = b; in WriteByte() 115 if (Cur == Lim) in WriteByte()
|
D | CWrappers.cpp | 169 Lim = Cur = Buf = (Byte *)::MidAlloc((size_t)size); in Alloc() 180 Processed += (Cur - Buf); in ReadByteFromNewBlock() 182 Cur = Buf; in ReadByteFromNewBlock() 185 return *Cur++; in ReadByteFromNewBlock() 194 if (p->Cur != p->Lim) in Wrap_ReadByte() 195 return *p->Cur++; in Wrap_ReadByte() 228 size_t size = (Cur - Buf); in Flush() 232 Cur = Buf; in Flush() 240 Byte *dest = p->Cur; in Wrap_WriteByte() 242 p->Cur = ++dest; in Wrap_WriteByte()
|
/external/llvm/tools/llvm-c-test/ |
D | echo.cpp | 706 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/llvm-project/llvm/lib/Support/ |
D | OptimizedStructLayout.cpp | 249 static Field *getNext(Field *Cur) { in performOptimizedStructLayout() 250 return static_cast<Field *>(Cur->Scratch); in performOptimizedStructLayout() 294 auto spliceFromQueue = [&](AlignmentQueue *Queue, Field *Last, Field *Cur) { in performOptimizedStructLayout() argument 295 assert(Last ? Queue->getNext(Last) == Cur : Queue->Head == Cur); in performOptimizedStructLayout() 300 Last->Scratch = Cur->Scratch; in performOptimizedStructLayout() 305 if (!Cur->Scratch) in performOptimizedStructLayout() 310 if (auto NewHead = Queue->getNext(Cur)) in performOptimizedStructLayout() 329 auto addToLayout = [&](AlignmentQueue *Queue, Field *Last, Field *Cur, in performOptimizedStructLayout() 331 assert(Offset == alignTo(LastEnd, Cur->Alignment)); in performOptimizedStructLayout() 334 spliceFromQueue(Queue, Last, Cur); in performOptimizedStructLayout() [all …]
|
D | circular_raw_ostream.cpp | 26 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl() 27 memcpy(Cur, Ptr, Bytes); in write_impl() 29 Cur += Bytes; in write_impl() 30 if (Cur == BufferArray + BufferSize) { in write_impl() 32 Cur = BufferArray; in write_impl()
|
/external/llvm-project/llvm/lib/FuzzMutate/ |
D | Operations.cpp | 190 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in validExtractValueIndex() argument 192 if (!CI->uge(getAggregateNumElements(Cur[0]->getType()))) in validExtractValueIndex() 196 auto Make = [](ArrayRef<Value *> Cur, ArrayRef<Type *> Ts) { in validExtractValueIndex() argument 198 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validExtractValueIndex() 199 uint64_t N = getAggregateNumElements(Cur[0]->getType()); in validExtractValueIndex() 222 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in matchScalarInAggregate() argument 223 if (auto *ArrayT = dyn_cast<ArrayType>(Cur[0]->getType())) in matchScalarInAggregate() 226 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() 232 auto Make = [](ArrayRef<Value *> Cur, ArrayRef<Type *>) { in matchScalarInAggregate() argument 233 if (auto *ArrayT = dyn_cast<ArrayType>(Cur[0]->getType())) in matchScalarInAggregate() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | Operations.cpp | 190 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in validExtractValueIndex() argument 192 if (!CI->uge(getAggregateNumElements(Cur[0]->getType()))) in validExtractValueIndex() 196 auto Make = [](ArrayRef<Value *> Cur, ArrayRef<Type *> Ts) { in validExtractValueIndex() argument 198 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validExtractValueIndex() 199 uint64_t N = getAggregateNumElements(Cur[0]->getType()); in validExtractValueIndex() 222 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) { in matchScalarInAggregate() argument 223 if (auto *ArrayT = dyn_cast<ArrayType>(Cur[0]->getType())) in matchScalarInAggregate() 226 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() 232 auto Make = [](ArrayRef<Value *> Cur, ArrayRef<Type *>) { in matchScalarInAggregate() argument 233 if (auto *ArrayT = dyn_cast<ArrayType>(Cur[0]->getType())) in matchScalarInAggregate() [all …]
|
/external/clang/lib/AST/ |
D | TypeLoc.cpp | 171 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-project/llvm/lib/Analysis/ |
D | IVDescriptors.cpp | 273 Instruction *Cur = Worklist.back(); in AddReductionVar() local 279 if (Cur->use_empty()) in AddReductionVar() 282 bool IsAPhi = isa<PHINode>(Cur); in AddReductionVar() 285 if (Cur != Phi && IsAPhi && Cur->getParent() == Phi->getParent()) in AddReductionVar() 290 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar() 291 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) && in AddReductionVar() 292 !VisitedInsts.count(dyn_cast<Instruction>(Cur->getOperand(0)))) in AddReductionVar() 298 if (Cur != Start) { in AddReductionVar() 299 ReduxDesc = isRecurrenceInstr(Cur, Kind, ReduxDesc, HasFunNoNaNAttr); in AddReductionVar() 307 bool IsASelect = isa<SelectInst>(Cur); in AddReductionVar() [all …]
|
/external/llvm/include/llvm/Support/ |
D | Registry.h | 83 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; }
|
D | circular_raw_ostream.h | 59 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/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | circular_raw_ostream.h | 59 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/ |
D | circular_raw_ostream.cpp | 27 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-10.0/llvm/lib/Support/ |
D | circular_raw_ostream.cpp | 26 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl() 27 memcpy(Cur, Ptr, Bytes); in write_impl() 29 Cur += Bytes; in write_impl() 30 if (Cur == BufferArray + BufferSize) { in write_impl() 32 Cur = BufferArray; in write_impl()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | circular_raw_ostream.cpp | 27 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-project/llvm/include/llvm/Support/ |
D | circular_raw_ostream.h | 58 char *Cur; variable 75 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer() 77 TheStream->write(BufferArray, Cur - BufferArray); in flushBuffer() 78 Cur = BufferArray; in flushBuffer() 114 Cur = BufferArray; in raw_ostream()
|
D | Registry.h | 86 const node *Cur; variable 89 explicit iterator(const node *N) : Cur(N) {} in iterator() 91 bool operator==(const iterator &That) const { return Cur == That.Cur; } 92 iterator &operator++() { Cur = Cur->Next; return *this; } 93 const entry &operator*() const { return Cur->Val; }
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | circular_raw_ostream.h | 58 char *Cur; variable 75 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer() 77 TheStream->write(BufferArray, Cur - BufferArray); in flushBuffer() 78 Cur = BufferArray; in flushBuffer() 114 Cur = BufferArray; in raw_ostream()
|
/external/llvm-project/clang/lib/AST/ |
D | TypeLoc.cpp | 192 TypeLoc Cur = *this; in getBeginLoc() local 193 TypeLoc LeftMost = Cur; in getBeginLoc() 195 switch (Cur.getTypeLocClass()) { in getBeginLoc() 197 LeftMost = Cur; in getBeginLoc() 200 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr() in getBeginLoc() 202 LeftMost = Cur; in getBeginLoc() 213 Cur = Cur.getNextTypeLoc(); in getBeginLoc() 216 if (Cur.getLocalSourceRange().getBegin().isValid()) in getBeginLoc() 217 LeftMost = Cur; in getBeginLoc() 218 Cur = Cur.getNextTypeLoc(); in getBeginLoc() [all …]
|