/external/clang/include/clang/AST/ |
H A D | RecordLayout.h | 181 uint64_t getFieldOffset(unsigned FieldNo) const { 182 assert (FieldNo < FieldCount && "Invalid Field No"); 183 return FieldOffsets[FieldNo];
|
/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 353 unsigned FieldNo = 0; local 357 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { 380 AppendField(*Field, Layout.getFieldOffset(FieldNo), EltInit); 383 AppendBitField(*Field, Layout.getFieldOffset(FieldNo), 443 unsigned FieldNo = 0; local 447 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { 458 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); 465 AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, EltInit); 468 AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, 1300 unsigned FieldNo local [all...] |
H A D | CGRecordLayoutBuilder.cpp | 720 unsigned FieldNo = RL->getLLVMFieldNo(FD); local 721 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) &&
|
H A D | CGDebugInfo.cpp | 1718 unsigned FieldNo = 0; local 1720 Field = Field->getNextIvar(), ++FieldNo) { 1760 FieldOffset = RL.getFieldOffset(FieldNo);
|
/external/clang/lib/AST/ |
H A D | RecordLayoutBuilder.cpp | 97 getFieldOffset(const ASTRecordLayout &Layout, unsigned FieldNo) const { 98 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo); 257 unsigned FieldNo = 0; local 259 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { 263 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); 305 unsigned FieldNo = 0; local 307 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { 311 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); 370 unsigned FieldNo = 0; local 372 I != E; ++I, ++FieldNo) { 474 unsigned FieldNo = 0; local 3046 uint64_t FieldNo = 0; local [all...] |
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1149 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, argument 1154 if (FieldNo >= FieldVals.size()) 1155 FieldVals.resize(FieldNo+1); 1159 if (Value *FieldVal = FieldVals[FieldNo]) 1167 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo, 1170 LI->getName()+".f"+Twine(FieldNo), LI); 1180 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS), 1182 PN->getName()+".f"+Twine(FieldNo), PN); 1184 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); 1189 return FieldVals[FieldNo] 1219 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue(); local 1419 unsigned FieldNo = PHIsToRewrite.back().second; local [all...] |
/external/llvm/lib/IR/ |
H A D | DataLayout.cpp | 744 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); 750 Result += Layout->getElementOffset(FieldNo); 753 Ty = STy->getElementType(FieldNo);
|
H A D | ConstantFold.cpp | 456 /// on Ty and FieldNo, with any known factors factored out. If Folded is false, 460 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, argument 464 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, 466 FieldNo, DestTy); 488 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, 492 FieldNo, DestTy); 503 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo);
|
H A D | Constants.cpp | 1853 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { argument 1855 FieldNo)); 1858 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { argument 1859 // offsetof is implemented as: (i64) gep (Ty*)null, 0, FieldNo 1863 FieldNo
|
/external/llvm/lib/Analysis/ |
H A D | BasicAliasAnalysis.cpp | 355 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); local 356 if (FieldNo == 0) continue; 358 BaseOffs += DL->getStructLayout(STy)->getElementOffset(FieldNo);
|
H A D | ScalarEvolutionExpander.cpp | 484 Constant *FieldNo; local 485 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) { 486 GepIndices.push_back(FieldNo); 488 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue());
|
H A D | ScalarEvolution.cpp | 229 Constant *FieldNo; local 230 if (U->isOffsetOf(CTy, FieldNo)) { 232 FieldNo->printAsOperand(OS, false); 427 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const { 441 FieldNo = CE->getOperand(2); 2712 unsigned FieldNo) { 2718 DL->getStructLayout(STy)->getElementOffset(FieldNo)); 2721 Constant *C = ConstantExpr::getOffsetOf(STy, FieldNo); 3299 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); 3300 const SCEV *FieldOffset = getOffsetOfExpr(IntPtrTy, STy, FieldNo); [all...] |
/external/llvm/include/llvm/IR/ |
H A D | Constants.h | 827 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo); 832 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
|
/external/llvm/include/llvm/Analysis/ |
H A D | ScalarEvolution.h | 661 const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);
|
H A D | ScalarEvolutionExpressions.h | 516 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
|