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

/external/swiftshader/third_party/LLVM/lib/Target/
H A DTargetData.cpp546 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); local
552 Result += Layout->getElementOffset(FieldNo);
555 Ty = STy->getElementType(FieldNo);
/external/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp767 unsigned FieldNo = RL->getLLVMFieldNo(FD); local
768 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) &&
H A DCGExprConstant.cpp369 unsigned FieldNo = 0; local
380 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) {
403 AppendField(*Field, Layout.getFieldOffset(FieldNo), EltInit);
407 AppendBitField(*Field, Layout.getFieldOffset(FieldNo), CI);
471 unsigned FieldNo = 0; local
475 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) {
486 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo);
493 AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, EltInit);
496 AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits,
1137 unsigned FieldNo local
[all...]
H A DCGDebugInfo.cpp1961 unsigned FieldNo = 0; local
1963 Field = Field->getNextIvar(), ++FieldNo) {
2003 FieldOffset = RL.getFieldOffset(FieldNo);
/external/llvm/lib/IR/
H A DConstantFold.cpp468 /// Return a ConstantExpr with type DestTy for offsetof on Ty and FieldNo, with
472 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, argument
476 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false,
478 FieldNo, DestTy);
500 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo,
504 FieldNo, DestTy);
515 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo);
H A DConstants.cpp1837 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { argument
1839 FieldNo));
1842 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { argument
1843 // offsetof is implemented as: (i64) gep (Ty*)null, 0, FieldNo
1847 FieldNo
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DBasicAliasAnalysis.cpp323 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); local
324 if (FieldNo == 0) continue;
326 BaseOffs += TD->getStructLayout(STy)->getElementOffset(FieldNo);
H A DScalarEvolutionExpander.cpp459 Constant *FieldNo; local
460 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) {
461 GepIndices.push_back(FieldNo);
463 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue());
H A DScalarEvolution.cpp211 Constant *FieldNo; local
212 if (U->isOffsetOf(CTy, FieldNo)) {
214 WriteAsOperand(OS, FieldNo, false);
399 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const {
413 FieldNo = CE->getOperand(2);
2600 unsigned FieldNo) {
2606 TD->getStructLayout(STy)->getElementOffset(FieldNo));
2608 Constant *C = ConstantExpr::getOffsetOf(STy, FieldNo);
2617 Constant *FieldNo) {
2618 Constant *C = ConstantExpr::getOffsetOf(CTy, FieldNo);
[all...]
/external/swiftshader/third_party/LLVM/lib/VMCore/
H A DConstantFold.cpp453 /// on Ty and FieldNo, with any known factors factored out. If Folded is false,
457 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, argument
461 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false,
463 FieldNo, DestTy);
485 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo,
489 FieldNo, DestTy);
500 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo);
H A DConstants.cpp1543 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { argument
1545 FieldNo));
1548 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { argument
1549 // offsetof is implemented as: (i64) gep (Ty*)null, 0, FieldNo
1553 FieldNo
/external/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp418 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); local
419 if (FieldNo == 0)
423 DL.getStructLayout(STy)->getElementOffset(FieldNo);
H A DScalarEvolution.cpp228 Constant *FieldNo; local
229 if (U->isOffsetOf(CTy, FieldNo)) {
231 FieldNo->printAsOperand(OS, false);
424 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const {
438 FieldNo = CE->getOperand(2);
2995 unsigned FieldNo = Index->getZExtValue();
2996 const SCEV *FieldOffset = getOffsetOfExpr(IntPtrTy, STy, FieldNo);
3246 unsigned FieldNo) {
3251 IntTy, getDataLayout().getStructLayout(STy)->getElementOffset(FieldNo));
/external/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp1106 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, argument
1111 if (FieldNo >= FieldVals.size())
1112 FieldVals.resize(FieldNo+1);
1116 if (Value *FieldVal = FieldVals[FieldNo])
1124 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo,
1127 LI->getName()+".f"+Twine(FieldNo), LI);
1138 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS),
1140 PN->getName()+".f"+Twine(FieldNo), PN);
1142 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo));
1145 return FieldVals[FieldNo]
1175 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue(); local
1376 unsigned FieldNo = PHIsToRewrite.back().second; local
[all...]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
H A DGlobalOpt.cpp1170 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, argument
1175 if (FieldNo >= FieldVals.size())
1176 FieldVals.resize(FieldNo+1);
1180 if (Value *FieldVal = FieldVals[FieldNo])
1188 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo,
1191 LI->getName()+".f"+Twine(FieldNo), LI);
1199 PHINode::Create(PointerType::getUnqual(ST->getElementType(FieldNo)),
1201 PN->getName()+".f"+Twine(FieldNo), PN);
1203 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo));
1209 return FieldVals[FieldNo]
1239 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue(); local
1438 unsigned FieldNo = PHIsToRewrite.back().second; local
[all...]
/external/clang/lib/AST/
H A DRecordLayoutBuilder.cpp142 getFieldOffset(const ASTRecordLayout &Layout, unsigned FieldNo) const {
143 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo);
301 unsigned FieldNo = 0; local
303 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) {
307 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo);
348 unsigned FieldNo = 0; local
350 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) {
354 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo);
413 unsigned FieldNo = 0; local
415 I != E; ++I, ++FieldNo) {
517 unsigned FieldNo = 0; local
3220 uint64_t FieldNo = 0; local
[all...]

Completed in 730 milliseconds