Searched defs:FieldNo (Results 1 - 9 of 9) sorted by relevance

/external/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp751 unsigned FieldNo = RL->getLLVMFieldNo(FD); local
752 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) &&
H A DCGExprConstant.cpp362 unsigned FieldNo = 0; local
366 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) {
389 AppendField(*Field, Layout.getFieldOffset(FieldNo), EltInit);
393 AppendBitField(*Field, Layout.getFieldOffset(FieldNo), CI);
457 unsigned FieldNo = 0; local
461 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) {
472 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo);
479 AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, EltInit);
482 AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits,
H A DCGDebugInfo.cpp1733 unsigned FieldNo = 0; local
1735 Field = Field->getNextIvar(), ++FieldNo) {
1775 FieldOffset = RL.getFieldOffset(FieldNo);
/external/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp353 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); local
354 if (FieldNo == 0) continue;
356 BaseOffs += DL.getStructLayout(STy)->getElementOffset(FieldNo);
H A DScalarEvolution.cpp233 Constant *FieldNo; local
234 if (U->isOffsetOf(CTy, FieldNo)) {
236 FieldNo->printAsOperand(OS, false);
431 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const {
445 FieldNo = CE->getOperand(2);
3144 unsigned FieldNo) {
3151 FieldNo));
3709 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue();
3710 const SCEV *FieldOffset = getOffsetOfExpr(IntPtrTy, STy, FieldNo);
/external/llvm/lib/IR/
H A DConstantFold.cpp470 /// on Ty and FieldNo, with any known factors factored out. If Folded is false,
474 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, argument
478 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false,
480 FieldNo, DestTy);
502 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo,
506 FieldNo, DestTy);
517 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo);
H A DConstants.cpp1947 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { argument
1949 FieldNo));
1952 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { argument
1953 // offsetof is implemented as: (i64) gep (Ty*)null, 0, FieldNo
1957 FieldNo
/external/clang/lib/AST/
H A DRecordLayoutBuilder.cpp143 getFieldOffset(const ASTRecordLayout &Layout, unsigned FieldNo) const {
144 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo);
302 unsigned FieldNo = 0; local
304 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) {
308 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo);
349 unsigned FieldNo = 0; local
351 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) {
355 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo);
414 unsigned FieldNo = 0; local
416 I != E; ++I, ++FieldNo) {
518 unsigned FieldNo = 0; local
3134 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);
1181 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS),
1183 PN->getName()+".f"+Twine(FieldNo), PN);
1185 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo));
1188 return FieldVals[FieldNo]
1218 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue(); local
1418 unsigned FieldNo = PHIsToRewrite.back().second; local
[all...]

Completed in 262 milliseconds