| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | RecordLayout.h | 200 uint64_t getFieldOffset(unsigned FieldNo) const { in getFieldOffset() argument 201 return FieldOffsets[FieldNo]; in getFieldOffset()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | RecordLayoutBuilder.cpp | 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() 349 unsigned FieldNo = 0; in UpdateEmptyBaseSubobjects() local 351 E = Info->Class->field_end(); I != E; ++I, ++FieldNo) { in UpdateEmptyBaseSubobjects() 414 unsigned FieldNo = 0; in CanPlaceFieldSubobjectAtOffset() local 416 I != E; ++I, ++FieldNo) { in CanPlaceFieldSubobjectAtOffset() 525 unsigned FieldNo = 0; in UpdateEmptyFieldSubobjects() local 527 I != E; ++I, ++FieldNo) { in UpdateEmptyFieldSubobjects() 3602 uint64_t FieldNo = 0; in DumpRecordLayout() local [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 688 unsigned FieldNo = -1; in Build() local 699 ++FieldNo; in Build() 733 Layout.getFieldOffset(FieldNo)); in Build() 753 if (!AppendField(Field, Layout.getFieldOffset(FieldNo), EltInit, in Build() 763 if (!AppendBitField(Field, Layout.getFieldOffset(FieldNo), CI, in Build() 830 unsigned FieldNo = 0; in Build() local 835 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build() 846 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build() 854 if (!AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, in Build() 863 if (!AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, in Build()
|
| H A D | CGRecordLayoutBuilder.cpp | 962 unsigned FieldNo = RL->getLLVMFieldNo(FD); in ComputeRecordLayout() local 963 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) && in ComputeRecordLayout()
|
| H A D | CGDebugInfo.cpp | 2878 unsigned FieldNo = 0; in CreateTypeDefinition() local 2880 Field = Field->getNextIvar(), ++FieldNo) { in CreateTypeDefinition() 2920 FieldOffset = RL.getFieldOffset(FieldNo); in CreateTypeDefinition()
|
| H A D | CGExprScalar.cpp | 5059 unsigned FieldNo = cast<llvm::ConstantInt>(Index)->getZExtValue(); in EmitGEPOffsetInBytes() local 5061 IntPtrTy, DL.getStructLayout(STy)->getElementOffset(FieldNo)); in EmitGEPOffsetInBytes()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 890 unsigned FieldNo = cast<ConstantInt>(Idx)->getZExtValue(); in getIndexedOffsetInType() local 896 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
|
| H A D | Constants.cpp | 2402 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf() argument 2404 FieldNo)); in getOffsetOf() 2407 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf() argument 2412 FieldNo in getOffsetOf()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1007 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo); 1012 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | BasicAliasAnalysis.cpp | 607 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local 608 if (FieldNo == 0) in DecomposeGEPExpression() 611 Decomposed.Offset += DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
|
| H A D | ScalarEvolution.cpp | 373 Constant *FieldNo; in print() local 374 if (U->isOffsetOf(CTy, FieldNo)) { in print() 376 FieldNo->printAsOperand(OS, false); in print() 583 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const { in isOffsetOf() 596 FieldNo = CE->getOperand(2); in isOffsetOf() 3699 unsigned FieldNo = Index->getZExtValue(); in getGEPExpr() local 3700 const SCEV *FieldOffset = getOffsetOfExpr(IntIdxTy, STy, FieldNo); in getGEPExpr() 4253 unsigned FieldNo) { in getOffsetOfExpr() argument 4258 IntTy, getDataLayout().getStructLayout(STy)->getElementOffset(FieldNo)); in getOffsetOfExpr()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BTFDebug.cpp | 666 int FieldNo = 0; in visitStructType() local 670 processDeclAnnotations(Elem->getAnnotations(), TypeId, FieldNo); in visitStructType() 671 FieldNo++; in visitStructType()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | ScalarEvolutionExpressions.h | 603 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
|
| H A D | ScalarEvolution.h | 666 const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);
|