HomeSort by relevance Sort by last modified time
    Searched refs:APInt (Results 1 - 25 of 248) sorted by null

1 2 3 4 5 6 7 8 910

  /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);
  /external/llvm/include/llvm/ADT/
APInt.h 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===//
46 // APInt Class
51 /// APInt is a functional replacement for common case unsigned integer type like
54 /// than 64-bits of precision. APInt provides a variety of arithmetic operators
63 /// * All binary operators must be on APInt instances of the same bit width.
75 class APInt {
76 unsigned BitWidth; ///< The number of bits in this APInt.
85 /// 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) {
325 opStatus convertFromAPInt(const APInt &, bool, roundingMode);
331 APInt bitcastToAPInt() const;
504 const APInt *fill = nullptr);
506 const APInt *fill)
    [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/lib/Support/
APSInt.cpp 22 APInt::Profile(ID);
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 347 lsb = APInt::tcLSB(parts, partCount);
355 APInt::tcExtractBit(parts, bits - 1))
369 APInt::tcShiftRight(dst, parts, bits);
485 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc);
495 APInt::tcFullMultiply(p2, p1, pow5, result, pc);
509 APInt::tcAssign(dst, p1, result);
611 APInt::tcAssign(significandParts(), rhs.significandParts(),
618 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill)
628 APInt::tcSet(significand, 0, numParts);
630 APInt::tcAssign(significand, fill->getRawData()
    [all...]
  /external/clang/test/SemaCXX/
unused.cpp 5 class APInt {
8 class APSInt : public APInt {
15 APInt::operator=(RHS);
  /external/llvm/include/llvm/IR/
ConstantRange.h 35 #include "llvm/ADT/APInt.h"
43 APInt Lower, Upper;
46 typedef APInt APIntMoveTy;
59 /// assert out if the two APInt's are not the same bit width.
74 const APInt &getLower() const { return Lower; }
78 const APInt &getUpper() const { return Upper; }
105 bool contains(const APInt &Val) const;
114 const APInt *getSingleElement() const {
126 APInt getSetSize() const;
131 APInt getUnsignedMax() const
    [all...]
Constant.h 20 class APInt;
119 const APInt &getUniqueInteger() const;
165 static Constant *getIntegerValue(Type* Ty, const APInt &V);
MDBuilder.h 23 class APInt;
63 MDNode *createRange(const APInt &Lo, const APInt &Hi);
  /external/llvm/lib/IR/
ConstantRange.cpp 34 Lower = Upper = APInt::getMaxValue(BitWidth);
36 Lower = Upper = APInt::getMinValue(BitWidth);
67 APInt UMax(CR.getUnsignedMax());
70 return ConstantRange(APInt::getMinValue(W), UMax);
73 APInt SMax(CR.getSignedMax());
76 return ConstantRange(APInt::getSignedMinValue(W), SMax);
79 APInt UMax(CR.getUnsignedMax());
82 return ConstantRange(APInt::getMinValue(W), UMax + 1);
85 APInt SMax(CR.getSignedMax());
88 return ConstantRange(APInt::getSignedMinValue(W), SMax + 1)
    [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/Transforms/InstCombine/
InstCombineSimplifyDemanded.cpp 30 APInt Demanded) {
56 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
57 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
70 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask,
71 APInt &KnownZero, APInt &KnownOne,
102 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
103 APInt &KnownZero, APInt &KnownOne
    [all...]
  /external/llvm/include/llvm/Analysis/
ValueTracking.h 24 class APInt;
38 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
43 APInt &KnownZero);
73 bool MaskedValueIsZero(Value *V, const APInt &Mask,
MemoryBuiltins.h 155 typedef std::pair<APInt, APInt> SizeOffsetType;
166 APInt Zero;
169 APInt align(APInt Size, uint64_t Align);
172 return std::make_pair(APInt(), APInt());
PtrUseVisitor.h 25 #include "llvm/ADT/APInt.h"
120 APInt Offset;
144 APInt Offset;
210 Offset = APInt(IntPtrTy->getBitWidth(), 0);
253 Offset = APInt();
  /external/llvm/lib/Analysis/
ValueTracking.cpp 49 APInt &KnownZero, APInt &KnownOne,
50 APInt &KnownZero2, APInt &KnownOne2,
61 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1);
70 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2);
82 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
93 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOut)
    [all...]
DependenceAnalysis.cpp 35 // Subtract, or Multiply, with both APInt's and SCEV's.
504 APInt Xtop = C1B2_C2B1->getValue()->getValue();
505 APInt Xbot = A1B2_A2B1->getValue()->getValue();
506 APInt Ytop = C1A2_C2A1->getValue()->getValue();
507 APInt Ybot = A2B1_A1B2->getValue()->getValue();
512 APInt Xq = Xtop; // these need to be initialized, even
513 APInt Xr = Xtop; // though they're just going to be overwritten
514 APInt::sdivrem(Xtop, Xbot, Xq, Xr);
515 APInt Yq = Ytop;
516 APInt Yr = Ytop
    [all...]
  /external/llvm/examples/BrainF/
BrainF.cpp 81 ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal));
95 ConstantInt::get(C, APInt(8, 0)),
97 ConstantInt::get(C, APInt(32, 1)),
98 ConstantInt::get(C, APInt(1, 0))
109 CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax");
114 ConstantInt::get(C, APInt(32, memtotal/2)),
241 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)),
276 CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg);
440 ConstantInt::get(C, APInt(8, 0)), testreg);
  /external/llvm/include/llvm/CodeGen/
FunctionLoweringInfo.h 18 #include "llvm/ADT/APInt.h"
104 APInt KnownOne, KnownZero;
174 const APInt &KnownZero, const APInt &KnownOne) {
  /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)
109 APInt getAPIntVal() const {
  /external/llvm/lib/Target/NVPTX/
NVPTXMCExpr.cpp 42 APInt API = APF.bitcastToAPInt();

Completed in 499 milliseconds

1 2 3 4 5 6 7 8 910