Home
last modified time | relevance | path

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

12

/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-7.0/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1149 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, in GetHeapSROAValue() argument
1154 if (FieldNo >= FieldVals.size()) in GetHeapSROAValue()
1155 FieldVals.resize(FieldNo+1); in GetHeapSROAValue()
1159 if (Value *FieldVal = FieldVals[FieldNo]) in GetHeapSROAValue()
1167 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo, in GetHeapSROAValue()
1170 LI->getName()+".f"+Twine(FieldNo), LI); in GetHeapSROAValue()
1181 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS), in GetHeapSROAValue()
1183 PN->getName()+".f"+Twine(FieldNo), PN); in GetHeapSROAValue()
1185 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); in GetHeapSROAValue()
1188 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()
/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-7.0/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp269 unsigned FieldNo = 0; member in __anon10607dc00511::Spill
284 assert(FieldNo && "Accessing unassigned field"); in fieldIndex()
285 return FieldNo; in fieldIndex()
288 assert(!FieldNo && "Reassigning field number"); in setFieldIndex()
289 FieldNo = FieldNumber; in setFieldIndex()
/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/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/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DDataLayout.cpp790 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue(); in getIndexedOffsetInType() local
796 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
DConstantFold.cpp470 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, in getFoldedOffsetOf() argument
473 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf()
475 FieldNo, DestTy); in getFoldedOffsetOf()
497 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf()
501 FieldNo, DestTy); in getFoldedOffsetOf()
512 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo); in getFoldedOffsetOf()
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp490 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local
491 if (FieldNo == 0) in DecomposeGEPExpression()
495 DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstants.h918 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
923 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
/external/llvm/include/llvm/IR/
DConstants.h868 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
873 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);

12