/external/clang/lib/Serialization/ |
D | ASTReaderStmt.cpp | 35 unsigned &Idx; member in clang::ASTStmtReader 83 const ASTReader::RecordData &Record, unsigned &Idx) in ASTStmtReader() argument 84 : Reader(Reader), F(F), DeclsCursor(Cursor), Record(Record), Idx(Idx) { } in ASTStmtReader() 112 SourceLocation TemplateKWLoc = ReadSourceLocation(Record, Idx); in ReadTemplateKWAndArgsInfo() 114 ArgInfo.setLAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo() 115 ArgInfo.setRAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo() 118 Reader.ReadTemplateArgumentLoc(F, Record, Idx)); in ReadTemplateKWAndArgsInfo() 123 assert(Idx == NumStmtFields && "Incorrect statement field count"); in VisitStmt() 128 S->setSemiLoc(ReadSourceLocation(Record, Idx)); in VisitNullStmt() 129 S->HasLeadingEmptyMacro = Record[Idx++]; in VisitNullStmt() [all …]
|
D | ASTReaderDecl.cpp | 45 unsigned &Idx; member in clang::ASTDeclReader 92 for (unsigned I = 0, Size = Record[Idx++]; I != Size; ++I) in ReadDeclIDList() 93 IDs.push_back(ReadDeclID(Record, Idx)); in ReadDeclIDList() 220 const RecordData &Record, unsigned &Idx) in ASTDeclReader() argument 222 ThisDeclLoc(ThisDeclLoc), Record(Record), Idx(Idx), in ASTDeclReader() 463 GetTypeSourceInfo(Record, Idx); in Visit() 466 DD->DeclInfo = GetTypeSourceInfo(Record, Idx); in Visit() 487 if (Record[Idx++]) { in Visit() 489 CD->NumCtorInitializers = Record[Idx++]; in Visit() 491 CD->CtorInitializers = ReadGlobalOffset(F, Record, Idx); in Visit() [all …]
|
D | ASTReader.cpp | 1073 unsigned Idx = 0; in ParseLineTable() local 1078 for (unsigned I = 0; Record[Idx]; ++I) { in ParseLineTable() 1080 auto Filename = ReadPath(F, Record, Idx); in ParseLineTable() 1083 ++Idx; in ParseLineTable() 1087 while (Idx < Record.size()) { in ParseLineTable() 1088 int FID = Record[Idx++]; in ParseLineTable() 1094 unsigned NumEntries = Record[Idx++]; in ParseLineTable() 1099 unsigned FileOffset = Record[Idx++]; in ParseLineTable() 1100 unsigned LineNo = Record[Idx++]; in ParseLineTable() 1101 int FilenameID = FileIDs[Record[Idx++]]; in ParseLineTable() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | ScalarizeMaskedMemIntrin.cpp | 161 for (unsigned Idx = 0; Idx < VectorWidth; ++Idx) { in scalarizeMaskedLoad() local 162 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in scalarizeMaskedLoad() 165 Builder.CreateInBoundsGEP(EltTy, FirstEltPtr, Builder.getInt32(Idx)); in scalarizeMaskedLoad() 168 Builder.CreateInsertElement(VResult, Load, Builder.getInt32(Idx)); in scalarizeMaskedLoad() 179 for (unsigned Idx = 0; Idx < VectorWidth; ++Idx) { in scalarizeMaskedLoad() local 187 if (Idx > 0) { in scalarizeMaskedLoad() 196 Builder.CreateExtractElement(Mask, Builder.getInt32(Idx)); in scalarizeMaskedLoad() 210 Builder.CreateInBoundsGEP(EltTy, FirstEltPtr, Builder.getInt32(Idx)); in scalarizeMaskedLoad() 212 VResult = Builder.CreateInsertElement(VResult, Load, Builder.getInt32(Idx)); in scalarizeMaskedLoad() 298 for (unsigned Idx = 0; Idx < VectorWidth; ++Idx) { in scalarizeMaskedStore() local [all …]
|
D | SplitKit.cpp | 341 bool SplitAnalysis::isOriginalEndpoint(SlotIndex Idx) const { in isOriginalEndpoint() 345 LiveInterval::const_iterator I = Orig.find(Idx); in isOriginalEndpoint() 348 if (I != Orig.end() && I->start <= Idx) in isOriginalEndpoint() 349 return I->start == Idx; in isOriginalEndpoint() 352 return I != Orig.begin() && (--I)->end == Idx; in isOriginalEndpoint() 459 SlotIndex Idx, in defValue() argument 462 assert(Idx.isValid() && "Invalid SlotIndex"); in defValue() 463 assert(Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"); in defValue() 467 VNInfo *VNI = LI->getNextValue(Idx, LIS.getVNInfoAllocator()); in defValue() 562 for (unsigned Idx = 1, E = TRI.getNumSubRegIndices(); Idx < E; ++Idx) { in buildCopy() local [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | DebugLoc.cpp | 193 int &Idx = ScopeRecordIdx[Scope]; in getOrAddScopeRecordIdxEntry() local 194 if (Idx) return Idx; in getOrAddScopeRecordIdxEntry() 198 return Idx = ExistingIdx; in getOrAddScopeRecordIdxEntry() 208 Idx = ScopeRecords.size()+1; in getOrAddScopeRecordIdxEntry() 209 ScopeRecords.push_back(DebugRecVH(Scope, this, Idx)); in getOrAddScopeRecordIdxEntry() 210 return Idx; in getOrAddScopeRecordIdxEntry() 216 int &Idx = ScopeInlinedAtIdx[std::make_pair(Scope, IA)]; in getOrAddScopeInlinedAtIdxEntry() local 217 if (Idx) return Idx; in getOrAddScopeInlinedAtIdxEntry() 221 return Idx = ExistingIdx; in getOrAddScopeInlinedAtIdxEntry() 229 Idx = -ScopeInlinedAtRecords.size()-1; in getOrAddScopeInlinedAtIdxEntry() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | SparseMultiSet.h | 167 unsigned Idx = FreelistIdx; in addValue() local 168 unsigned NextFree = Dense[Idx].Next; in addValue() 169 assert(Dense[Idx].isTombstone() && "Non-tombstone free?"); in addValue() 171 Dense[Idx] = SMSNode(V, Prev, Next); in addValue() 174 return Idx; in addValue() 178 void makeTombstone(unsigned Idx) { in makeTombstone() argument 179 Dense[Idx].Prev = SMSNode::INVALID; in makeTombstone() 180 Dense[Idx].Next = FreelistIdx; in makeTombstone() 181 FreelistIdx = Idx; in makeTombstone() 226 unsigned Idx; variable [all …]
|
D | PackedVector.h | 31 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument 34 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 38 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument 41 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() 48 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument 51 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 52 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue() 57 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument 60 Bits.set((Idx << (BitNum-1)) + BitNum-1); in setValue() 64 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | SparseMultiSet.h | 164 unsigned Idx = FreelistIdx; in addValue() local 165 unsigned NextFree = Dense[Idx].Next; in addValue() 166 assert(Dense[Idx].isTombstone() && "Non-tombstone free?"); in addValue() 168 Dense[Idx] = SMSNode(V, Prev, Next); in addValue() 171 return Idx; in addValue() 175 void makeTombstone(unsigned Idx) { in makeTombstone() argument 176 Dense[Idx].Prev = SMSNode::INVALID; in makeTombstone() 177 Dense[Idx].Next = FreelistIdx; in makeTombstone() 178 FreelistIdx = Idx; in makeTombstone() 222 unsigned Idx; variable [all …]
|
D | PackedVector.h | 30 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument 33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 37 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument 40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() 47 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument 50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 51 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue() 56 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument 59 Bits.set((Idx << (BitNum-1)) + BitNum-1); in setValue() 63 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonBlockRanges.h | 55 IndexType(unsigned Idx) : Index(Idx) {} in IndexType() 61 bool operator== (IndexType Idx) const; 63 bool operator!= (IndexType Idx) const; 65 bool operator< (unsigned Idx) const; 66 bool operator< (IndexType Idx) const; 67 bool operator<= (IndexType Idx) const; 70 bool operator> (IndexType Idx) const; 71 bool operator>= (IndexType Idx) const; 127 MachineInstr *getInstr(IndexType Idx) const; 130 IndexType getPrevIndex(IndexType Idx) const; [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonBlockRanges.h | 56 IndexType(unsigned Idx) : Index(Idx) {} in IndexType() 59 bool operator== (IndexType Idx) const; 61 bool operator!= (IndexType Idx) const; 63 bool operator< (unsigned Idx) const; 64 bool operator< (IndexType Idx) const; 65 bool operator<= (IndexType Idx) const; 68 bool operator> (IndexType Idx) const; 69 bool operator>= (IndexType Idx) const; 121 MachineInstr *getInstr(IndexType Idx) const; 124 IndexType getPrevIndex(IndexType Idx) const; [all …]
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | scariness_score_test.cc | 50 void HeapBuferOverflow(int Idx, ReadOrWrite w) { in HeapBuferOverflow() argument 54 t[100 + Idx] = T(); in HeapBuferOverflow() 56 sink = t[100 + Idx]; in HeapBuferOverflow() 61 void HeapUseAfterFree(int Idx, ReadOrWrite w) { in HeapUseAfterFree() argument 67 t[Idx] = T(); in HeapUseAfterFree() 69 sink = t[Idx]; in HeapUseAfterFree() 73 void StackBufferOverflow(int Idx, ReadOrWrite w) { in StackBufferOverflow() argument 76 sink = t[Idx]; in StackBufferOverflow() 78 t[100 + Idx] = T(); in StackBufferOverflow() 80 sink = t[100 + Idx]; in StackBufferOverflow() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | PackedVector.h | 30 static T getValue(const llvm::BitVector &Bits, unsigned Idx) { in getValue() argument 33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 37 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) { in setValue() argument 40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() 47 static T getValue(const llvm::BitVector &Bits, unsigned Idx) { in getValue() argument 50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue() 51 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue() 56 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) { in setValue() argument 59 Bits.set((Idx << (BitNum-1)) + BitNum-1); in setValue() 63 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SplitKit.cpp | 276 bool SplitAnalysis::isOriginalEndpoint(SlotIndex Idx) const { in isOriginalEndpoint() 280 LiveInterval::const_iterator I = Orig.find(Idx); in isOriginalEndpoint() 283 if (I != Orig.end() && I->start <= Idx) in isOriginalEndpoint() 284 return I->start == Idx; in isOriginalEndpoint() 287 return I != Orig.begin() && (--I)->end == Idx; in isOriginalEndpoint() 347 SlotIndex Idx) { in defValue() argument 349 assert(Idx.isValid() && "Invalid SlotIndex"); in defValue() 350 assert(Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"); in defValue() 354 VNInfo *VNI = LI->getNextValue(Idx, 0, LIS.getVNInfoAllocator()); in defValue() 446 void SplitEditor::selectIntv(unsigned Idx) { in selectIntv() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-c-test/ |
D | attributes.c | 28 int Idx, ParamCount; in llvm_test_function_attributes() local 29 for (Idx = LLVMAttributeFunctionIndex, ParamCount = LLVMCountParams(F); in llvm_test_function_attributes() 30 Idx <= ParamCount; ++Idx) { in llvm_test_function_attributes() 31 int AttrCount = LLVMGetAttributeCountAtIndex(F, Idx); in llvm_test_function_attributes() 35 LLVMGetAttributesAtIndex(F, Idx, Attrs); in llvm_test_function_attributes() 59 int Idx, ParamCount; in llvm_test_callsite_attributes() local 60 for (Idx = LLVMAttributeFunctionIndex, in llvm_test_callsite_attributes() 62 Idx <= ParamCount; ++Idx) { in llvm_test_callsite_attributes() 63 int AttrCount = LLVMGetCallSiteAttributeCount(I, Idx); in llvm_test_callsite_attributes() 67 LLVMGetCallSiteAttributes(I, Idx, Attrs); in llvm_test_callsite_attributes()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/MCTargetDesc/ |
D | ARMMCTargetDesc.cpp | 42 unsigned Idx = 0; in ParseARMTriple() local 47 Idx = 4; in ParseARMTriple() 51 Idx = 6; in ParseARMTriple() 55 if (Idx) { in ParseARMTriple() 56 unsigned SubVer = TT[Idx]; in ParseARMTriple() 58 if (Len >= Idx+2 && TT[Idx+1] == 'm') { in ParseARMTriple() 61 } else if (Len >= Idx+3 && TT[Idx+1] == 'e'&& TT[Idx+2] == 'm') { in ParseARMTriple() 69 if (Len >= Idx+3 && TT[Idx+1] == 't' && TT[Idx+2] == '2') in ParseARMTriple() 71 else if (Len >= Idx+2 && TT[Idx+1] == 'm') in ParseARMTriple() 77 if (Len >= Idx+3 && TT[Idx+1] == 't' && TT[Idx+2] == 'e') in ParseARMTriple() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/ |
D | ValueList.cpp | 69 void BitcodeReaderValueList::assignValue(Value *V, unsigned Idx) { in assignValue() argument 70 if (Idx == size()) { in assignValue() 75 if (Idx >= size()) in assignValue() 76 resize(Idx + 1); in assignValue() 78 WeakTrackingVH &OldV = ValuePtrs[Idx]; in assignValue() 87 ResolveConstants.push_back(std::make_pair(PHC, Idx)); in assignValue() 97 Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, Type *Ty) { in getConstantFwdRef() argument 98 if (Idx >= size()) in getConstantFwdRef() 99 resize(Idx + 1); in getConstantFwdRef() 101 if (Value *V = ValuePtrs[Idx]) { in getConstantFwdRef() [all …]
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | DeadArgumentElimination.h | 40 RetOrArg(const Function *F, unsigned Idx, bool IsArg) in RetOrArg() 41 : F(F), Idx(Idx), IsArg(IsArg) {} in RetOrArg() 43 unsigned Idx; member 48 return std::tie(F, Idx, IsArg) < std::tie(O.F, O.Idx, O.IsArg); 53 return F == O.F && Idx == O.Idx && IsArg == O.IsArg; 57 return (Twine(IsArg ? "Argument #" : "Return value #") + Twine(Idx) + in getDescription() 71 RetOrArg CreateRet(const Function *F, unsigned Idx) { in CreateRet() argument 72 return RetOrArg(F, Idx, false); in CreateRet() 75 RetOrArg CreateArg(const Function *F, unsigned Idx) { in CreateArg() argument 76 return RetOrArg(F, Idx, true); in CreateArg()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/ |
D | DeadArgumentElimination.h | 47 unsigned Idx; member 50 RetOrArg(const Function *F, unsigned Idx, bool IsArg) in RetOrArg() 51 : F(F), Idx(Idx), IsArg(IsArg) {} in RetOrArg() 55 return std::tie(F, Idx, IsArg) < std::tie(O.F, O.Idx, O.IsArg); 60 return F == O.F && Idx == O.Idx && IsArg == O.IsArg; 64 return (Twine(IsArg ? "Argument #" : "Return value #") + Twine(Idx) + in getDescription() 83 RetOrArg CreateRet(const Function *F, unsigned Idx) { in CreateRet() argument 84 return RetOrArg(F, Idx, false); in CreateRet() 88 RetOrArg CreateArg(const Function *F, unsigned Idx) { in CreateArg() argument 89 return RetOrArg(F, Idx, true); in CreateArg()
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerMutate.cpp | 79 size_t Idx = Rand(Corpus->size()); in Mutate_CustomCrossOver() local 80 const Unit &Other = (*Corpus)[Idx]; in Mutate_CustomCrossOver() 110 size_t Idx = Rand(Size); in Mutate_EraseByte() local 112 memmove(Data + Idx, Data + Idx + 1, Size - Idx - 1); in Mutate_EraseByte() 119 size_t Idx = Rand(Size + 1); in Mutate_InsertByte() local 121 memmove(Data + Idx + 1, Data + Idx, Size - Idx); in Mutate_InsertByte() 122 Data[Idx] = RandCh(Rand); in Mutate_InsertByte() 128 size_t Idx = Rand(Size); in Mutate_ChangeByte() local 129 Data[Idx] = RandCh(Rand); in Mutate_ChangeByte() 135 size_t Idx = Rand(Size); in Mutate_ChangeBit() local [all …]
|
/external/llvm/lib/CodeGen/ |
D | SplitKit.cpp | 315 bool SplitAnalysis::isOriginalEndpoint(SlotIndex Idx) const { in isOriginalEndpoint() 319 LiveInterval::const_iterator I = Orig.find(Idx); in isOriginalEndpoint() 322 if (I != Orig.end() && I->start <= Idx) in isOriginalEndpoint() 323 return I->start == Idx; in isOriginalEndpoint() 326 return I != Orig.begin() && (--I)->end == Idx; in isOriginalEndpoint() 386 SlotIndex Idx) { in defValue() argument 388 assert(Idx.isValid() && "Invalid SlotIndex"); in defValue() 389 assert(Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"); in defValue() 393 VNInfo *VNI = LI->getNextValue(Idx, LIS.getVNInfoAllocator()); in defValue() 490 void SplitEditor::selectIntv(unsigned Idx) { in selectIntv() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | TestGraph.h | 32 static void ValidateIndex(unsigned Idx) { in ValidateIndex() argument 33 assert(Idx < N && "Invalid node index!"); in ValidateIndex() 57 void AddNode(unsigned Idx) { in AddNode() argument 58 ValidateIndex(Idx); in AddNode() 59 Elements |= 1U << Idx; in AddNode() 63 void DeleteNode(unsigned Idx) { in DeleteNode() argument 64 ValidateIndex(Idx); in DeleteNode() 65 Elements &= ~(1U << Idx); in DeleteNode() 69 bool count(unsigned Idx) { in count() argument 70 ValidateIndex(Idx); in count() [all …]
|
/external/llvm/utils/TableGen/ |
D | CodeGenSchedule.h | 61 CodeGenSchedRW(unsigned Idx, Record *Def) in CodeGenSchedRW() 62 : Index(Idx), TheDef(Def), IsAlias(false), IsVariadic(false) { in CodeGenSchedRW() 75 CodeGenSchedRW(unsigned Idx, bool Read, ArrayRef<unsigned> Seq, in CodeGenSchedRW() 77 : Index(Idx), Name(Name), TheDef(nullptr), IsRead(Read), IsAlias(false), in CodeGenSchedRW() 204 CodeGenProcModel(unsigned Idx, const std::string &Name, Record *MDef, in CodeGenProcModel() 206 Index(Idx), ModelName(Name), ModelDef(MDef), ItinsDef(IDef) {} in CodeGenProcModel() 318 const CodeGenSchedRW &getSchedWrite(unsigned Idx) const { in getSchedWrite() argument 319 assert(Idx < SchedWrites.size() && "bad SchedWrite index"); in getSchedWrite() 320 assert(SchedWrites[Idx].isValid() && "invalid SchedWrite"); in getSchedWrite() 321 return SchedWrites[Idx]; in getSchedWrite() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | ArrayRecycler.h | 44 T *pop(unsigned Idx) { in pop() argument 45 if (Idx >= Bucket.size()) in pop() 47 FreeList *Entry = Bucket[Idx]; in pop() 50 __asan_unpoison_memory_region(Entry, Capacity::get(Idx).getSize()); in pop() 51 Bucket[Idx] = Entry->Next; in pop() 52 __msan_allocated_memory(Entry, Capacity::get(Idx).getSize()); in pop() 57 void push(unsigned Idx, T *Ptr) { in push() argument 60 if (Idx >= Bucket.size()) in push() 61 Bucket.resize(size_t(Idx) + 1); in push() 62 Entry->Next = Bucket[Idx]; in push() [all …]
|