Home
last modified time | relevance | path

Searched refs:FieldNo (Results 1 – 24 of 24) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1106 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, in GetHeapSROAValue() argument
1111 if (FieldNo >= FieldVals.size()) in GetHeapSROAValue()
1112 FieldVals.resize(FieldNo+1); in GetHeapSROAValue()
1116 if (Value *FieldVal = FieldVals[FieldNo]) in GetHeapSROAValue()
1124 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo, in GetHeapSROAValue()
1127 LI->getName()+".f"+Twine(FieldNo), LI); in GetHeapSROAValue()
1138 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS), in GetHeapSROAValue()
1140 PN->getName()+".f"+Twine(FieldNo), PN); in GetHeapSROAValue()
1142 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); in GetHeapSROAValue()
1145 return FieldVals[FieldNo] = Result; in GetHeapSROAValue()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DGlobalOpt.cpp1170 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, in GetHeapSROAValue() argument
1175 if (FieldNo >= FieldVals.size()) in GetHeapSROAValue()
1176 FieldVals.resize(FieldNo+1); in GetHeapSROAValue()
1180 if (Value *FieldVal = FieldVals[FieldNo]) in GetHeapSROAValue()
1188 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo, in GetHeapSROAValue()
1191 LI->getName()+".f"+Twine(FieldNo), LI); in GetHeapSROAValue()
1199 PHINode::Create(PointerType::getUnqual(ST->getElementType(FieldNo)), in GetHeapSROAValue()
1201 PN->getName()+".f"+Twine(FieldNo), PN); in GetHeapSROAValue()
1203 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); in GetHeapSROAValue()
1209 return FieldVals[FieldNo] = Result; in GetHeapSROAValue()
[all …]
/external/clang/include/clang/AST/
DRecordLayout.h177 uint64_t getFieldOffset(unsigned FieldNo) const { in getFieldOffset() argument
178 return FieldOffsets[FieldNo]; in getFieldOffset()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp369 unsigned FieldNo = 0; in Build() local
380 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build()
403 AppendField(*Field, Layout.getFieldOffset(FieldNo), EltInit); in Build()
407 AppendBitField(*Field, Layout.getFieldOffset(FieldNo), CI); in Build()
471 unsigned FieldNo = 0; in Build() local
475 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build()
486 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build()
493 AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, EltInit); in Build()
496 AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, in Build()
1137 unsigned FieldNo = -1; in Build() local
[all …]
DCGRecordLayoutBuilder.cpp767 unsigned FieldNo = RL->getLLVMFieldNo(FD); in ComputeRecordLayout() local
768 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) && in ComputeRecordLayout()
DCGDebugInfo.cpp1961 unsigned FieldNo = 0; in CreateTypeDefinition() local
1963 Field = Field->getNextIvar(), ++FieldNo) { in CreateTypeDefinition()
2003 FieldOffset = RL.getFieldOffset(FieldNo); in CreateTypeDefinition()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp142 getFieldOffset(const ASTRecordLayout &Layout, unsigned FieldNo) const { in getFieldOffset()
143 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo); in getFieldOffset()
301 unsigned FieldNo = 0; in CanPlaceBaseSubobjectAtOffset() local
303 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { in CanPlaceBaseSubobjectAtOffset()
307 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in CanPlaceBaseSubobjectAtOffset()
348 unsigned FieldNo = 0; in UpdateEmptyBaseSubobjects() local
350 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { in UpdateEmptyBaseSubobjects()
354 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in UpdateEmptyBaseSubobjects()
413 unsigned FieldNo = 0; in CanPlaceFieldSubobjectAtOffset() local
415 I != E; ++I, ++FieldNo) { in CanPlaceFieldSubobjectAtOffset()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DTargetData.cpp546 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); in getIndexedOffset() local
552 Result += Layout->getElementOffset(FieldNo); in getIndexedOffset()
555 Ty = STy->getElementType(FieldNo); in getIndexedOffset()
/external/llvm/lib/IR/
DDataLayout.cpp740 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue(); in getIndexedOffsetInType() local
746 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
DConstantFold.cpp472 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, in getFoldedOffsetOf() argument
476 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf()
478 FieldNo, DestTy); in getFoldedOffsetOf()
500 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf()
504 FieldNo, DestTy); in getFoldedOffsetOf()
515 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo); in getFoldedOffsetOf()
DConstants.cpp1837 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf() argument
1839 FieldNo)); in getOffsetOf()
1842 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf() argument
1847 FieldNo in getOffsetOf()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DScalarEvolution.h628 const SCEV *getOffsetOfExpr(StructType *STy, unsigned FieldNo);
632 const SCEV *getOffsetOfExpr(Type *CTy, Constant *FieldNo);
DScalarEvolutionExpressions.h446 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
/external/swiftshader/third_party/LLVM/lib/Analysis/
DBasicAliasAnalysis.cpp323 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local
324 if (FieldNo == 0) continue; in DecomposeGEPExpression()
326 BaseOffs += TD->getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
DScalarEvolutionExpander.cpp459 Constant *FieldNo; in expandAddToGEP() local
460 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) { in expandAddToGEP()
461 GepIndices.push_back(FieldNo); in expandAddToGEP()
463 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue()); in expandAddToGEP()
DScalarEvolution.cpp211 Constant *FieldNo; in print() local
212 if (U->isOffsetOf(CTy, FieldNo)) { in print()
214 WriteAsOperand(OS, FieldNo, false); in print()
399 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const { in isOffsetOf()
413 FieldNo = CE->getOperand(2); in isOffsetOf()
2600 unsigned FieldNo) { in getOffsetOfExpr() argument
2606 TD->getStructLayout(STy)->getElementOffset(FieldNo)); in getOffsetOfExpr()
2608 Constant *C = ConstantExpr::getOffsetOf(STy, FieldNo); in getOffsetOfExpr()
2617 Constant *FieldNo) { in getOffsetOfExpr() argument
2618 Constant *C = ConstantExpr::getOffsetOf(CTy, FieldNo); in getOffsetOfExpr()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DConstants.h619 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
624 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp457 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, in getFoldedOffsetOf() argument
461 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf()
463 FieldNo, DestTy); in getFoldedOffsetOf()
485 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf()
489 FieldNo, DestTy); in getFoldedOffsetOf()
500 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo); in getFoldedOffsetOf()
DConstants.cpp1543 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf() argument
1545 FieldNo)); in getOffsetOf()
1548 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf() argument
1553 FieldNo in getOffsetOf()
/external/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp418 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local
419 if (FieldNo == 0) in DecomposeGEPExpression()
423 DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
DScalarEvolution.cpp228 Constant *FieldNo; in print() local
229 if (U->isOffsetOf(CTy, FieldNo)) { in print()
231 FieldNo->printAsOperand(OS, false); in print()
424 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const { in isOffsetOf()
438 FieldNo = CE->getOperand(2); in isOffsetOf()
2995 unsigned FieldNo = Index->getZExtValue(); in getGEPExpr() local
2996 const SCEV *FieldOffset = getOffsetOfExpr(IntPtrTy, STy, FieldNo); in getGEPExpr()
3246 unsigned FieldNo) { in getOffsetOfExpr() argument
3251 IntTy, getDataLayout().getStructLayout(STy)->getElementOffset(FieldNo)); in getOffsetOfExpr()
/external/llvm/include/llvm/IR/
DConstants.h868 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
873 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h425 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
DScalarEvolution.h1265 const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);