/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastSizeChecker.cpp | 50 CharUnits TypeSize, QualType ToPointeeTy) { 68 if (ArrayTy->getSize() == 1 && TypeSize > FlexSize) 69 TypeSize -= FlexSize; 81 CharUnits Left = RegionSize - TypeSize; 49 evenFlexibleArraySize(ASTContext &Ctx, CharUnits RegionSize, CharUnits TypeSize, QualType ToPointeeTy) argument
|
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | AddressSanitizer.cpp | 370 Value *Addr, uint32_t TypeSize, bool IsWrite, 373 Value *ShadowValue, uint32_t TypeSize); 599 static size_t TypeSizeToSizeIndex(uint32_t TypeSize) { argument 600 size_t Res = countTrailingZeros(TypeSize / 8); 757 uint32_t TypeSize = DL->getTypeStoreSizeInBits(OrigTy); local 759 assert((TypeSize % 8) == 0); 769 if ((TypeSize == 8 || TypeSize == 16 || TypeSize == 32 || TypeSize 817 createSlowPathCmp(IRBuilder< &IRB, Value *AddrLong, Value *ShadowValue, uint32_t TypeSize) argument 835 instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore, Value *Addr, uint32_t TypeSize, bool IsWrite, Value *SizeArgument, bool UseCalls) argument [all...] |
H A D | ThreadSanitizer.cpp | 556 uint32_t TypeSize = DL->getTypeStoreSizeInBits(OrigTy); local 557 if (TypeSize != 8 && TypeSize != 16 && 558 TypeSize != 32 && TypeSize != 64 && TypeSize != 128) { 563 size_t Idx = countTrailingZeros(TypeSize / 8);
|
H A D | MemorySanitizer.cpp | 493 unsigned TypeSizeToSizeIndex(unsigned TypeSize) { argument 494 if (TypeSize <= 8) return 0; 495 return Log2_32_Ceil(TypeSize / 8); 774 uint32_t TypeSize = MS.DL->getTypeSizeInBits(OrigTy); local 775 return IntegerType::get(*MS.C, TypeSize);
|
/external/clang/lib/AST/ |
H A D | RecordLayoutBuilder.cpp | 658 void LayoutWideBitField(uint64_t FieldSize, uint64_t TypeSize, 1352 uint64_t TypeSize, 1421 uint64_t TypeSize = FieldInfo.first; local 1484 FieldAlign = TypeSize; 1489 if (LastBitfieldTypeSize != TypeSize) { 1501 if (FieldSize > TypeSize) { 1502 LayoutWideBitField(FieldSize, TypeSize, FieldPacked, D); 1576 (FieldOffset & (FieldAlign-1)) + FieldSize > TypeSize)) { 1583 (UnpackedFieldOffset & (UnpackedFieldAlign-1)) + FieldSize > TypeSize)) 1614 // FIXME: I think FieldSize should be TypeSize her 1351 LayoutWideBitField(uint64_t FieldSize, uint64_t TypeSize, bool FieldPacked, const FieldDecl *D) argument 1698 CharUnits TypeSize = Context.getTypeSizeInChars(BTy); local [all...] |
/external/llvm/lib/Analysis/IPA/ |
H A D | InlineCost.cpp | 266 APInt TypeSize(IntPtrWidth, DL->getTypeAllocSize(GTI.getIndexedType())); 267 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; 1011 unsigned TypeSize = DL->getTypeSizeInBits(PTy->getElementType()); local 1014 unsigned NumStores = (TypeSize + PointerSize - 1) / PointerSize;
|
/external/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 2062 uint64_t TypeSize = TD->getTypeAllocSize(GTI.getIndexedType()); local 2064 ConstantOffset += CI->getSExtValue()*TypeSize; 2065 } else if (TypeSize) { // Scales of zero don't do anything. 2072 VariableScale = TypeSize;
|
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1305 unsigned TypeSize = DL->getTypeAllocSize(FieldTy); local 1307 TypeSize = DL->getStructLayout(ST)->getSizeInBytes(); 1310 ConstantInt::get(IntPtrTy, TypeSize), 1539 unsigned TypeSize = DL->getStructLayout(AllocSTy)->getSizeInBytes(); local 1540 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize);
|
/external/clang/lib/CodeGen/ |
H A D | CGException.cpp | 439 uint64_t TypeSize = getContext().getTypeSizeInChars(ThrowType).getQuantity(); local 444 llvm::ConstantInt::get(SizeTy, TypeSize),
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 645 uint64_t TypeSize = TD ? TD->getTypeAllocSize(IndexedTy) : 1; local 649 unsigned(countTrailingZeros(TypeSize) +
|
/external/clang/lib/Sema/ |
H A D | SemaChecking.cpp | 3534 size_t TypeSize = T->getSize().getZExtValue(); local 3535 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); 3540 if (TypeSize <= StrRef.size() && 3541 StrRef.substr(0, TypeSize).find('\0') == StringRef::npos) {
|
H A D | SemaDecl.cpp | 11682 uint64_t TypeSize = Context.getTypeSize(FieldTy); local 11683 if (Value.getZExtValue() > TypeSize) { 11689 << (unsigned)TypeSize; 11692 << (unsigned)Value.getZExtValue() << (unsigned)TypeSize; 11698 << (unsigned)TypeSize; 11701 << (unsigned)Value.getZExtValue() << (unsigned)TypeSize;
|
H A D | SemaExpr.cpp | 8250 unsigned TypeSize = Context.getTypeSize(VTy->getElementType()); local 8251 if (TypeSize == Context.getTypeSize(Context.CharTy)) 8253 else if (TypeSize == Context.getTypeSize(Context.ShortTy)) 8255 else if (TypeSize == Context.getTypeSize(Context.IntTy)) 8257 else if (TypeSize == Context.getTypeSize(Context.LongTy)) 8259 assert(TypeSize == Context.getTypeSize(Context.LongLongTy) &&
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 970 unsigned TypeSize = (size_t)TD.getTypeAllocSize(Ty); 973 unsigned MemToAlloc = std::max(1U, NumElements * TypeSize); 978 DEBUG(dbgs() << "Allocated Type: " << *Ty << " (" << TypeSize << " bytes) x "
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 2962 uint64_t TypeSize = DL.getTypeSizeInBits(Ty); local 2976 TypeSize > DL.getTypeSizeInBits(InnerTy))
|