/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
BasicValueFactory.h | 79 const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned); 102 /// but with the bitwidth and signedness of 'To'.
|
/external/clang/lib/StaticAnalyzer/Core/ |
BasicValueFactory.cpp | 95 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, 97 llvm::APSInt V(BitWidth, isUnsigned);
|
/external/clang/test/Analysis/ |
null-deref-ps.c | 218 // for 'x' should have a bitwidth of 8. 222 // x against 0 (with the same bitwidth).
|
/external/llvm/lib/Target/AArch64/InstPrinter/ |
AArch64InstPrinter.h | 108 template <int BitWidth> 111 printAMIndexedWB(MI, OpNum, BitWidth / 8, O);
|
/external/llvm/lib/Target/WebAssembly/ |
WebAssemblyISelLowering.cpp | 153 unsigned BitWidth = NextPowerOf2(VT.getSizeInBits() - 1); 154 if (BitWidth > 1 && BitWidth < 8) BitWidth = 8; 156 if (BitWidth > 64) { 159 BitWidth = 32; 160 assert(BitWidth >= Log2_32_Ceil(VT.getSizeInBits()) && 164 MVT Result = MVT::getIntegerVT(BitWidth);
|
/frameworks/compile/slang/ |
slang.h | 109 void createTarget(uint32_t BitWidth); 226 Slang(uint32_t BitWidth, clang::DiagnosticsEngine *DiagEngine,
|
/external/clang/include/clang/AST/ |
TemplateBase.h | 86 // BitWidth > 64. The memory may be shared between multiple 88 unsigned BitWidth : 31; 285 if (Integer.BitWidth <= 64) 286 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned); 288 unsigned NumWords = APInt::getNumWords(Integer.BitWidth); 289 return APSInt(APInt(Integer.BitWidth, makeArrayRef(Integer.pVal, NumWords)),
|
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 656 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 657 GV.IntVal = GV.IntVal.trunc(BitWidth); 662 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 663 GV.IntVal = GV.IntVal.zext(BitWidth); 668 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 669 GV.IntVal = GV.IntVal.sext(BitWidth); 717 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 719 GV.IntVal = APIntOps::RoundFloatToAPInt(GV.FloatVal, BitWidth); 721 GV.IntVal = APIntOps::RoundDoubleToAPInt(GV.DoubleVal, BitWidth); 726 (void)apf.convertToInteger(&v, BitWidth, [all...] |
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 558 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 559 GV.IntVal = GV.IntVal.trunc(BitWidth); 564 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 565 GV.IntVal = GV.IntVal.zext(BitWidth); 570 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 571 GV.IntVal = GV.IntVal.sext(BitWidth); 619 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); 621 GV.IntVal = APIntOps::RoundFloatToAPInt(GV.FloatVal, BitWidth); 623 GV.IntVal = APIntOps::RoundDoubleToAPInt(GV.DoubleVal, BitWidth); 628 (void)apf.convertToInteger(&v, BitWidth, [all...] |
/external/llvm/utils/TableGen/ |
FixedLenDecoderEmitter.cpp | 100 unsigned Indentation, unsigned BitWidth, 331 unsigned BitWidth; 347 BitWidth(BW), Emitter(E) { 358 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth), 363 unsigned getBitWidth() const { return BitWidth; } 378 for (unsigned i = 0; i < BitWidth; ++i) { 498 assert(StartBit + NumBits - 1 < Owner->BitWidth); 694 unsigned BitWidth, 697 << BitWidth << "[] = {\n" [all...] |
/external/llvm/lib/IR/ |
DataLayout.cpp | 458 uint32_t BitWidth, bool ABIInfo, 465 Alignments[i].TypeBitWidth == BitWidth) 472 // the BitWidth requested. 473 if (Alignments[i].TypeBitWidth > BitWidth && (BestMatchIdx == -1 || 684 /// an integer type of the specified bitwidth. 685 unsigned DataLayout::getABIIntegerTypeAlignment(unsigned BitWidth) const { 686 return getAlignmentInfo(INTEGER_ALIGN, BitWidth, true, nullptr);
|
Type.cpp | 50 bool Type::isIntegerTy(unsigned Bitwidth) const { 51 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; 235 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); 236 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); 259 unsigned BitWidth = getBitWidth(); 260 return (BitWidth > 7) && isPowerOf2_32(BitWidth);
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCalls.cpp | 280 unsigned BitWidth = VT->getElementType()->getPrimitiveSizeInBits(); 281 assert((64 % BitWidth) == 0 && "Unexpected packed shift size"); 282 unsigned NumSubElts = 64 / BitWidth; 288 Count = Count.shl(BitWidth); 299 unsigned BitWidth = SVT->getPrimitiveSizeInBits(); 305 // Handle cases when Shift >= BitWidth. 306 if (Count.uge(BitWidth)) { 311 // If ArithmeticShift - clamp Shift to (BitWidth - 1). 312 Count = APInt(64, BitWidth - 1); 316 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); [all...] |
InstCombineShifts.cpp | 138 uint32_t BitWidth = Ty->getScalarSizeInBits(); 140 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && 141 CI->getLimitedValue(BitWidth) < BitWidth) { 755 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); 762 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
InstCombineCompares.cpp | 157 "KnownZero, KnownOne and Min, Max must have equal bitwidth."); 181 "Ty, KnownZero, KnownOne and Min, Max must have equal bitwidth."); 718 unsigned BitWidth = CI->getType()->getPrimitiveSizeInBits(); 720 APInt::getSignedMaxValue(BitWidth)); [all...] |
InstCombineShifts.cpp | 91 uint32_t BitWidth = Ty->getScalarSizeInBits(); 93 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && 94 CI->getLimitedValue(BitWidth) < BitWidth) { 681 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); 688 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) {
|
InstCombineAndOrXor.cpp | 272 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); 273 uint32_t OpRHSVal = OpRHS->getLimitedValue(BitWidth); 274 APInt ShlMask(APInt::getHighBitsSet(BitWidth, BitWidth-OpRHSVal)); 293 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); 294 uint32_t OpRHSVal = OpRHS->getLimitedValue(BitWidth); 295 APInt ShrMask(APInt::getLowBitsSet(BitWidth, BitWidth - OpRHSVal)); 314 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); 315 uint32_t OpRHSVal = OpRHS->getLimitedValue(BitWidth); [all...] |
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
Type.cpp | 50 bool Type::isIntegerTy(unsigned Bitwidth) const { 51 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; 274 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); 275 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); 297 unsigned BitWidth = getBitWidth(); 298 return (BitWidth > 7) && isPowerOf2_32(BitWidth);
|
/external/llvm/lib/Target/AArch64/ |
AArch64ISelDAGToDAG.cpp | [all...] |
/external/llvm/lib/Transforms/Scalar/ |
GuardWidening.cpp | 538 unsigned BitWidth = OpLHS->getType()->getScalarSizeInBits(); 539 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 596 unsigned BitWidth = MaxOffset->getValue().getBitWidth(); 598 .ugt(APInt::getSignedMinValue(BitWidth)))
|
LoadCombine.cpp | 100 unsigned BitWidth = DL.getPointerSizeInBits(LI.getPointerAddressSpace()); 101 POP.Offset = APInt(BitWidth, 0);
|
/external/llvm/lib/Transforms/Utils/ |
SimplifyIndVar.cpp | 118 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); 119 if (D->getValue().uge(BitWidth)) 123 APInt::getOneBitSet(BitWidth, D->getZExtValue())); 518 unsigned BitWidth = cast<IntegerType>(BO->getType())->getBitWidth(); 519 Type *WideTy = IntegerType::get(BO->getContext(), BitWidth * 2);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
SimplifyIndVar.cpp | 121 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); 122 if (D->getValue().uge(BitWidth)) 126 APInt(BitWidth, 1).shl(D->getZExtValue()));
|
/external/llvm/lib/Analysis/ |
Lint.cpp | 515 unsigned BitWidth = V->getType()->getIntegerBitWidth(); 516 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 532 unsigned BitWidth = VecTy->getElementType()->getIntegerBitWidth(); 538 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
|
/external/llvm/include/llvm/Transforms/IPO/ |
WholeProgramDevirt.h | 205 uint64_t AllocBefore, unsigned BitWidth, 212 uint64_t AllocAfter, unsigned BitWidth,
|