Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRecordLayout.h201 uint64_t getFieldOffset(unsigned FieldNo) const { in getFieldOffset() argument
202 return FieldOffsets[FieldNo]; in getFieldOffset()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp601 bool DoZeroInitPadding(const ASTRecordLayout &Layout, unsigned FieldNo,
720 unsigned FieldNo = -1; in Build() local
735 ++FieldNo; in Build()
753 !DoZeroInitPadding(Layout, FieldNo, *Field, AllowOverwrite, SizeSoFar, in Build()
768 !DoZeroInitPadding(Layout, FieldNo, *Field, AllowOverwrite, SizeSoFar, in Build()
779 Layout.getFieldOffset(FieldNo)); in Build()
803 if (!AppendField(Field, Layout.getFieldOffset(FieldNo), EltInit, in Build()
812 if (!AppendBitField(Field, Layout.getFieldOffset(FieldNo), EltInit, in Build()
882 unsigned FieldNo = 0; in Build() local
890 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build()
[all …]
H A DCGRecordLayoutBuilder.cpp1163 unsigned FieldNo = RL->getLLVMFieldNo(FD); in ComputeRecordLayout() local
1164 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) && in ComputeRecordLayout()
H A DCGExpr.cpp1145 int64_t FieldNo = -1; in getGEPIndicesToField() local
1152 FieldNo = Layout.getLLVMFieldNo(FD); in getGEPIndicesToField()
1154 Indices.emplace_back(CGF.Builder.getInt32(FieldNo)); in getGEPIndicesToField()
1162 FieldNo = 0; in getGEPIndicesToField()
1163 Indices.emplace_back(CGF.Builder.getInt32(FieldNo)); in getGEPIndicesToField()
4356 unsigned FieldNo = 0; in getFieldOffsetInBits() local
4360 Offset += Layout.getFieldOffset(FieldNo); in getFieldOffsetInBits()
4367 Offset += Layout.getFieldOffset(FieldNo); in getFieldOffsetInBits()
4372 ++FieldNo; in getFieldOffsetInBits()
H A DCGBuiltin.cpp1019 uint32_t FieldNo = 0; in GetFieldOffset() local
1024 Offset += Layout.getFieldOffset(FieldNo); in GetFieldOffset()
1030 Offset += Layout.getFieldOffset(FieldNo); in GetFieldOffset()
1036 ++FieldNo; in GetFieldOffset()
H A DCGDebugInfo.cpp3388 unsigned FieldNo = 0; in CreateTypeDefinition() local
3390 Field = Field->getNextIvar(), ++FieldNo) { in CreateTypeDefinition()
3429 FieldOffset = RL.getFieldOffset(FieldNo); in CreateTypeDefinition()
H A DCGExprScalar.cpp6030 unsigned FieldNo = cast<llvm::ConstantInt>(Index)->getZExtValue(); in EmitGEPOffsetInBytes() local
6032 IntPtrTy, DL.getStructLayout(STy)->getElementOffset(FieldNo)); in EmitGEPOffsetInBytes()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp766 int FieldNo = 0; in visitStructType() local
772 processDeclAnnotations(Elem->getAnnotations(), TypeId, FieldNo); in visitStructType()
778 processDeclAnnotations(Elem->getAnnotations(), TypeId, FieldNo); in visitStructType()
784 FieldNo++; in visitStructType()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp903 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue(); in getIndexedOffsetInType() local
909 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp670 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local
671 if (FieldNo == 0) in DecomposeGEPExpression()
674 Decomposed.Offset += DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
H A DScalarEvolution.cpp3757 unsigned FieldNo = Index->getZExtValue(); in getGEPExpr() local
3758 const SCEV *FieldOffset = getOffsetOfExpr(IntIdxTy, STy, FieldNo); in getGEPExpr()
4389 unsigned FieldNo) { in getOffsetOfExpr() argument
4396 return getConstant(IntTy, SL->getElementOffset(FieldNo)); in getOffsetOfExpr()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DScalarEvolution.h688 unsigned FieldNo);