HomeSort by: relevance | last modified time | path
    Searched refs:APInt (Results 1 - 25 of 432) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
APInt.h 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===//
36 class APInt;
38 inline APInt operator-(APInt);
41 // APInt Class
46 /// APInt is a functional replacement for common case unsigned integer type like
49 /// than 64-bits of precision. APInt provides a variety of arithmetic operators
58 /// * All binary operators must be on APInt instances of the same bit width.
70 class LLVM_NODISCARD APInt {
74 /// This enum is used to hold the constants we needed for APInt
    [all...]
APSInt.h 17 #include "llvm/ADT/APInt.h"
22 class LLVM_NODISCARD APSInt : public APInt {
26 /// 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) {}
48 bool isNegative() const { return isSigned() && APInt::isNegative(); }
63 APSInt &operator=(APInt RHS) {
65 APInt::operator=(std::move(RHS));
71 APInt::operator=(RHS)
    [all...]
  /src/external/apache2/llvm/dist/llvm/tools/llvm-exegesis/lib/
RegisterValue.h 20 #include <llvm/ADT/APInt.h>
27 static RegisterValue zero(unsigned Reg) { return {Reg, APInt()}; }
29 APInt Value;
46 APInt bitcastFloatValue(const fltSemantics &FltSemantics,
  /src/external/apache2/llvm/dist/llvm/lib/Support/
APInt.cpp 1 //===-- APInt.cpp - Implement APInt class ---------------------------------===//
14 #include "llvm/ADT/APInt.h"
33 #define DEBUG_TYPE "apint"
77 void APInt::initSlowCase(uint64_t val, bool isSigned) {
86 void APInt::initSlowCase(const APInt& that) {
91 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) {
108 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal
    [all...]
APSInt.cpp 26 APInt Tmp(NumBits, Str, /*radix=*/10);
42 APInt::Profile(ID);
KnownBits.cpp 27 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero;
28 APInt PossibleSumOne = LHS.getMinValue() + RHS.getMinValue() + CarryOne;
31 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero);
32 APInt CarryKnownOne = PossibleSumOne ^ LHS.One ^ RHS.One;
35 APInt LHSKnownUnion = LHS.Zero | LHS.One;
36 APInt RHSKnownUnion = RHS.Zero | RHS.One;
37 APInt CarryKnownUnion = std::move(CarryKnownZero) | CarryKnownOne;
38 APInt Known = std::move(LHSKnownUnion) & RHSKnownUnion & CarryKnownUnion;
105 KnownBits KnownBits::makeGE(const APInt &Val) const {
112 APInt MaskedVal(Val)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/IR/
ConstantRange.cpp 23 #include "llvm/ADT/APInt.h"
44 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)),
47 ConstantRange::ConstantRange(APInt V)
50 ConstantRange::ConstantRange(APInt L, APInt U)
72 APInt Lower = Known.getMinValue(), Upper = Known.getMaxValue();
94 APInt UMax(CR.getUnsignedMax());
97 return ConstantRange(APInt::getMinValue(W), std::move(UMax));
100 APInt SMax(CR.getSignedMax())
    [all...]
Operator.cpp 62 const DataLayout &DL, APInt &Offset,
63 function_ref<bool(Value &, APInt &)> ExternalAnalysis) const {
74 APInt &Offset, function_ref<bool(Value &, APInt &)> ExternalAnalysis) {
76 auto AccumulateOffset = [&](APInt Index, uint64_t Size) -> bool {
78 APInt IndexedSize = APInt(Offset.getBitWidth(), Size);
86 APInt OffsetPlus = Index.smul_ov(IndexedSize, Overflow);
120 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)),
135 APInt AnalysisIndex
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/MCTargetDesc/
RISCVMatInt.h 16 class APInt;
40 int getIntMatCost(const APInt &Val, unsigned Size, bool IsRV64);
  /src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/
OpDescriptor.cpp 18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W)));
19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W)));
20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W)));
21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W)));
22 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2)));
  /src/external/apache2/llvm/dist/llvm/include/llvm/IR/
ConstantRange.h 34 #include "llvm/ADT/APInt.h"
48 APInt Lower, Upper;
65 ConstantRange(APInt Value);
69 /// assert out if the two APInt's are not the same bit width.
70 ConstantRange(APInt Lower, APInt Upper);
84 static ConstantRange getNonEmpty(APInt Lower, APInt Upper) {
125 const APInt &Other);
154 const APInt &Other
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
DemandedBits.h 24 #include "llvm/ADT/APInt.h"
54 APInt getDemandedBits(Instruction *I);
66 static APInt determineLiveOperandBitsAdd(unsigned OperandNo,
67 const APInt &AOut,
73 static APInt determineLiveOperandBitsSub(unsigned OperandNo,
74 const APInt &AOut,
82 const APInt &AOut, APInt &AB,
93 DenseMap<Instruction *, APInt> AliveBits;
CmpInstAnalysis.h 65 Value *&X, APInt &Mask,
  /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
GISelKnownBits.h 39 const APInt &DemandedElts,
43 const APInt &DemandedElts, unsigned Depth = 0);
58 const APInt &DemandedElts,
61 unsigned computeNumSignBits(Register R, const APInt &DemandedElts,
67 KnownBits getKnownBits(Register R, const APInt &DemandedElts,
72 APInt getKnownZeroes(Register R);
73 APInt getKnownOnes(Register R);
78 bool maskedValueIsZero(Register Val, const APInt &Mask) {
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
DemandedBits.cpp 22 #include "llvm/ADT/APInt.h"
88 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2,
137 AB = APInt::getHighBitsSet(BitWidth,
147 AB = APInt::getLowBitsSet(BitWidth,
153 const APInt *SA;
160 // Normalize to funnel shift left. APInt shifts of BitWidth are well-
179 AB = APInt::getBitsSetFrom(BitWidth, AOut.countTrailingZeros());
204 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits());
208 const APInt *ShiftAmtC
    [all...]
CmpInstAnalysis.cpp 68 Value *&X, APInt &Mask, bool LookThruTrunc) {
71 const APInt *C;
82 Mask = APInt::getSignMask(C->getBitWidth());
89 Mask = APInt::getSignMask(C->getBitWidth());
96 Mask = APInt::getSignMask(C->getBitWidth());
103 Mask = APInt::getSignMask(C->getBitWidth());
  /src/external/apache2/llvm/dist/llvm/lib/MC/
MCInstrAnalysis.cpp 11 #include "llvm/ADT/APInt.h"
21 APInt &Writes) const {
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/MCTargetDesc/
X86ShuffleDecode.h 24 class APInt;
100 void DecodePSHUFBMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
124 void DecodeVPPERMMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
149 ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
154 ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
158 void DecodeVPERMVMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
162 void DecodeVPERMV3Mask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
  /src/external/apache2/llvm/dist/llvm/include/llvm/Support/
CheckedArithmetic.h 17 #include "llvm/ADT/APInt.h"
24 /// Utility function to apply a given method of \c APInt \p F to \p LHS and
31 llvm::APInt ALHS(sizeof(T) * 8, LHS, Signed);
32 llvm::APInt ARHS(sizeof(T) * 8, RHS, Signed);
34 llvm::APInt Out = (ALHS.*Op)(ARHS, Overflow);
49 return checkedOp(LHS, RHS, &llvm::APInt::sadd_ov);
58 return checkedOp(LHS, RHS, &llvm::APInt::ssub_ov);
67 return checkedOp(LHS, RHS, &llvm::APInt::smul_ov);
87 return checkedOp(LHS, RHS, &llvm::APInt::uadd_ov, /*Signed=*/false);
96 return checkedOp(LHS, RHS, &llvm::APInt::umul_ov, /*Signed=*/false)
    [all...]
KnownBits.h 17 #include "llvm/ADT/APInt.h"
24 APInt Zero;
25 APInt One;
29 KnownBits(APInt Zero, APInt One)
57 const APInt &getConstant() const {
118 APInt getMinValue() const {
124 APInt getSignedMinValue() const {
126 APInt Min = One;
134 APInt getMaxValue() const
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/
RecordSerialization.cpp 14 #include "llvm/ADT/APInt.h"
37 // Used to avoid overload ambiguity on APInt constructor.
44 Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false),
54 Num = APSInt(APInt(8, N, true), false);
61 Num = APSInt(APInt(16, N, true), false);
68 Num = APSInt(APInt(16, N, false), true);
75 Num = APSInt(APInt(32, N, true), false);
82 Num = APSInt(APInt(32, N, FalseVal), true);
89 Num = APSInt(APInt(64, N, true), false);
96 Num = APSInt(APInt(64, N, false), true)
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
PatternInit.cpp 42 Ty, llvm::APInt::getSplat(BitWidth, llvm::APInt(64, IntValue)));
57 llvm::APInt Payload(64, NaNPayload);
59 Payload = llvm::APInt::getSplat(BitWidth, Payload);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
InstCombineSimplifyDemanded.cpp 31 const APInt &Demanded) {
37 const APInt *C;
58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
72 const APInt &DemandedMask,
108 Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
276 const APInt *C;
298 APInt NewMask = ~(LHSKnown.One & RHSKnown.One & DemandedMask);
320 const APInt *C;
329 const APInt *C
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86ShuffleDecodeConstantPool.cpp 16 #include "llvm/ADT/APInt.h"
27 APInt &UndefElts,
55 UndefElts = APInt(NumMaskElts, 0);
79 APInt UndefBits(CstSizeInBits, 0);
80 APInt MaskBits(CstSizeInBits, 0);
99 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset);
109 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset);
123 APInt UndefElts;
162 APInt UndefElts;
198 APInt UndefElts
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/
AggressiveInstCombine.cpp 203 APInt Mask;
208 : Root(nullptr), Mask(APInt::getNullValue(BitWidth)),
240 const APInt *BitIndex = nullptr;
322 APInt Mask55 = APInt::getSplat(Len, APInt(8, 0x55));
323 APInt Mask33 = APInt::getSplat(Len, APInt(8, 0x33));
324 APInt Mask0F = APInt::getSplat(Len, APInt(8, 0x0F))
    [all...]

Completed in 81 milliseconds

1 2 3 4 5 6 7 8 91011>>