/external/clang/include/clang/AST/ |
CharUnits.h | 1 //===--- CharUnits.h - Character units for sizes and offsets ----*- C++ -*-===// 10 // This file defines the CharUnits class 23 /// CharUnits - This is an opaque type for sizes expressed in character units. 26 /// type, CharUnits protects you from accidentally combining operations on 38 class CharUnits { 45 explicit CharUnits(QuantityType C) : Quantity(C) {} 49 /// CharUnits - A default constructor. 50 CharUnits() : Quantity(0) {} 52 /// Zero - Construct a CharUnits quantity of zero. 53 static CharUnits Zero() [all...] |
RecordLayout.h | 17 #include "clang/AST/CharUnits.h" 39 CharUnits VBaseOffset; 52 VBaseInfo(CharUnits VBaseOffset, bool hasVtorDisp) : 61 CharUnits Size; 64 CharUnits DataSize; 67 CharUnits Alignment; 71 CharUnits RequiredAlignment; 83 CharUnits NonVirtualSize; 87 CharUnits NonVirtualAlignment; 92 CharUnits SizeOfLargestEmptySubobject [all...] |
BaseSubobject.h | 17 #include "clang/AST/CharUnits.h" 33 CharUnits BaseOffset; 37 BaseSubobject(const CXXRecordDecl *Base, CharUnits BaseOffset) 44 CharUnits getBaseOffset() const { return BaseOffset; } 59 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getEmptyKey())); 65 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getTombstoneKey())); 69 typedef std::pair<const clang::CXXRecordDecl *, clang::CharUnits> PairTy;
|
VTableBuilder.h | 56 static VTableComponent MakeVCallOffset(CharUnits Offset) { 60 static VTableComponent MakeVBaseOffset(CharUnits Offset) { 64 static VTableComponent MakeOffsetToTop(CharUnits Offset) { 106 CharUnits getVCallOffset() const { 112 CharUnits getVBaseOffset() const { 118 CharUnits getOffsetToTop() const { 175 VTableComponent(Kind ComponentKind, CharUnits Offset) { 194 CharUnits getOffset() const { 198 return CharUnits::fromQuantity(Value >> 3); 353 typedef llvm::DenseMap<ClassPairTy, CharUnits> [all...] |
VTTBuilder.h | 30 CharUnits BaseOffset; 34 VTTVTable(const CXXRecordDecl *Base, CharUnits BaseOffset, bool BaseIsVirtual) 44 CharUnits getBaseOffset() const {
|
/external/clang/lib/CodeGen/ |
CodeGenTypeCache.h | 17 #include "clang/AST/CharUnits.h" 69 CharUnits getIntSize() const { 70 return CharUnits::fromQuantity(IntSizeInBytes); 72 CharUnits getIntAlign() const { 73 return CharUnits::fromQuantity(IntAlignInBytes); 86 CharUnits getSizeSize() const { 87 return CharUnits::fromQuantity(SizeSizeInBytes); 89 CharUnits getSizeAlign() const { 90 return CharUnits::fromQuantity(SizeAlignInBytes); 92 CharUnits getPointerSize() const [all...] |
Address.h | 19 #include "clang/AST/CharUnits.h" 27 CharUnits Alignment; 29 Address(llvm::Value *pointer, CharUnits alignment) 35 static Address invalid() { return Address(nullptr, CharUnits()); } 67 CharUnits getAlignment() const { 77 ConstantAddress(llvm::Constant *pointer, CharUnits alignment) 81 return ConstantAddress(nullptr, CharUnits());
|
CGBlocks.h | 22 #include "clang/AST/CharUnits.h" 148 CharUnits ByrefAlignment; 149 CharUnits FieldOffset; 164 CharUnits::QuantityType Offset; 174 CharUnits getOffset() const { 176 return CharUnits::fromQuantity(Offset); 192 static Capture makeIndex(unsigned index, CharUnits offset) { 232 CharUnits BlockSize; 233 CharUnits BlockAlign; 234 CharUnits CXXThisOffset [all...] |
CGRecordLayoutBuilder.cpp | 79 CharUnits Offset; 86 MemberInfo(CharUnits Offset, InfoKind Kind, llvm::Type *Data, 89 MemberInfo(CharUnits Offset, InfoKind Kind, llvm::Type *Data, 99 MemberInfo StorageInfo(CharUnits Offset, llvm::Type *Data) { 127 llvm::Type *getByteArrayType(CharUnits NumBytes) { 130 return NumBytes == CharUnits::One() ? Type : 146 CharUnits bitsToCharUnits(uint64_t BitOffset) { 149 CharUnits getSize(llvm::Type *Type) { 150 return CharUnits::fromQuantity(DataLayout.getTypeAllocSize(Type)); 152 CharUnits getAlignment(llvm::Type *Type) [all...] |
CGCXXABI.cpp | 143 CharUnits offset) { 193 CharUnits CGCXXABI::GetArrayCookieSize(const CXXNewExpr *expr) { 195 return CharUnits::Zero(); 199 CharUnits CGCXXABI::getArrayCookieSizeImpl(QualType elementType) { 201 return CharUnits::Zero(); 236 llvm::Value *&allocPtr, CharUnits &cookieSize) { 244 cookieSize = CharUnits::Zero(); 257 CharUnits cookieSize) { 283 CharUnits CGCXXABI::getMemberPointerPathAdjustment(const APValue &MP) { 287 CharUnits ThisAdjustment = CharUnits::Zero() [all...] |
CGBuilder.h | 69 llvm::ConstantInt *getSize(CharUnits N) { 99 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, 103 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, 108 CharUnits Align, 113 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, 129 CharUnits Align, bool IsVolatile = false) { 158 return CreateAlignedLoad(getInt1Ty(), Addr, CharUnits::One(), Name); 164 return CreateAlignedStore(getInt1(Value), Addr, CharUnits::One()); 191 Address CreateStructGEP(Address Addr, unsigned Index, CharUnits Offset, 208 Address CreateConstArrayGEP(Address Addr, uint64_t Index, CharUnits EltSize [all...] |
CGRecordLayout.h | 13 #include "clang/AST/CharUnits.h" 82 CharUnits StorageOffset; 88 unsigned StorageSize, CharUnits StorageOffset) 102 CharUnits StorageOffset);
|
CGExprConstant.cpp | 42 CharUnits NextFieldOffsetInChars; 43 CharUnits LLVMStructAlignment; 58 NextFieldOffsetInChars(CharUnits::Zero()), 59 LLVMStructAlignment(CharUnits::One()) { } 64 void AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst); 69 void AppendPadding(CharUnits PadSize); 71 void AppendTailPadding(CharUnits RecordSize); 79 const CXXRecordDecl *VTableClass, CharUnits BaseOffset); 82 CharUnits getAlignment(const llvm::Constant *C) const { 83 if (Packed) return CharUnits::One() [all...] |
TargetInfo.cpp | 67 Builder.CreateAlignedStore(Value, Cell, CharUnits::One()); 193 CharUnits Align) { 224 CharUnits DirectSize, 225 CharUnits DirectAlign, 226 CharUnits SlotSize, 245 CharUnits FullDirectSize = DirectSize.RoundUpToAlignment(SlotSize); 276 std::pair<CharUnits, CharUnits> ValueInfo, 277 CharUnits SlotSizeAndAlign, 280 CharUnits DirectSize, DirectAlign [all...] |
CGCXXABI.h | 186 CharUnits offset); 217 CharUnits getMemberPointerPathAdjustment(const APValue &MP); 387 CharUnits VPtrOffset) = 0; 429 virtual std::vector<CharUnits> getVBPtrOffsets(const CXXRecordDecl *RD); 448 virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr); 481 llvm::Value *&AllocPtr, CharUnits &CookieSize); 490 virtual CharUnits getArrayCookieSizeImpl(QualType elementType); 502 CharUnits cookieSize);
|
CGCall.h | 153 CharUnits Alignment; 166 Alignment(Addr.isValid() ? Addr.getAlignment() : CharUnits::Zero()) {}
|
/external/clang/lib/AST/ |
RecordLayout.cpp | 31 ASTRecordLayout::ASTRecordLayout(const ASTContext &Ctx, CharUnits size, 32 CharUnits alignment, 33 CharUnits requiredAlignment, 34 CharUnits datasize, 48 CharUnits size, CharUnits alignment, 49 CharUnits requiredAlignment, 51 CharUnits vbptroffset, 52 CharUnits datasize, 55 CharUnits nonvirtualsize [all...] |
RecordLayoutBuilder.cpp | 73 llvm::DenseMap<const CXXRecordDecl *, CharUnits> BaseOffsets; 76 llvm::DenseMap<const CXXRecordDecl *, CharUnits> VirtualBaseOffsets; 86 bool getExternalNVBaseOffset(const CXXRecordDecl *RD, CharUnits &BaseOffset) { 94 bool getExternalVBaseOffset(const CXXRecordDecl *RD, CharUnits &BaseOffset) { 114 typedef llvm::DenseMap<CharUnits, ClassVectorTy> EmptyClassOffsetsMapTy; 119 CharUnits MaxEmptyClassOffset; 125 void AddSubobjectAtOffset(const CXXRecordDecl *RD, CharUnits Offset); 128 CharUnits Offset, bool PlacingEmptyBase); 132 CharUnits Offset); 133 void UpdateEmptyFieldSubobjects(const FieldDecl *FD, CharUnits Offset) [all...] |
VTableBuilder.cpp | 48 CharUnits NonVirtualOffset; 51 NonVirtualOffset(CharUnits::Zero()) { } 53 const CXXRecordDecl *VirtualBase, CharUnits NonVirtualOffset) 74 CharUnits Offset; 77 Offset(CharUnits::Zero()) { } 88 const CharUnits MostDerivedClassOffset; 102 typedef std::pair<const CXXMethodDecl *, CharUnits> MethodBaseOffsetPairTy; 115 CharUnits> SubobjectOffsetMapTy; 122 CharUnits OffsetInLayoutClass, 136 CharUnits MostDerivedClassOffset [all...] |
VTTBuilder.cpp | 35 LayoutVTT(BaseSubobject(MostDerivedClass, CharUnits::Zero()), 68 CharUnits BaseOffset = Base.getBaseOffset() + 105 CharUnits BaseOffset; 163 CharUnits BaseOffset =
|
ExternalASTSource.cpp | 69 llvm::DenseMap<const CXXRecordDecl *, CharUnits> &BaseOffsets, 70 llvm::DenseMap<const CXXRecordDecl *, CharUnits> &VirtualBaseOffsets) {
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
PaddingChecker.cpp | 16 #include "clang/AST/CharUnits.h" 82 CharUnits BaselinePad = calculateBaselinePad(RD, ASTContext, RL); 85 CharUnits OptimalPad = calculateOptimalPad(RD, ASTContext, RL); 87 CharUnits DiffPad = PadMultiplier * (BaselinePad - OptimalPad); 166 static CharUnits calculateBaselinePad(const RecordDecl *RD, 169 CharUnits PaddingSum; 170 CharUnits Offset = ASTContext.toCharUnitsFromBits(RL.getFieldOffset(0)); 176 CharUnits FieldSize = ASTContext.getTypeSizeInChars(FD->getType()); 178 CharUnits FieldOffset = ASTContext.toCharUnitsFromBits(FieldOffsetBits); 202 static CharUnits calculateOptimalPad(const RecordDecl *RD [all...] |
CastSizeChecker.cpp | 15 #include "clang/AST/CharUnits.h" 49 static bool evenFlexibleArraySize(ASTContext &Ctx, CharUnits RegionSize, 50 CharUnits TypeSize, QualType ToPointeeTy) { 64 CharUnits FlexSize; 81 CharUnits Left = RegionSize - TypeSize; 121 CharUnits regionSize = CharUnits::fromQuantity(extentInt->getSExtValue()); 122 CharUnits typeSize = C.getASTContext().getTypeSizeInChars(ToPointeeTy);
|
/external/clang/include/clang/Frontend/ |
LayoutOverrideSource.h | 54 llvm::DenseMap<const CXXRecordDecl *, CharUnits> &BaseOffsets, 56 CharUnits> &VirtualBaseOffsets) override;
|
/external/clang/include/clang/CodeGen/ |
CGFunctionInfo.h | 20 #include "clang/AST/CharUnits.h" 130 static ABIArgInfo getIndirect(CharUnits Alignment, bool ByVal = true, 141 static ABIArgInfo getIndirectInReg(CharUnits Alignment, bool ByVal = true, 215 CharUnits getIndirectAlign() const { 217 return CharUnits::fromQuantity(IndirectAlign); 219 void setIndirectAlign(CharUnits IA) { 468 CharUnits getArgStructAlignment() const { 469 return CharUnits::fromQuantity(ArgStructAlign); 471 void setArgStruct(llvm::StructType *Ty, CharUnits Align) {
|