/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// 35 class APInt; 37 inline APInt operator-(APInt); 40 // APInt Class 45 /// APInt is a functional replacement for common case unsigned integer type like 48 /// than 64-bits of precision. APInt provides a variety of arithmetic operators 57 /// * All binary operators must be on APInt instances of the same bit width. 69 class LLVM_NODISCARD APInt { class in namespace:llvm 73 /// This enum is used to hold the constants we needed for APInt 107 APInt(uint64_t *val, unsigned bits) : BitWidth(bits) { function 277 APInt(unsigned numBits, uint64_t val, bool isSigned = false) function 321 APInt(const APInt &that) : BitWidth(that.BitWidth) { function 329 APInt(APInt &&that) : BitWidth(that.BitWidth) { function 345 explicit APInt() : BitWidth(1) { U.VAL = 0; } function [all...] |
H A D | APSInt.h | 17 #include "llvm/ADT/APInt.h" 21 class LLVM_NODISCARD 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) {} 48 bool isNegative() const { return isSigned() && APInt::isNegative(); } 63 APSInt &operator=(APInt RHS) { 65 APInt::operator=(std::move(RHS)); 71 APInt [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | APInt.cpp | 1 //===-- APInt.cpp - Implement APInt class ---------------------------------===// 14 #include "llvm/ADT/APInt.h" 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) function in class:APInt 113 APInt function in class:APInt 118 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) function in class:APInt [all...] |
H A D | KnownBits.cpp | 24 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero; 25 APInt PossibleSumOne = LHS.getMinValue() + RHS.getMinValue() + CarryOne; 28 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); 29 APInt CarryKnownOne = PossibleSumOne ^ LHS.One ^ RHS.One; 32 APInt LHSKnownUnion = LHS.Zero | LHS.One; 33 APInt RHSKnownUnion = RHS.Zero | RHS.One; 34 APInt CarryKnownUnion = std::move(CarryKnownZero) | CarryKnownOne; 35 APInt Known = std::move(LHSKnownUnion) & RHSKnownUnion & CarryKnownUnion;
|
H A D | APSInt.cpp | 25 APInt Tmp(NumBits, Str, /*radix=*/10); 41 APInt::Profile(ID);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 23 #include "llvm/ADT/APInt.h" 43 : Lower(Full ? APInt::getMaxValue(BitWidth) : APInt::getMinValue(BitWidth)), 46 ConstantRange::ConstantRange(APInt V) 49 ConstantRange::ConstantRange(APInt L, APInt U) 71 APInt Lower = Known.getMinValue(), Upper = Known.getMaxValue(); 93 APInt UMax(CR.getUnsignedMax()); 96 return ConstantRange(APInt::getMinValue(W), std::move(UMax)); 99 APInt SMa [all...] |
H A D | Operator.cpp | 35 APInt &Offset) const { 52 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); 57 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); 58 Offset += Index * APInt(Offset.getBitWidth(),
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | 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)));
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | 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); 150 const APInt [all...] |
H A D | Constant.h | 22 class APInt; 143 const APInt &getUniqueInteger() const; 181 static Constant *getIntegerValue(Type *Ty, const APInt &V);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.h | 44 int getIntImmCost(const APInt &Imm, Type *Ty); 45 int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); 46 int getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|
H A D | RISCVTargetTransformInfo.cpp | 18 int RISCVTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty) { 32 int RISCVTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, 89 const APInt &Imm, Type *Ty) {
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | GISelKnownBits.h | 40 const APInt &DemandedElts, 43 unsigned computeNumSignBits(Register R, const APInt &DemandedElts, 51 APInt getKnownZeroes(Register R); 52 APInt getKnownOnes(Register R); 57 bool maskedValueIsZero(Register Val, const APInt &Mask) { 68 const APInt &DemandedElts,
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 17 #include "llvm/ADT/APInt.h" 23 APInt Zero; 24 APInt One; 28 KnownBits(APInt Zero, APInt One) 56 const APInt &getConstant() const { 114 APInt getMinValue() const { 120 APInt getMaxValue() const { 137 APInt NewZero = Zero.zext(BitWidth);
|
H A D | 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(/*BitSize=*/sizeof(T) * 8, LHS, Signed); 32 llvm::APInt ARHS(/*BitSize=*/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 [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcMCJITReplacement.cpp | 54 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 67 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 76 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); 92 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); 94 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); 96 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); 98 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); 100 rv.IntVal = APInt(BitWidth, ((int64_t (*)())(intptr_t)FPtr)()); 106 rv.IntVal = APInt(32, ((int (*)())(intptr_t)FPtr)());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/Utils/ |
H A D | X86ShuffleDecode.h | 17 #include "llvm/ADT/APInt.h" 111 void DecodePSHUFBMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 134 void DecodeVPPERMMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 159 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 164 ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 168 void DecodeVPERMVMask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts, 172 void DecodeVPERMV3Mask(ArrayRef<uint64_t> RawMask, const APInt &UndefElts,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | RecordSerialization.cpp | 14 #include "llvm/ADT/APInt.h" 37 // Used to avoid overload ambiguity on APInt construtor. 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(6 [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | 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- 181 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); 185 const APInt *ShiftAmtC; 194 AB |= APInt [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/RISCV/Utils/ |
H A D | RISCVMatInt.h | 12 #include "llvm/ADT/APInt.h" 41 int getIntMatCost(const APInt &Val, unsigned Size, bool IsRV64);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | CmpInstAnalysis.h | 65 Value *&X, APInt &Mask,
|
H A D | DemandedBits.h | 24 #include "llvm/ADT/APInt.h" 54 APInt getDemandedBits(Instruction *I); 68 const APInt &AOut, APInt &AB, 79 DenseMap<Instruction *, APInt> AliveBits;
|
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | Scalar.h | 17 #include "llvm/ADT/APInt.h" 64 m_integer = llvm::APInt(sizeof(int) * 8, v, true); 67 m_integer = llvm::APInt(sizeof(int) * 8, v); 70 m_integer = llvm::APInt(sizeof(long) * 8, v, true); 73 m_integer = llvm::APInt(sizeof(long) * 8, v); 76 m_integer = llvm::APInt(sizeof(long long) * 8, v, true); 80 m_integer = llvm::APInt(sizeof(long long) * 8, v); 92 llvm::APInt(BITWIDTH_INT128, NUM_OF_WORDS_INT128, 97 llvm::APInt(BITWIDTH_INT128, NUM_OF_WORDS_INT128, 100 Scalar(llvm::APInt [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 42 const APInt &Demanded) { 48 const APInt *C; 69 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 83 const APInt &DemandedMask, 118 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, 177 APInt IKnownZero = RHSKnown.Zero | LHSKnown.Zero; 179 APInt IKnownOne = RHSKnown.One & LHSKnown.One; 211 APInt IKnownZero = RHSKnown.Zero & LHSKnown.Zero; 213 APInt IKnownOn [all...] |
H A D | InstCombineInternal.h | 53 class APInt; 119 inline bool isSignBitCheck(ICmpInst::Predicate Pred, const APInt &RHS, 744 bool MaskedValueIsZero(const Value *V, const APInt &Mask, unsigned Depth = 0, 838 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, KnownBits &Known, 841 const APInt &DemandedMask, KnownBits &Known, 848 const APInt &DemandedMask, 855 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, 856 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known); 863 APInt DemandedElt [all...] |