/external/llvm/lib/VMCore/ |
H A D | DebugLoc.cpp | 164 int &Idx = ScopeRecordIdx[Scope]; local 165 if (Idx) return Idx; 169 return Idx = ExistingIdx; 179 Idx = ScopeRecords.size()+1; 180 ScopeRecords.push_back(DebugRecVH(Scope, this, Idx)); 181 return Idx; 187 int &Idx = ScopeInlinedAtIdx[std::make_pair(Scope, IA)]; local 188 if (Idx) return Idx; [all...] |
H A D | Attributes.cpp | 247 /// returned. Attributes for the result are denoted with Idx = 0. 249 Attributes AttrListPtr::getAttributes(unsigned Idx) const { 253 for (unsigned i = 0, e = Attrs.size(); i != e && Attrs[i].Index <= Idx; ++i) 254 if (Attrs[i].Index == Idx) 272 AttrListPtr AttrListPtr::addAttr(unsigned Idx, Attributes Attrs) const { argument 273 Attributes OldAttrs = getAttributes(Idx); 289 NewAttrList.push_back(AttributeWithIndex::get(Idx, Attrs)); 294 for (; i != e && OldAttrList[i].Index < Idx; ++i) 298 if (i != e && OldAttrList[i].Index == Idx) { 303 NewAttrList.push_back(AttributeWithIndex::get(Idx, Attr 313 removeAttr(unsigned Idx, Attributes Attrs) const argument [all...] |
/external/clang/lib/Serialization/ |
H A D | ASTReaderStmt.cpp | 33 unsigned &Idx; member in class:clang::ASTStmtReader 73 const ASTReader::RecordData &Record, unsigned &Idx) 74 : Reader(Reader), F(F), DeclsCursor(Cursor), Record(Record), Idx(Idx) { } 101 SourceLocation TemplateKWLoc = ReadSourceLocation(Record, Idx); 103 ArgInfo.setLAngleLoc(ReadSourceLocation(Record, Idx)); 104 ArgInfo.setRAngleLoc(ReadSourceLocation(Record, Idx)); 107 Reader.ReadTemplateArgumentLoc(F, Record, Idx)); 112 assert(Idx == NumStmtFields && "Incorrect statement field count"); 117 S->setSemiLoc(ReadSourceLocation(Record, Idx)); 71 ASTStmtReader(ASTReader &Reader, ModuleFile &F, llvm::BitstreamCursor &Cursor, const ASTReader::RecordData &Record, unsigned &Idx) argument 1583 unsigned Idx; local [all...] |
H A D | ASTReaderDecl.cpp | 45 unsigned &Idx; member in class:clang::ASTDeclReader 199 const RecordData &Record, unsigned &Idx) 201 RawLocation(RawLocation), Record(Record), Idx(Idx), 309 GetTypeSourceInfo(Record, Idx); 312 DD->DeclInfo = GetTypeSourceInfo(Record, Idx); 324 if (Record[Idx++]) 343 DeclContextIDForTemplateParmDecl = ReadDeclID(Record, Idx); 344 LexicalDeclContextIDForTemplateParmDecl = ReadDeclID(Record, Idx); 347 DeclContext *SemaDC = ReadDeclAs<DeclContext>(Record, Idx); 196 ASTDeclReader(ASTReader &Reader, ModuleFile &F, llvm::BitstreamCursor &Cursor, DeclID thisDeclID, unsigned RawLocation, const RecordData &Record, unsigned &Idx) argument 1069 ReadCXXDefinitionData( struct CXXRecordDecl::DefinitionData &Data, const RecordData &Record, unsigned &Idx) argument 1614 ReadAttributes(ModuleFile &F, AttrVec &Attrs, const RecordData &Record, unsigned &Idx) argument 1910 unsigned Idx = 0; local 2167 unsigned Idx = 0; local 2456 unsigned Idx = 0; local [all...] |
H A D | ASTReader.cpp | 801 unsigned Idx = 0; local 806 for (int I = 0, N = Record[Idx++]; I != N; ++I) { 808 unsigned FilenameLen = Record[Idx++]; 809 std::string Filename(&Record[Idx], &Record[Idx] + FilenameLen); 810 Idx += FilenameLen; 817 while (Idx < Record.size()) { 818 int FID = Record[Idx++]; 824 unsigned NumEntries = Record[Idx++]; 829 unsigned FileOffset = Record[Idx 1806 unsigned Idx = 0, N = Record.size(); local 1891 unsigned Idx = 0; local 3336 unsigned Idx = 0; local 3685 unsigned Idx = 0; local 3738 unsigned Idx = 0; local 3815 unsigned Idx = 3; local 3884 unsigned Idx = 6; local 3916 unsigned Idx = 0; local 3926 unsigned Idx = 0; local 3966 unsigned Idx = 0; local 3980 unsigned Idx = 0; local 4023 unsigned Idx = 0; local 4031 unsigned Idx = 0; local 4038 unsigned Idx = 0; local 4048 unsigned Idx = 0; local 4054 unsigned Idx = 0; local 4063 unsigned Idx = 0; local 4081 unsigned Idx = 0; local 4091 unsigned Idx = 0; local 4102 unsigned Idx = 0; local 4116 unsigned Idx = 0; local 4133 unsigned Idx = 0; local 4166 unsigned &Idx; member in class:clang::TypeLocReader 4174 ReadDeclAs(const ASTReader::RecordData &Record, unsigned &Idx) argument 4179 TypeLocReader(ASTReader &Reader, ModuleFile &F, const ASTReader::RecordData &Record, unsigned &Idx) argument 4397 GetTypeSourceInfo(ModuleFile &F, const RecordData &Record, unsigned &Idx) argument [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | PackedVector.h | 30 static T getValue(const llvm::BitVector &Bits, unsigned Idx) { argument 33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); 37 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) { argument 40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); 47 static T getValue(const llvm::BitVector &Bits, unsigned Idx) { argument 50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); 51 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) 56 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) { argument 59 Bits.set((Idx << (BitNum-1)) + BitNum-1); 63 Bits[(Idx << (BitNu 83 const unsigned Idx; member in class:llvm::PackedVector::reference 121 operator [](unsigned Idx) argument [all...] |
H A D | BitVector.h | 47 reference(BitVector &b, unsigned Idx) { argument 48 WordRef = &b.Bits[Idx / BITWORD_SIZE]; 49 BitPos = Idx % BITWORD_SIZE; 235 BitVector &set(unsigned Idx) { argument 236 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE); 245 BitVector &reset(unsigned Idx) { argument 246 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE)); 257 BitVector &flip(unsigned Idx) { argument 263 operator [](unsigned Idx) argument [all...] |
H A D | SparseBitVector.h | 66 explicit SparseBitVectorElement(unsigned Idx) { argument 67 ElementIndex = Idx; 85 // Return the bits that make up word Idx in our element. 86 BitWord word(unsigned Idx) const { 87 assert (Idx < BITWORDS_PER_ELEMENT); 88 return Bits[Idx]; 102 void set(unsigned Idx) { 103 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE); 106 bool test_and_set (unsigned Idx) { [all...] |
H A D | SmallBitVector.h | 63 reference(SmallBitVector &b, unsigned Idx) : TheVector(b), BitPos(Idx) {} argument 295 SmallBitVector &set(unsigned Idx) { argument 297 setSmallBits(getSmallBits() | (uintptr_t(1) << Idx)); 299 getPointer()->set(Idx); 311 SmallBitVector &reset(unsigned Idx) { argument 313 setSmallBits(getSmallBits() & ~(uintptr_t(1) << Idx)); 315 getPointer()->reset(Idx); 327 SmallBitVector &flip(unsigned Idx) { argument 329 setSmallBits(getSmallBits() ^ (uintptr_t(1) << Idx)); 341 operator [](unsigned Idx) argument [all...] |
H A D | SparseSet.h | 196 /// @param Idx A valid index to find. 199 iterator findIndex(unsigned Idx) { argument 200 assert(Idx < Universe && "Key out of range"); 205 for (unsigned i = Sparse[Idx], e = size(); i < e; i += Stride) { 208 if (Idx == FoundIdx) 247 unsigned Idx = ValIndexOf(Val); 248 iterator I = findIndex(Idx); 251 Sparse[Idx] = size();
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMMCTargetDesc.cpp | 42 unsigned Idx = 0; local 47 Idx = 4; 51 Idx = 6; 56 if (Idx) { 57 unsigned SubVer = TT[Idx]; 59 if (Len >= Idx+2 && TT[Idx+1] == 'm') { 66 } else if (Len >= Idx+3 && TT[Idx+1] == 'e'&& TT[Idx [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | ArrayBoundChecker.cpp | 47 DefinedOrUnknownSVal Idx = cast<DefinedOrUnknownSVal>(ER->getIndex()); 51 if (Idx.isZeroConstant()) 61 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true); 62 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false);
|
H A D | ReturnPointerRangeChecker.cpp | 49 DefinedOrUnknownSVal Idx = cast<DefinedOrUnknownSVal>(ER->getIndex()); 52 if (Idx.isZeroConstant()) 61 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true); 62 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false);
|
/external/llvm/unittests/ADT/ |
H A D | SCCIteratorTest.cpp | 27 static void ValidateIndex(unsigned Idx) { argument 28 assert(Idx < N && "Invalid node index!"); 54 void AddNode(unsigned Idx) { 55 ValidateIndex(Idx); 56 Elements |= 1U << Idx; 60 void DeleteNode(unsigned Idx) { 61 ValidateIndex(Idx); 62 Elements &= ~(1U << Idx); 66 bool count(unsigned Idx) { 67 ValidateIndex(Idx); [all...] |
/external/llvm/lib/ExecutionEngine/OProfileJIT/ |
H A D | OProfileWrapper.cpp | 143 ssize_t Idx = 0; local 146 while (Idx < NumRead-1 && ExeName[Idx] != 0) { 147 Idx++; 151 Idx--; 154 while (Idx > 0) { 155 if (ExeName[Idx] == '/') { 156 BaseName = ExeName + Idx + 1; 159 Idx--;
|
/external/llvm/utils/TableGen/ |
H A D | CodeGenSchedule.h | 114 const CodeGenSchedClass &getSchedClass(unsigned Idx) { argument 115 assert(Idx < SchedClasses.size() && "bad SchedClass index"); 116 return SchedClasses[Idx]; 123 unsigned Idx = SchedClassIdxMap.lookup(ItinDef->getName()); local 124 assert(Idx <= NumItineraryClasses && "bad ItinClass index"); 125 return Idx;
|
/external/llvm/include/llvm/ |
H A D | Attributes.h | 282 static AttributeWithIndex get(unsigned Idx, Attributes Attrs) { argument 284 P.Index = Idx; 318 AttrListPtr addAttr(unsigned Idx, Attributes Attrs) const; 323 AttrListPtr removeAttr(unsigned Idx, Attributes Attrs) const; 330 Attributes getParamAttributes(unsigned Idx) const { 331 assert (Idx && Idx != ~0U && "Invalid parameter index!"); 332 return getAttributes(Idx); 348 bool paramHasAttr(unsigned Idx, Attributes Attr) const { argument 349 return getAttributes(Idx) [all...] |
H A D | User.h | 76 template <int Idx, typename U> static Use &OpFrom(const U *that) { 77 return Idx < 0 78 ? OperandTraits<U>::op_end(const_cast<U*>(that))[Idx] 79 : OperandTraits<U>::op_begin(const_cast<U*>(that))[Idx]; 81 template <int Idx> Use &Op() { 82 return OpFrom<Idx>(this); 84 template <int Idx> const Use &Op() const { 85 return OpFrom<Idx>(this);
|
/external/llvm/lib/CodeGen/ |
H A D | SplitKit.cpp | 299 bool SplitAnalysis::isOriginalEndpoint(SlotIndex Idx) const { 303 LiveInterval::const_iterator I = Orig.find(Idx); 305 // Range containing Idx should begin at Idx. 306 if (I != Orig.end() && I->start <= Idx) 307 return I->start == Idx; 309 // Range does not contain Idx, previous must end at Idx. 310 return I != Orig.begin() && (--I)->end == Idx; 374 SlotIndex Idx) { 372 defValue(unsigned RegIdx, const VNInfo *ParentVNI, SlotIndex Idx) argument 471 selectIntv(unsigned Idx) argument 474 DEBUG(dbgs() << " selectIntv " << OpenIdx << " -> " << Idx << '\\n'); local 478 enterIntvBefore(SlotIndex Idx) argument 495 enterIntvAfter(SlotIndex Idx) argument 543 leaveIntvAfter(SlotIndex Idx) argument 574 leaveIntvBefore(SlotIndex Idx) argument 985 SlotIndex Idx = LIS.getInstructionIndex(MI); local 1203 SlotIndex Idx = leaveIntvAtTop(*MBB); local 1217 SlotIndex Idx = enterIntvAtEnd(*MBB); local 1247 SlotIndex Idx; local 1270 SlotIndex Idx = enterIntvAfter(EnterAfter); local 1323 SlotIndex Idx = leaveIntvAfter(BI.LastInstr); local 1329 SlotIndex Idx = leaveIntvBefore(LSP); local 1409 SlotIndex Idx = enterIntvBefore(std::min(LSP, BI.FirstInstr)); local 1425 SlotIndex Idx = enterIntvAfter(EnterAfter); local [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | Thumb2RegisterInfo.cpp | 46 unsigned Idx = ConstantPool->getConstantPoolIndex(C, 4); local 50 .addConstantPoolIndex(Idx).addImm((int64_t)ARMCC::AL).addReg(0)
|
/external/llvm/lib/Target/X86/ |
H A D | X86MachineFunctionInfo.h | 124 void setVarArgsFrameIndex(int Idx) { VarArgsFrameIndex = Idx; } argument 127 void setRegSaveFrameIndex(int Idx) { RegSaveFrameIndex = Idx; } argument
|
/external/clang/test/PCH/ |
H A D | exprs.c | 78 double get_from_double_array(unsigned Idx) { return double_array[Idx]; } argument 81 float get_from_designated(unsigned Idx) { argument
|
/external/llvm/include/llvm/CodeGen/ |
H A D | MachineJumpTableInfo.h | 105 void RemoveJumpTable(unsigned Idx) { argument 106 JumpTables[Idx].MBBs.clear(); 115 bool ReplaceMBBInJumpTable(unsigned Idx, MachineBasicBlock *Old,
|
H A D | LiveInterval.h | 324 const LiveRange *getLiveRangeContaining(SlotIndex Idx) const { 325 const_iterator I = FindLiveRangeContaining(Idx); 331 LiveRange *getLiveRangeContaining(SlotIndex Idx) { 332 iterator I = FindLiveRangeContaining(Idx); 336 /// getVNInfoAt - Return the VNInfo that is live at Idx, or NULL. 337 VNInfo *getVNInfoAt(SlotIndex Idx) const { 338 const_iterator I = FindLiveRangeContaining(Idx); 343 /// necessarilly including Idx, or NULL. Use this to find the reaching def 345 VNInfo *getVNInfoBefore(SlotIndex Idx) const { 346 const_iterator I = FindLiveRangeContaining(Idx [all...] |
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonRemoveSZExtArgs.cpp | 50 unsigned Idx = 1; local 52 ++AI, ++Idx) { 53 if (F.paramHasAttr(Idx, Attribute::SExt)) {
|