Home
last modified time | relevance | path

Searched refs:FieldNo (Results 1 – 25 of 39) 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/clang/include/clang/AST/
DRecordLayout.h177 uint64_t getFieldOffset(unsigned FieldNo) const { in getFieldOffset() argument
178 return FieldOffsets[FieldNo]; in getFieldOffset()
/external/llvm-project/clang/include/clang/AST/
DRecordLayout.h200 uint64_t getFieldOffset(unsigned FieldNo) const { in getFieldOffset() argument
201 return FieldOffsets[FieldNo]; in getFieldOffset()
/external/llvm-project/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1182 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, in GetHeapSROAValue() argument
1187 if (FieldNo >= FieldVals.size()) in GetHeapSROAValue()
1188 FieldVals.resize(FieldNo+1); in GetHeapSROAValue()
1192 if (Value *FieldVal = FieldVals[FieldNo]) in GetHeapSROAValue()
1200 Value *V = GetHeapSROAValue(LI->getOperand(0), FieldNo, in GetHeapSROAValue()
1203 LI->getName() + ".f" + Twine(FieldNo), LI); in GetHeapSROAValue()
1214 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS), in GetHeapSROAValue()
1216 PN->getName()+".f"+Twine(FieldNo), PN); in GetHeapSROAValue()
1218 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); in GetHeapSROAValue()
1221 return FieldVals[FieldNo] = Result; in GetHeapSROAValue()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1166 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, in GetHeapSROAValue() argument
1171 if (FieldNo >= FieldVals.size()) in GetHeapSROAValue()
1172 FieldVals.resize(FieldNo+1); in GetHeapSROAValue()
1176 if (Value *FieldVal = FieldVals[FieldNo]) in GetHeapSROAValue()
1184 Value *V = GetHeapSROAValue(LI->getOperand(0), FieldNo, in GetHeapSROAValue()
1187 LI->getName() + ".f" + Twine(FieldNo), LI); in GetHeapSROAValue()
1198 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS), in GetHeapSROAValue()
1200 PN->getName()+".f"+Twine(FieldNo), PN); in GetHeapSROAValue()
1202 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); in GetHeapSROAValue()
1205 return FieldVals[FieldNo] = Result; in GetHeapSROAValue()
[all …]
/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/llvm-project/clang/lib/AST/
DRecordLayoutBuilder.cpp143 getFieldOffset(const ASTRecordLayout &Layout, unsigned FieldNo) const { in getFieldOffset()
144 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo); in getFieldOffset()
302 unsigned FieldNo = 0; in CanPlaceBaseSubobjectAtOffset() local
304 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { in CanPlaceBaseSubobjectAtOffset()
308 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in CanPlaceBaseSubobjectAtOffset()
349 unsigned FieldNo = 0; in UpdateEmptyBaseSubobjects() local
351 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { in UpdateEmptyBaseSubobjects()
355 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in UpdateEmptyBaseSubobjects()
414 unsigned FieldNo = 0; in CanPlaceFieldSubobjectAtOffset() local
416 I != E; ++I, ++FieldNo) { in CanPlaceFieldSubobjectAtOffset()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DCGExprConstant.cpp677 unsigned FieldNo = -1; in Build() local
688 ++FieldNo; in Build()
714 Layout.getFieldOffset(FieldNo)); in Build()
734 if (!AppendField(Field, Layout.getFieldOffset(FieldNo), EltInit, in Build()
744 if (!AppendBitField(Field, Layout.getFieldOffset(FieldNo), CI, in Build()
811 unsigned FieldNo = 0; in Build() local
816 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build()
827 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build()
835 if (!AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, in Build()
844 if (!AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, in Build()
DCGRecordLayoutBuilder.cpp957 unsigned FieldNo = RL->getLLVMFieldNo(FD); in ComputeRecordLayout() local
958 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) && in ComputeRecordLayout()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp292 unsigned FieldNo = InvalidFieldIndex; member in __anon0137a4710511::Spill
307 assert(FieldNo != InvalidFieldIndex && "Accessing unassigned field"); in fieldIndex()
308 return FieldNo; in fieldIndex()
311 assert(FieldNo == InvalidFieldIndex && "Reassigning field number"); in setFieldIndex()
312 FieldNo = FieldNumber; in setFieldIndex()
/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-10.0/llvm/lib/IR/
DDataLayout.cpp817 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue(); in getIndexedOffsetInType() local
823 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
DConstantFold.cpp472 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, in getFoldedOffsetOf() argument
475 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf()
477 FieldNo, DestTy); in getFoldedOffsetOf()
499 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf()
503 FieldNo, DestTy); in getFoldedOffsetOf()
514 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo); in getFoldedOffsetOf()
/external/llvm-project/llvm/lib/IR/
DDataLayout.cpp884 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue(); in getIndexedOffsetInType() local
890 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
DConstantFold.cpp474 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, in getFoldedOffsetOf() argument
477 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf()
479 FieldNo, DestTy); in getFoldedOffsetOf()
501 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf()
505 FieldNo, DestTy); in getFoldedOffsetOf()
516 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo); in getFoldedOffsetOf()
/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/llvm/include/llvm/IR/
DConstants.h868 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
873 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstants.h922 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
927 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
/external/llvm-project/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp505 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local
506 if (FieldNo == 0) in DecomposeGEPExpression()
509 Decomposed.Offset += DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
/external/llvm-project/llvm/include/llvm/IR/
DConstants.h969 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
974 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp546 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local
547 if (FieldNo == 0) in DecomposeGEPExpression()
551 DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h425 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;

12