Searched refs:APInt (Results 1 - 25 of 238) sorted by relevance

12345678910

/external/llvm/unittests/ADT/
H A DAPIntTest.cpp1 //===- 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 i33minus
[all...]
H A DAPSIntTest.cpp28 APInt Wide(256, 0);
37 Wide = APInt(128, 1);
/external/llvm/include/llvm/ADT/
H A DAPInt.h1 //===-- 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 { class in namespace:llvm
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) {} function in class:llvm::APInt
100 /// \brief Determine if this APInt jus
236 APInt(unsigned numBits, uint64_t val, bool isSigned = false) function in class:llvm::APInt
279 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { function in class:llvm::APInt
288 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) { function in class:llvm::APInt
302 explicit APInt() : BitWidth(1) {} function in class:llvm::APInt
[all...]
H A DAPSInt.h18 #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
[all...]
H A DAPFloat.h20 #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 *fil
[all...]
/external/llvm/unittests/IR/
H A DConstantRangeTest.cpp29 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(1
[all...]
/external/llvm/lib/Support/
H A DAPSInt.cpp22 APInt::Profile(ID);
H A DAPInt.cpp1 //===-- APInt.cpp - Implement APInt class ---------------------------------===//
15 #include "llvm/ADT/APInt.h"
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) {
107 APInt function in class:APInt
112 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) function in class:APInt
117 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) function in class:APInt
[all...]
H A DAPFloat.cpp347 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
[all...]
/external/clang/test/SemaCXX/
H A Dunused.cpp5 class APInt { class in namespace:PR4103
8 class APSInt : public APInt {
15 APInt::operator=(RHS);
/external/llvm/include/llvm/IR/
H A DConstantRange.h35 #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 getUnsignedMa
[all...]
H A DConstant.h20 class APInt;
119 const APInt &getUniqueInteger() const;
165 static Constant *getIntegerValue(Type* Ty, const APInt &V);
H A DMDBuilder.h23 class APInt;
63 MDNode *createRange(const APInt &Lo, const APInt &Hi);
/external/llvm/lib/IR/
H A DConstantRange.cpp34 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
[all...]
/external/llvm/include/llvm/ExecutionEngine/
H A DGenericValue.h18 #include "llvm/ADT/APInt.h"
24 class APInt;
38 APInt IntVal; // also used for long doubles.
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp30 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
[all...]
/external/llvm/include/llvm/Analysis/
H A DValueTracking.h24 class APInt;
38 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
43 APInt &KnownZero);
73 bool MaskedValueIsZero(Value *V, const APInt &Mask,
H A DMemoryBuiltins.h155 typedef std::pair<APInt, APInt> SizeOffsetType;
166 APInt Zero;
169 APInt align(APInt Size, uint64_t Align);
172 return std::make_pair(APInt(), APInt());
H A DPtrUseVisitor.h25 #include "llvm/ADT/APInt.h"
120 APInt Offset;
144 APInt Offset;
210 Offset = APInt(IntPtrTy->getBitWidth(), 0);
253 Offset = APInt();
/external/llvm/lib/Analysis/
H A DValueTracking.cpp49 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
[all...]
H A DDependenceAnalysis.cpp35 // 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 Y
[all...]
/external/llvm/examples/BrainF/
H A DBrainF.cpp81 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/MC/MCParser/
H A DMCAsmLexer.h13 #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/
H A DNVPTXMCExpr.cpp42 APInt API = APF.bitcastToAPInt();
/external/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp151 APInt find(Value *V, bool SignExtended, bool ZeroExtended, bool NonNegative);
153 APInt findInEitherOperand(BinaryOperator *BO, bool SignExtended,
199 void ComputeKnownBits(Value *V, APInt &KnownOne, APInt &KnownZero) const;
375 APInt ConstantOffsetExtractor::findInEitherOperand(BinaryOperator *BO,
380 APInt ConstantOffset = find(BO->getOperand(0), SignExtended, ZeroExtended,
397 APInt ConstantOffsetExtractor::find(Value *V, bool SignExtended,
406 if (U == nullptr) return APInt(BitWidth, 0);
408 APInt ConstantOffset(BitWidth, 0);
562 APInt ConstantOffse
[all...]

Completed in 1188 milliseconds

12345678910