Searched refs:FieldNo (Results 1 - 15 of 15) sorted by relevance

/external/clang/include/clang/AST/
H A DRecordLayout.h181 uint64_t getFieldOffset(unsigned FieldNo) const {
182 assert (FieldNo < FieldCount && "Invalid Field No");
183 return FieldOffsets[FieldNo];
/external/clang/lib/CodeGen/
H A DCGExprConstant.cpp353 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 DCGRecordLayoutBuilder.cpp720 unsigned FieldNo = RL->getLLVMFieldNo(FD); local
721 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) &&
H A DCGDebugInfo.cpp1718 unsigned FieldNo = 0; local
1720 Field = Field->getNextIvar(), ++FieldNo) {
1760 FieldOffset = RL.getFieldOffset(FieldNo);
/external/clang/lib/AST/
H A DRecordLayoutBuilder.cpp97 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 DGlobalOpt.cpp1149 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 DDataLayout.cpp744 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue();
750 Result += Layout->getElementOffset(FieldNo);
753 Ty = STy->getElementType(FieldNo);
H A DConstantFold.cpp456 /// 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 DConstants.cpp1853 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 DBasicAliasAnalysis.cpp355 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); local
356 if (FieldNo == 0) continue;
358 BaseOffs += DL->getStructLayout(STy)->getElementOffset(FieldNo);
H A DScalarEvolutionExpander.cpp484 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 DScalarEvolution.cpp229 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 DConstants.h827 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
832 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
/external/llvm/include/llvm/Analysis/
H A DScalarEvolution.h661 const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);
H A DScalarEvolutionExpressions.h516 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;

Completed in 189 milliseconds