/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() 111 SourceLocation TemplateKWLoc = ReadSourceLocation(Record, Idx); in ReadTemplateKWAndArgsInfo() 113 ArgInfo.setLAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo() 114 ArgInfo.setRAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo() 117 Reader.ReadTemplateArgumentLoc(F, Record, Idx)); in ReadTemplateKWAndArgsInfo() 122 assert(Idx == NumStmtFields && "Incorrect statement field count"); in VisitStmt() 127 S->setSemiLoc(ReadSourceLocation(Record, Idx)); in VisitNullStmt() 128 S->HasLeadingEmptyMacro = Record[Idx++]; in VisitNullStmt() [all …]
|
D | ASTReaderDecl.cpp | 44 unsigned &Idx; member in clang::ASTDeclReader 71 for (unsigned I = 0, Size = Record[Idx++]; I != Size; ++I) in ReadDeclIDList() 72 IDs.push_back(ReadDeclID(Record, Idx)); in ReadDeclIDList() 218 unsigned RawLocation, const RecordData &Record, unsigned &Idx) in ASTDeclReader() argument 220 RawLocation(RawLocation), Record(Record), Idx(Idx), in ASTDeclReader() 383 GetTypeSourceInfo(Record, Idx); in Visit() 386 DD->DeclInfo = GetTypeSourceInfo(Record, Idx); in Visit() 407 if (Record[Idx++]) { in Visit() 409 CD->NumCtorInitializers = Record[Idx++]; in Visit() 412 Reader.ReadCXXCtorInitializersRef(F, Record, Idx); in Visit() [all …]
|
D | ASTReader.cpp | 1066 unsigned Idx = 0; in ParseLineTable() local 1071 for (int I = 0, N = Record[Idx++]; I != N; ++I) { in ParseLineTable() 1073 auto Filename = ReadPath(F, Record, Idx); in ParseLineTable() 1079 while (Idx < Record.size()) { in ParseLineTable() 1080 int FID = Record[Idx++]; in ParseLineTable() 1086 unsigned NumEntries = Record[Idx++]; in ParseLineTable() 1091 unsigned FileOffset = Record[Idx++]; in ParseLineTable() 1092 unsigned LineNo = Record[Idx++]; in ParseLineTable() 1093 int FilenameID = FileIDs[Record[Idx++]]; in ParseLineTable() 1095 = (SrcMgr::CharacteristicKind)Record[Idx++]; in ParseLineTable() [all …]
|
D | GlobalModuleIndex.cpp | 177 unsigned Idx = 0; in GlobalModuleIndex() local 178 unsigned ID = Record[Idx++]; in GlobalModuleIndex() 188 Modules[ID].Size = Record[Idx++]; in GlobalModuleIndex() 189 Modules[ID].ModTime = Record[Idx++]; in GlobalModuleIndex() 192 unsigned NameLen = Record[Idx++]; in GlobalModuleIndex() 193 Modules[ID].FileName.assign(Record.begin() + Idx, in GlobalModuleIndex() 194 Record.begin() + Idx + NameLen); in GlobalModuleIndex() 195 Idx += NameLen; in GlobalModuleIndex() 198 unsigned NumDeps = Record[Idx++]; in GlobalModuleIndex() 200 Record.begin() + Idx, in GlobalModuleIndex() [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 …]
|
D | SparseBitVector.h | 67 explicit SparseBitVectorElement(unsigned Idx) { 68 ElementIndex = Idx; 87 BitWord word(unsigned Idx) const { 88 assert (Idx < BITWORDS_PER_ELEMENT); 89 return Bits[Idx]; 103 void set(unsigned Idx) { 104 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE); 107 bool test_and_set (unsigned Idx) { 108 bool old = test(Idx); 110 set(Idx); [all …]
|
D | SmallBitVector.h | 67 reference(SmallBitVector &b, unsigned Idx) : TheVector(b), BitPos(Idx) {} in reference() argument 287 SmallBitVector &set(unsigned Idx) { in set() argument 289 assert(Idx <= static_cast<unsigned>( in set() 292 setSmallBits(getSmallBits() | (uintptr_t(1) << Idx)); in set() 295 getPointer()->set(Idx); in set() 322 SmallBitVector &reset(unsigned Idx) { in reset() argument 324 setSmallBits(getSmallBits() & ~(uintptr_t(1) << Idx)); in reset() 326 getPointer()->reset(Idx); in reset() 353 SmallBitVector &flip(unsigned Idx) { in flip() argument 355 setSmallBits(getSmallBits() ^ (uintptr_t(1) << Idx)); in flip() [all …]
|
D | BitVector.h | 51 reference(BitVector &b, unsigned Idx) { in reference() argument 52 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference() 53 BitPos = Idx % BITWORD_SIZE; in reference() 224 BitVector &set(unsigned Idx) { in set() argument 226 Bits[Idx / BITWORD_SIZE] |= BitWord(1) << (Idx % BITWORD_SIZE); in set() 264 BitVector &reset(unsigned Idx) { in reset() argument 265 Bits[Idx / BITWORD_SIZE] &= ~(BitWord(1) << (Idx % BITWORD_SIZE)); in reset() 305 BitVector &flip(unsigned Idx) { in flip() argument 306 Bits[Idx / BITWORD_SIZE] ^= BitWord(1) << (Idx % BITWORD_SIZE); in flip() 311 reference operator[](unsigned Idx) { [all …]
|
/external/llvm/lib/CodeGen/ |
D | SplitKit.cpp | 292 bool SplitAnalysis::isOriginalEndpoint(SlotIndex Idx) const { in isOriginalEndpoint() 296 LiveInterval::const_iterator I = Orig.find(Idx); in isOriginalEndpoint() 299 if (I != Orig.end() && I->start <= Idx) in isOriginalEndpoint() 300 return I->start == Idx; in isOriginalEndpoint() 303 return I != Orig.begin() && (--I)->end == Idx; in isOriginalEndpoint() 361 SlotIndex Idx) { in defValue() argument 363 assert(Idx.isValid() && "Invalid SlotIndex"); in defValue() 364 assert(Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"); in defValue() 368 VNInfo *VNI = LI->getNextValue(Idx, LIS.getVNInfoAllocator()); in defValue() 459 void SplitEditor::selectIntv(unsigned Idx) { in selectIntv() argument [all …]
|
D | LiveDebugVariables.cpp | 134 void insertDebugValue(MachineBasicBlock *MBB, SlotIndex Idx, unsigned LocNo, 213 void addDef(SlotIndex Idx, const MachineOperand &LocMO) { in addDef() argument 215 LocMap::iterator I = locInts.find(Idx); in addDef() 216 if (!I.valid() || I.start() != Idx) in addDef() 217 I.insert(Idx, Idx.getNextSlot(), getLocationNo(LocMO)); in addDef() 234 void extendDef(SlotIndex Idx, unsigned LocNo, 316 bool handleDebugValue(MachineInstr *MI, SlotIndex Idx); 490 bool LDVImpl::handleDebugValue(MachineInstr *MI, SlotIndex Idx) { in handleDebugValue() argument 507 UV->addDef(Idx, MI->getOperand(0)); in handleDebugValue() 523 SlotIndex Idx = MBBI == MBB->begin() ? in collectDebugValues() local [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, const IdxVec &Seq, in CodeGenSchedRW() 77 : Index(Idx), Name(Name), TheDef(nullptr), IsRead(Read), IsAlias(false), in CodeGenSchedRW() 199 CodeGenProcModel(unsigned Idx, const std::string &Name, Record *MDef, in CodeGenProcModel() 201 Index(Idx), ModelName(Name), ModelDef(MDef), ItinsDef(IDef) {} in CodeGenProcModel() 309 const CodeGenSchedRW &getSchedWrite(unsigned Idx) const { in getSchedWrite() argument 310 assert(Idx < SchedWrites.size() && "bad SchedWrite index"); in getSchedWrite() 311 assert(SchedWrites[Idx].isValid() && "invalid SchedWrite"); in getSchedWrite() 312 return SchedWrites[Idx]; in getSchedWrite() [all …]
|
/external/llvm/lib/MC/ |
D | MCRegisterInfo.cpp | 26 unsigned MCRegisterInfo::getSubReg(unsigned Reg, unsigned Idx) const { in getSubReg() 27 assert(Idx && Idx < getNumSubRegIndices() && in getSubReg() 33 if (*SRI == Idx) in getSubReg() 49 unsigned MCRegisterInfo::getSubRegIdxSize(unsigned Idx) const { in getSubRegIdxSize() 50 assert(Idx && Idx < getNumSubRegIndices() && in getSubRegIdxSize() 52 return SubRegIdxRanges[Idx].Size; in getSubRegIdxSize() 55 unsigned MCRegisterInfo::getSubRegIdxOffset(unsigned Idx) const { in getSubRegIdxOffset() 56 assert(Idx && Idx < getNumSubRegIndices() && in getSubRegIdxOffset() 58 return SubRegIdxRanges[Idx].Offset; in getSubRegIdxOffset()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 122 int Idx = CostTableLookup(AVX2UniformConstCostTable, ISD, LT.second); in getArithmeticInstrCost() local 123 if (Idx != -1) in getArithmeticInstrCost() 124 return LT.first * AVX2UniformConstCostTable[Idx].Cost; in getArithmeticInstrCost() 172 int Idx = CostTableLookup(AVX512CostTable, ISD, LT.second); in getArithmeticInstrCost() local 173 if (Idx != -1) in getArithmeticInstrCost() 174 return LT.first * AVX512CostTable[Idx].Cost; in getArithmeticInstrCost() 185 int Idx = CostTableLookup(AVX2CostTable, ISD, LT.second); in getArithmeticInstrCost() local 186 if (Idx != -1) in getArithmeticInstrCost() 187 return LT.first * AVX2CostTable[Idx].Cost; in getArithmeticInstrCost() 221 int Idx = CostTableLookup(SSE2UniformConstCostTable, ISD, LT.second); in getArithmeticInstrCost() local [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 66 unsigned SystemZTTIImpl::getIntImmCost(unsigned Opcode, unsigned Idx, in getIntImmCost() argument 86 if (Idx == 0) in getIntImmCost() 90 if (Idx == 0 && Imm.getBitWidth() <= 64) { in getIntImmCost() 100 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 111 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 121 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 129 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 139 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 160 if (Idx == 1) in getIntImmCost() 184 unsigned SystemZTTIImpl::getIntImmCost(Intrinsic::ID IID, unsigned Idx, in getIntImmCost() argument [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | ConstantHoisting.cpp | 69 ConstantUser(Instruction *Inst, unsigned Idx) : Inst(Inst), OpndIdx(Idx) { } in ConstantUser() 82 void addUser(Instruction *Inst, unsigned Idx, unsigned Cost) { in addUser() 84 Uses.push_back(ConstantUser(Inst, Idx)); in addUser() 157 Instruction *findMatInsertPt(Instruction *Inst, unsigned Idx = ~0U) const; 160 Instruction *Inst, unsigned Idx, 215 unsigned Idx) const { in findMatInsertPt() 218 if (Idx != ~0U) { in findMatInsertPt() 219 Value *Opnd = Inst->getOperand(Idx); in findMatInsertPt() 232 if (Idx != ~0U && isa<PHINode>(Inst)) in findMatInsertPt() 233 return cast<PHINode>(Inst)->getIncomingBlock(Idx)->getTerminator(); in findMatInsertPt() [all …]
|
/external/llvm/unittests/ADT/ |
D | SCCIteratorTest.cpp | 27 static void ValidateIndex(unsigned Idx) { in ValidateIndex() argument 28 assert(Idx < N && "Invalid node index!"); in ValidateIndex() 52 void AddNode(unsigned Idx) { in AddNode() argument 53 ValidateIndex(Idx); in AddNode() 54 Elements |= 1U << Idx; in AddNode() 58 void DeleteNode(unsigned Idx) { in DeleteNode() argument 59 ValidateIndex(Idx); in DeleteNode() 60 Elements &= ~(1U << Idx); in DeleteNode() 64 bool count(unsigned Idx) { in count() argument 65 ValidateIndex(Idx); in count() [all …]
|
D | HashingTest.cpp | 177 for (unsigned Idx = 1, Size = all_one_c.size(); Idx < Size; ++Idx) { in TEST() local 178 hash_code code = hash_combine_range(&all_one_c[0], &all_one_c[0] + Idx); in TEST() 180 I = code_to_size.insert(std::make_pair(code, Idx)).first; in TEST() 181 EXPECT_EQ(Idx, I->second); in TEST() 185 for (unsigned Idx = 1, Size = all_zero_c.size(); Idx < Size; ++Idx) { in TEST() local 186 hash_code code = hash_combine_range(&all_zero_c[0], &all_zero_c[0] + Idx); in TEST() 188 I = code_to_size.insert(std::make_pair(code, Idx)).first; in TEST() 189 EXPECT_EQ(Idx, I->second); in TEST() 193 for (unsigned Idx = 1, Size = all_one_int.size(); Idx < Size; ++Idx) { in TEST() local 194 hash_code code = hash_combine_range(&all_one_int[0], &all_one_int[0] + Idx); in TEST() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ArrayRecycler.h | 45 T *pop(unsigned Idx) { in pop() argument 46 if (Idx >= Bucket.size()) in pop() 48 FreeList *Entry = Bucket[Idx]; in pop() 51 Bucket[Idx] = Entry->Next; in pop() 56 void push(unsigned Idx, T *Ptr) { in push() argument 59 if (Idx >= Bucket.size()) in push() 60 Bucket.resize(size_t(Idx) + 1); in push() 61 Entry->Next = Bucket[Idx]; in push() 62 Bucket[Idx] = Entry; in push()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64A57FPLoadBalancing.cpp | 143 void scanInstruction(MachineInstr *MI, unsigned Idx, 146 void maybeKillChain(MachineOperand &MO, unsigned Idx, 204 Chain(MachineInstr *MI, unsigned Idx, Color C) in Chain() argument 206 StartInstIdx(Idx), LastInstIdx(Idx), KillInstIdx(0), in Chain() 213 void add(MachineInstr *MI, unsigned Idx, Color C) { in add() argument 215 LastInstIdx = Idx; in add() 234 void setKill(MachineInstr *MI, unsigned Idx, bool Immutable) { in setKill() argument 236 KillInstIdx = Idx; in setKill() 340 unsigned Idx = 0; in runOnBasicBlock() local 342 scanInstruction(&MI, Idx++, ActiveChains, AllChains); in runOnBasicBlock() [all …]
|
D | AArch64ExpandPseudoInsts.cpp | 147 for (unsigned Idx = 0; Idx < 4; ++Idx) in tryToreplicateChunks() local 148 ++Counts[getChunk(UImm, Idx)]; in tryToreplicateChunks() 246 static uint64_t updateImm(uint64_t Imm, unsigned Idx, bool Clear) { in updateImm() argument 251 Imm &= ~(Mask << (Idx * 16)); in updateImm() 254 Imm |= Mask << (Idx * 16); in updateImm() 283 for (int Idx = 0; Idx < 4; ++Idx) { in trySequenceOfOnes() local 284 int64_t Chunk = getChunk(UImm, Idx); in trySequenceOfOnes() 289 StartIdx = Idx; in trySequenceOfOnes() 291 EndIdx = Idx; in trySequenceOfOnes() 317 for (int Idx = 0; Idx < 4; ++Idx) { in trySequenceOfOnes() local [all …]
|
/external/llvm/lib/ExecutionEngine/OProfileJIT/ |
D | OProfileWrapper.cpp | 143 ssize_t Idx = 0; in checkForOProfileProcEntry() local 150 while (Idx < NumRead-1 && ExeName[Idx] != 0) { in checkForOProfileProcEntry() 151 Idx++; in checkForOProfileProcEntry() 155 Idx--; in checkForOProfileProcEntry() 158 while (Idx > 0) { in checkForOProfileProcEntry() 159 if (ExeName[Idx] == '/') { in checkForOProfileProcEntry() 160 BaseName = ExeName + Idx + 1; in checkForOProfileProcEntry() 163 Idx--; in checkForOProfileProcEntry()
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.cpp | 65 int Idx = CostTableLookup(NEONFltDblTbl, ISD, LT.second); in getCastInstrCost() local 66 if (Idx != -1) in getCastInstrCost() 67 return LT.first * NEONFltDblTbl[Idx].Cost; in getCastInstrCost() 156 int Idx = ConvertCostTableLookup(NEONVectorConversionTbl, ISD, in getCastInstrCost() local 158 if (Idx != -1) in getCastInstrCost() 159 return NEONVectorConversionTbl[Idx].Cost; in getCastInstrCost() 187 int Idx = ConvertCostTableLookup(NEONFloatConversionTbl, ISD, in getCastInstrCost() local 189 if (Idx != -1) in getCastInstrCost() 190 return NEONFloatConversionTbl[Idx].Cost; in getCastInstrCost() 219 int Idx = ConvertCostTableLookup(NEONIntegerConversionTbl, ISD, in getCastInstrCost() local [all …]
|
/external/clang/unittests/AST/ |
D | CommentParser.cpp | 94 size_t Idx, in GetChildAt() argument 99 if (Idx >= C->child_count()) in GetChildAt() 101 << "Idx out of range. Idx = " << Idx in GetChildAt() 104 Comment::child_iterator I = C->child_begin() + Idx; in GetChildAt() 119 size_t Idx, in HasTextAt() argument 122 ::testing::AssertionResult AR = GetChildAt(C, Idx, TC); in HasTextAt() 140 size_t Idx, in HasTextWithNewlineAt() argument 143 ::testing::AssertionResult AR = GetChildAt(C, Idx, TC); in HasTextWithNewlineAt() 162 size_t Idx, in HasBlockCommandAt() argument 166 ::testing::AssertionResult AR = GetChildAt(C, Idx, BCC); in HasBlockCommandAt() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | RegisterClassInfo.h | 134 unsigned getRegPressureSetLimit(unsigned Idx) const { in getRegPressureSetLimit() argument 135 if (!PSetLimits[Idx]) in getRegPressureSetLimit() 136 PSetLimits[Idx] = computePSetLimit(Idx); in getRegPressureSetLimit() 137 return PSetLimits[Idx]; in getRegPressureSetLimit() 141 unsigned computePSetLimit(unsigned Idx) const;
|