/external/clang/include/clang/AST/ |
H A D | RecordLayout.h | 177 uint64_t getFieldOffset(unsigned FieldNo) const { 178 return FieldOffsets[FieldNo];
|
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1106 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 D | GlobalOpt.cpp | 1170 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/CodeGen/ |
H A D | CGExprConstant.cpp | 369 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 D | CGRecordLayoutBuilder.cpp | 767 unsigned FieldNo = RL->getLLVMFieldNo(FD); local 768 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) &&
|
H A D | CGDebugInfo.cpp | 1961 unsigned FieldNo = 0; local 1963 Field = Field->getNextIvar(), ++FieldNo) { 2003 FieldOffset = RL.getFieldOffset(FieldNo);
|
/external/swiftshader/third_party/LLVM/lib/Target/ |
H A D | TargetData.cpp | 546 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); local 552 Result += Layout->getElementOffset(FieldNo); 555 Ty = STy->getElementType(FieldNo);
|
/external/clang/lib/AST/ |
H A D | RecordLayoutBuilder.cpp | 142 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...] |
/external/llvm/lib/IR/ |
H A D | DataLayout.cpp | 740 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue(); 746 Result += Layout->getElementOffset(FieldNo);
|
H A D | ConstantFold.cpp | 468 /// 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 D | Constants.cpp | 1837 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/include/llvm/Analysis/ |
H A D | ScalarEvolution.h | 628 const SCEV *getOffsetOfExpr(StructType *STy, unsigned FieldNo); 632 const SCEV *getOffsetOfExpr(Type *CTy, Constant *FieldNo);
|
H A D | ScalarEvolutionExpressions.h | 446 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
H A D | BasicAliasAnalysis.cpp | 323 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); local 324 if (FieldNo == 0) continue; 326 BaseOffs += TD->getStructLayout(STy)->getElementOffset(FieldNo);
|
H A D | ScalarEvolutionExpander.cpp | 459 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 D | ScalarEvolution.cpp | 211 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/llvm/lib/Analysis/ |
H A D | BasicAliasAnalysis.cpp | 418 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); local 419 if (FieldNo == 0) 423 DL.getStructLayout(STy)->getElementOffset(FieldNo);
|
H A D | ScalarEvolution.cpp | 228 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/include/llvm/IR/ |
H A D | Constants.h | 868 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo); 873 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
H A D | Constants.h | 619 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo); 624 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
|
/external/llvm/include/llvm/Analysis/ |
H A D | ScalarEvolutionExpressions.h | 425 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
|
H A D | ScalarEvolution.h | 1265 const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
H A D | Constants.cpp | 1543 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
|
H A D | ConstantFold.cpp | 453 /// 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);
|