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