/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/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() 1181 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS), in GetHeapSROAValue() 1183 PN->getName()+".f"+Twine(FieldNo), PN); in GetHeapSROAValue() 1185 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); in GetHeapSROAValue() 1188 return FieldVals[FieldNo] = Result; in GetHeapSROAValue() [all …]
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 143 getFieldOffset(const ASTRecordLayout &Layout, unsigned FieldNo) const { in getFieldOffset() 144 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo); in getFieldOffset() 302 unsigned FieldNo = 0; in CanPlaceBaseSubobjectAtOffset() local 304 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { in CanPlaceBaseSubobjectAtOffset() 308 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in CanPlaceBaseSubobjectAtOffset() 349 unsigned FieldNo = 0; in UpdateEmptyBaseSubobjects() local 351 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { in UpdateEmptyBaseSubobjects() 355 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in UpdateEmptyBaseSubobjects() 414 unsigned FieldNo = 0; in CanPlaceFieldSubobjectAtOffset() local 416 I != E; ++I, ++FieldNo) { in CanPlaceFieldSubobjectAtOffset() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGExprConstant.cpp | 362 unsigned FieldNo = 0; in Build() local 366 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build() 389 AppendField(*Field, Layout.getFieldOffset(FieldNo), EltInit); in Build() 393 AppendBitField(*Field, Layout.getFieldOffset(FieldNo), CI); in Build() 457 unsigned FieldNo = 0; in Build() local 461 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build() 472 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build() 479 AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, EltInit); in Build() 482 AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, in Build()
|
D | CGRecordLayoutBuilder.cpp | 751 unsigned FieldNo = RL->getLLVMFieldNo(FD); in ComputeRecordLayout() local 752 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) && in ComputeRecordLayout()
|
D | CGDebugInfo.cpp | 1733 unsigned FieldNo = 0; in CreateTypeDefinition() local 1735 Field = Field->getNextIvar(), ++FieldNo) { in CreateTypeDefinition() 1775 FieldOffset = RL.getFieldOffset(FieldNo); in CreateTypeDefinition()
|
/external/llvm/lib/IR/ |
D | DataLayout.cpp | 735 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); in getIndexedOffset() local 741 Result += Layout->getElementOffset(FieldNo); in getIndexedOffset() 744 Ty = STy->getElementType(FieldNo); in getIndexedOffset()
|
D | ConstantFold.cpp | 474 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, in getFoldedOffsetOf() argument 478 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf() 480 FieldNo, DestTy); in getFoldedOffsetOf() 502 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf() 506 FieldNo, DestTy); in getFoldedOffsetOf() 517 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo); in getFoldedOffsetOf()
|
D | Constants.cpp | 1947 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf() argument 1949 FieldNo)); in getOffsetOf() 1952 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf() argument 1957 FieldNo in getOffsetOf()
|
/external/llvm/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 353 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local 354 if (FieldNo == 0) continue; in DecomposeGEPExpression() 356 BaseOffs += DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
|
D | ScalarEvolution.cpp | 233 Constant *FieldNo; in print() local 234 if (U->isOffsetOf(CTy, FieldNo)) { in print() 236 FieldNo->printAsOperand(OS, false); in print() 431 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const { in isOffsetOf() 445 FieldNo = CE->getOperand(2); in isOffsetOf() 3144 unsigned FieldNo) { in getOffsetOfExpr() argument 3151 FieldNo)); in getOffsetOfExpr() 3709 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in createNodeForGEP() local 3710 const SCEV *FieldOffset = getOffsetOfExpr(IntPtrTy, STy, FieldNo); in createNodeForGEP()
|
/external/llvm/include/llvm/IR/ |
D | Constants.h | 853 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo); 858 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 677 const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);
|
D | ScalarEvolutionExpressions.h | 516 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
|