| /NextBSD/contrib/llvm/tools/clang/include/clang/AST/ |
| HD | RecordLayout.h | 181 uint64_t getFieldOffset(unsigned FieldNo) const { in getFieldOffset() argument 182 assert (FieldNo < FieldCount && "Invalid Field No"); in getFieldOffset() 183 return FieldOffsets[FieldNo]; in getFieldOffset()
|
| /NextBSD/contrib/llvm/lib/Transforms/IPO/ |
| HD | GlobalOpt.cpp | 1147 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo, in GetHeapSROAValue() argument 1152 if (FieldNo >= FieldVals.size()) in GetHeapSROAValue() 1153 FieldVals.resize(FieldNo+1); in GetHeapSROAValue() 1157 if (Value *FieldVal = FieldVals[FieldNo]) in GetHeapSROAValue() 1165 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo, in GetHeapSROAValue() 1168 LI->getName()+".f"+Twine(FieldNo), LI); in GetHeapSROAValue() 1179 PHINode::Create(PointerType::get(ST->getElementType(FieldNo), AS), in GetHeapSROAValue() 1181 PN->getName()+".f"+Twine(FieldNo), PN); in GetHeapSROAValue() 1183 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo)); in GetHeapSROAValue() 1186 return FieldVals[FieldNo] = Result; in GetHeapSROAValue() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/CodeGen/ |
| HD | CGExprConstant.cpp | 369 unsigned FieldNo = 0; in Build() local 373 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build() 396 AppendField(*Field, Layout.getFieldOffset(FieldNo), EltInit); in Build() 400 AppendBitField(*Field, Layout.getFieldOffset(FieldNo), CI); in Build() 464 unsigned FieldNo = 0; in Build() local 468 FieldEnd = RD->field_end(); Field != FieldEnd; ++Field, ++FieldNo) { in Build() 479 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build() 486 AppendField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, EltInit); in Build() 489 AppendBitField(*Field, Layout.getFieldOffset(FieldNo) + OffsetBits, in Build() 1110 unsigned FieldNo = -1; in Build() local [all …]
|
| HD | CGRecordLayoutBuilder.cpp | 767 unsigned FieldNo = RL->getLLVMFieldNo(FD); in ComputeRecordLayout() local 768 assert(AST_RL.getFieldOffset(i) == SL->getElementOffsetInBits(FieldNo) && in ComputeRecordLayout()
|
| HD | CGDebugInfo.cpp | 1715 unsigned FieldNo = 0; in CreateTypeDefinition() local 1717 Field = Field->getNextIvar(), ++FieldNo) { in CreateTypeDefinition() 1757 FieldOffset = RL.getFieldOffset(FieldNo); in CreateTypeDefinition()
|
| /NextBSD/contrib/llvm/tools/clang/lib/AST/ |
| HD | RecordLayoutBuilder.cpp | 143 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 …]
|
| /NextBSD/contrib/llvm/lib/IR/ |
| HD | DataLayout.cpp | 735 unsigned FieldNo = cast<ConstantInt>(Indices[CurIDX])->getZExtValue(); in getIndexedOffset() local 741 Result += Layout->getElementOffset(FieldNo); in getIndexedOffset() 744 Ty = STy->getElementType(FieldNo); in getIndexedOffset()
|
| HD | ConstantFold.cpp | 474 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo, in getFoldedOffsetOf() argument 478 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf() 480 FieldNo, DestTy); in getFoldedOffsetOf() 502 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf() 506 FieldNo, DestTy); in getFoldedOffsetOf() 517 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo); in getFoldedOffsetOf()
|
| HD | Constants.cpp | 1972 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf() argument 1974 FieldNo)); in getOffsetOf() 1977 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf() argument 1982 FieldNo in getOffsetOf()
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | BasicAliasAnalysis.cpp | 342 unsigned FieldNo = cast<ConstantInt>(Index)->getZExtValue(); in DecomposeGEPExpression() local 343 if (FieldNo == 0) continue; in DecomposeGEPExpression() 345 BaseOffs += DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
|
| HD | ScalarEvolution.cpp | 233 Constant *FieldNo; in print() local 234 if (U->isOffsetOf(CTy, FieldNo)) { in print() 236 FieldNo->printAsOperand(OS, false); in print() 431 bool SCEVUnknown::isOffsetOf(Type *&CTy, Constant *&FieldNo) const { in isOffsetOf() 445 FieldNo = CE->getOperand(2); in isOffsetOf() 2951 unsigned FieldNo = Index->getZExtValue(); in getGEPExpr() local 2952 const SCEV *FieldOffset = getOffsetOfExpr(IntPtrTy, STy, FieldNo); in getGEPExpr() 3209 unsigned FieldNo) { in getOffsetOfExpr() argument 3216 FieldNo)); in getOffsetOfExpr()
|
| /NextBSD/contrib/llvm/include/llvm/IR/ |
| HD | Constants.h | 885 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo); 890 static Constant *getOffsetOf(Type *Ty, Constant *FieldNo);
|
| /NextBSD/contrib/llvm/include/llvm/Analysis/ |
| HD | ScalarEvolution.h | 686 const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);
|
| HD | ScalarEvolutionExpressions.h | 438 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
|