HomeSort by relevance Sort by last modified time
    Searched full:apint (Results 1 - 25 of 293) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/llvm/unittests/ADT/
APIntTest.cpp 1 //===- llvm/unittest/ADT/APInt.cpp - APInt unit tests ---------------------===//
10 #include "llvm/ADT/APInt.h"
19 // Test that APInt shift left works when bitwidth > 64 and shiftamt == 0
21 APInt One = APInt::getNullValue(65) + 1;
22 APInt Shl = One.shl(0);
28 APInt Minus3(128, static_cast<uint64_t>(-3), true);
32 APInt Minus1(128, static_cast<uint64_t>(-1), true);
46 APInt i33minus2(33, static_cast<uint64_t>(-2), true)
    [all...]
APSIntTest.cpp 28 APInt Wide(256, 0);
37 Wide = APInt(128, 1);
67 EXPECT_TRUE(APSInt(APInt(3, 7), true).isUnsigned());
68 EXPECT_TRUE(APSInt(APInt(3, 7), false).isSigned());
69 EXPECT_TRUE(APSInt(APInt(4, 7), true).isUnsigned());
70 EXPECT_TRUE(APSInt(APInt(4, 7), false).isSigned());
71 EXPECT_TRUE(APSInt(APInt(4, -7), true).isUnsigned());
72 EXPECT_TRUE(APSInt(APInt(4, -7), false).isSigned());
73 EXPECT_EQ(7, APSInt(APInt(3, 7), true).getExtValue());
74 EXPECT_EQ(-1, APSInt(APInt(3, 7), false).getExtValue())
    [all...]
  /external/llvm/unittests/IR/
ConstantRangeTest.cpp 29 ConstantRange ConstantRangeTest::One(APInt(16, 0xa));
30 ConstantRange ConstantRangeTest::Some(APInt(16, 0xa), APInt(16, 0xaaa));
31 ConstantRange ConstantRangeTest::Wrap(APInt(16, 0xaaa), APInt(16, 0xa));
38 EXPECT_TRUE(Full.contains(APInt(16, 0x0)));
39 EXPECT_TRUE(Full.contains(APInt(16, 0x9)));
40 EXPECT_TRUE(Full.contains(APInt(16, 0xa)));
41 EXPECT_TRUE(Full.contains(APInt(16, 0xaa9)));
42 EXPECT_TRUE(Full.contains(APInt(16, 0xaaa)))
    [all...]
  /external/llvm/include/llvm/ADT/
APInt.h 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===//
44 // APInt Class
49 /// APInt is a functional replacement for common case unsigned integer type like
52 /// than 64-bits of precision. APInt provides a variety of arithmetic operators
61 /// * All binary operators must be on APInt instances of the same bit width.
73 class APInt {
74 unsigned BitWidth; ///< The number of bits in this APInt.
83 /// This enum is used to hold the constants we needed for APInt.
98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {}
100 /// \brief Determine if this APInt just has one word to store value
    [all...]
APSInt.h 18 #include "llvm/ADT/APInt.h"
22 class APSInt : public APInt {
25 /// Default constructor that creates an uninitialized APInt.
31 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
33 explicit APSInt(APInt I, bool isUnsigned = true)
34 : APInt(std::move(I)), IsUnsigned(isUnsigned) {}
36 APSInt &operator=(APInt RHS) {
38 APInt::operator=(std::move(RHS));
44 APInt::operator=(RHS);
56 APInt::toString(Str, Radix, isSigned())
    [all...]
APFloat.h 20 #include "llvm/ADT/APInt.h"
43 /// the APInt class. The library will work with bignum integers whose parts are
195 APFloat(const fltSemantics &, const APInt &);
236 APInt fill(64, type);
245 const APInt *payload = nullptr) {
251 const APInt *payload = nullptr) {
358 opStatus convertFromAPInt(const APInt &, bool, roundingMode);
364 APInt bitcastToAPInt() const;
567 const APInt *fill = nullptr);
569 const APInt *fill)
    [all...]
  /external/llvm/lib/Support/
APInt.cpp 1 //===-- APInt.cpp - Implement APInt class ---------------------------------===//
15 #include "llvm/ADT/APInt.h"
30 #define DEBUG_TYPE "apint"
36 assert(result && "APInt memory allocation fails!");
45 assert(result && "APInt memory allocation fails!");
77 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) {
85 void APInt::initSlowCase(const APInt& that) {
90 void APInt::initFromArray(ArrayRef<uint64_t> bigVal)
    [all...]
APFloat.cpp 346 lsb = APInt::tcLSB(parts, partCount);
354 APInt::tcExtractBit(parts, bits - 1))
368 APInt::tcShiftRight(dst, parts, bits);
484 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc);
494 APInt::tcFullMultiply(p2, p1, pow5, result, pc);
508 APInt::tcAssign(dst, p1, result);
610 APInt::tcAssign(significandParts(), rhs.significandParts(),
617 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill)
627 APInt::tcSet(significand, 0, numParts);
629 APInt::tcAssign(significand, fill->getRawData()
    [all...]
  /external/llvm/lib/IR/
ConstantRange.cpp 34 Lower = Upper = APInt::getMaxValue(BitWidth);
36 Lower = Upper = APInt::getMinValue(BitWidth);
68 APInt UMax(CR.getUnsignedMax());
71 return ConstantRange(APInt::getMinValue(W), UMax);
74 APInt SMax(CR.getSignedMax());
77 return ConstantRange(APInt::getSignedMinValue(W), SMax);
80 APInt UMax(CR.getUnsignedMax());
83 return ConstantRange(APInt::getMinValue(W), UMax + 1);
86 APInt SMax(CR.getSignedMax());
89 return ConstantRange(APInt::getSignedMinValue(W), SMax + 1)
    [all...]
  /external/llvm/lib/Transforms/Scalar/
BDCE.cpp 62 const APInt &AOut, APInt &AB,
63 APInt &KnownZero, APInt &KnownOne,
64 APInt &KnownZero2, APInt &KnownOne2);
86 const APInt &AOut, APInt &AB,
87 APInt &KnownZero, APInt &KnownOne
    [all...]
  /external/clang/test/SemaCXX/
unused.cpp 5 class APInt {
8 class APSInt : public APInt {
15 APInt::operator=(RHS);
  /external/llvm/lib/ExecutionEngine/Orc/
OrcMCJITReplacement.cpp 55 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(),
68 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(),
77 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue()));
93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)());
95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)());
97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)());
99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)());
101 rv.IntVal = APInt(BitWidth, ((int64_t (*)())(intptr_t)FPtr)());
107 rv.IntVal = APInt(32, ((int (*)())(intptr_t)FPtr)());
  /external/llvm/include/llvm/IR/
ConstantRange.h 35 #include "llvm/ADT/APInt.h"
44 APInt Lower, Upper;
47 typedef APInt APIntMoveTy;
60 /// assert out if the two APInt's are not the same bit width.
87 const APInt &getLower() const { return Lower; }
91 const APInt &getUpper() const { return Upper; }
118 bool contains(const APInt &Val) const;
126 const APInt *getSingleElement() const {
138 APInt getSetSize() const;
142 APInt getUnsignedMax() const
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineSimplifyDemanded.cpp 29 APInt Demanded) {
69 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
70 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
83 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask,
84 APInt &KnownZero, APInt &KnownOne,
116 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
117 APInt &KnownZero, APInt &KnownOne
    [all...]
InstCombineShifts.cpp 45 Value *A; const APInt *B;
95 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) &&
135 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits,
160 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits,
241 APInt Mask(APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits));
281 APInt Mask(APInt::getHighBitsSet(TypeWidth, TypeWidth - NumBits));
390 APInt MaskV(APInt::getLowBitsSet(SrcSize, DstSize))
    [all...]
InstCombineInternal.h 471 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
477 bool MaskedValueIsZero(Value *V, const APInt &Mask, unsigned Depth = 0,
515 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero,
516 APInt &KnownOne, unsigned Depth,
518 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero,
519 APInt &KnownOne, unsigned Depth = 0);
523 APInt DemandedMask, APInt &KnownZero
    [all...]
  /external/llvm/lib/Analysis/
ValueTracking.cpp 127 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
131 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
171 static bool MaskedValueIsZero(Value *V, const APInt &Mask, const DataLayout &DL,
174 bool llvm::MaskedValueIsZero(Value *V, const APInt &Mask, const DataLayout &DL,
192 APInt &KnownZero, APInt &KnownOne,
193 APInt &KnownZero2, APInt &KnownOne2
    [all...]
DependenceAnalysis.cpp 35 // Subtract, or Multiply, with both APInt's and SCEV's.
503 APInt Xtop = C1B2_C2B1->getValue()->getValue();
504 APInt Xbot = A1B2_A2B1->getValue()->getValue();
505 APInt Ytop = C1A2_C2A1->getValue()->getValue();
506 APInt Ybot = A2B1_A1B2->getValue()->getValue();
511 APInt Xq = Xtop; // these need to be initialized, even
512 APInt Xr = Xtop; // though they're just going to be overwritten
513 APInt::sdivrem(Xtop, Xbot, Xq, Xr);
514 APInt Yq = Ytop;
515 APInt Yr = Ytop
    [all...]
  /external/llvm/include/llvm/ExecutionEngine/
GenericValue.h 18 #include "llvm/ADT/APInt.h"
24 class APInt;
38 APInt IntVal; // also used for long doubles.
  /external/llvm/lib/Target/SystemZ/
SystemZTargetTransformInfo.h 56 unsigned getIntImmCost(const APInt &Imm, Type *Ty);
58 unsigned getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm,
60 unsigned getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
  /external/llvm/test/CodeGen/Mips/msa/
llvm-stress-s449609655-simplified.ll 11 ; isVSplat() returned the splat value for <i8 -1, i8 -1, ...> as a 32-bit APInt
12 ; (255), but the zeroinitializer splat value as an 8-bit APInt (0). The
  /external/llvm/lib/CodeGen/SelectionDAG/
TargetLowering.cpp 286 const APInt &Demanded) {
326 const APInt &Demanded,
376 const APInt &DemandedMask,
377 APInt &KnownZero,
378 APInt &KnownOne,
384 APInt NewMask = DemandedMask;
388 KnownZero = KnownOne = APInt(BitWidth, 0);
400 NewMask = APInt::getAllOnesValue(BitWidth);
410 APInt KnownZero2, KnownOne2, KnownZeroOut, KnownOneOut;
423 APInt LHSZero, LHSOne
    [all...]
  /external/llvm/include/llvm/MC/MCParser/
MCAsmLexer.h 13 #include "llvm/ADT/APInt.h"
62 APInt IntVal;
66 AsmToken(TokenKind Kind, StringRef Str, APInt IntVal)
110 APInt getAPIntVal() const {
  /external/llvm/test/CodeGen/Hexagon/vect/
vect-apint-truncate.ll 2 ; Used to fail with "Invalid APInt Truncate request".
  /external/llvm/include/llvm/Analysis/
MemoryBuiltins.h 146 typedef std::pair<APInt, APInt> SizeOffsetType;
157 APInt Zero;
160 APInt align(APInt Size, uint64_t Align);
163 return std::make_pair(APInt(), APInt());

Completed in 142 milliseconds

1 2 3 4 5 6 7 8 91011>>