Searched refs:APInt (Results 51 - 75 of 383) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DVerifier.h29 class APInt;
63 APInt &Offset, bool IsNewFormat);
H A DMDBuilder.h26 class APInt;
88 MDNode *createRange(const APInt &Lo, const APInt &Hi);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h176 APInt First;
177 APInt Last;
183 JumpTableHeader(APInt F, APInt L, const Value *SV, MachineBasicBlock *H,
204 APInt First;
205 APInt Range;
218 BitTestBlock(APInt F, APInt R, const Value *SV, unsigned Rg, MVT RgVT, bool E,
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h17 #include "llvm/ADT/APInt.h"
221 using SizeOffsetType = std::pair<APInt, APInt>;
231 APInt Zero;
234 APInt align(APInt Size, uint64_t Align);
237 return std::make_pair(APInt(), APInt());
277 bool CheckedZextOrTrunc(APInt &I);
H A DLoads.h50 const APInt &Size, const DataLayout &DL,
62 bool isSafeToLoadUnconditionally(Value *V, MaybeAlign Alignment, APInt &Size,
H A DConstantFolding.h23 class APInt;
38 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset,
H A DLoopUnrollAnalyzer.h52 IterationNumber = SE.getConstant(APInt(64, Iteration));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp494 bool TargetLowering::ShrinkDemandedConstant(SDValue Op, const APInt &Demanded,
515 const APInt &C = Op1C->getAPIntValue();
537 const APInt &Demanded,
580 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
595 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
601 APInt DemandedElts = VT.isVector()
602 ? APInt::getAllOnesValue(VT.getVectorNumElements())
603 : APInt(1, 1);
611 SDValue Op, const APInt &DemandedBits, const APInt
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h19 #include "llvm/ADT/APInt.h"
59 /// the APInt class. The library will work with bignum integers whose parts are
143 typedef APInt::WordType integerPart;
144 static const unsigned integerPartWidth = APInt::APINT_BITS_PER_WORD;
250 IEEEFloat(const fltSemantics &, const APInt &);
298 opStatus convertFromAPInt(const APInt &, bool, roundingMode);
304 APInt bitcastToAPInt() const;
459 const APInt *fill = nullptr);
539 APInt convertHalfAPFloatToAPInt() const;
540 APInt convertFloatAPFloatToAPIn
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp228 &MRI](const MachineInstr &MI) -> Optional<APInt> {
236 APInt Val = CstVal.isImm() ? APInt(BitWidth, CstVal.getImm())
270 Optional<APInt> MaybeVal = GetImmediateValue(*MI);
273 APInt &Val = *MaybeVal;
338 Optional<APInt> llvm::ConstantFoldBinOp(unsigned Opcode, const unsigned Op1,
345 APInt C1(Ty.getSizeInBits(), *MaybeOp1Cst, true);
346 APInt C2(Ty.getSizeInBits(), *MaybeOp2Cst, true);
414 Optional<APInt> llvm::ConstantFoldExtOp(unsigned Opcode, const unsigned Op1,
420 APInt C
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/
H A DFixedPoint.cpp34 auto Mask = llvm::APInt::getBitsSetFrom(
37 llvm::APInt Masked(NewVal & Mask);
189 llvm::APInt FractPart = Val.zextOrTrunc(Scale).zext(Width);
190 llvm::APInt FractPartMask = llvm::APInt::getAllOnesValue(Scale).zext(Width);
191 llvm::APInt RadixInt = llvm::APInt(Width, 10);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp9 #include "llvm/ADT/APInt.h"
174 APInt A = APInt(BW, ~0ULL).lshr(SR).shl(SL);
180 APInt M = CM->getValue().lshr(SL);
200 APInt C = APInt::getHighBitsSet(BW, BW-U);
206 // left), and check if the result is APInt's "mask":
/freebsd-11-stable/contrib/llvm-project/lldb/source/Utility/
H A DScalar.cpp169 llvm::APInt ldbl_val = m_float.bitcastToAPInt();
212 llvm::APInt zero_int = llvm::APInt::getNullValue(m_integer.getBitWidth() / 8);
228 return llvm::APInt::isSameValue(zero_int, m_integer);
310 m_integer = llvm::APInt(sizeof(int) * 8, v, true);
316 m_integer = llvm::APInt(sizeof(int) * 8, v);
322 m_integer = llvm::APInt(sizeof(long) * 8, v, true);
328 m_integer = llvm::APInt(sizeof(long) * 8, v);
334 m_integer = llvm::APInt(sizeof(long) * 8, v, true);
340 m_integer = llvm::APInt(sizeo
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DSwitchLoweringUtils.cpp23 const APInt &LowCase = Clusters[First].Low->getValue();
24 const APInt &HighCase = Clusters[Last].High->getValue();
72 const APInt &Hi = Clusters[i].High->getValue();
73 const APInt &Lo = Clusters[i].Low->getValue();
206 const APInt &Low = Clusters[I].Low->getValue();
207 const APInt &High = Clusters[I].High->getValue();
211 const APInt &PreviousHigh = Clusters[I - 1].High->getValue();
378 APInt Low = Clusters[First].Low->getValue();
379 APInt High = Clusters[Last].High->getValue();
385 APInt LowBoun
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DReassociate.h35 class APInt;
113 APInt &ConstOpnd, Value *&Res);
115 reassociate::XorOpnd *Opnd2, APInt &ConstOpnd,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h41 int getIntImmCost(const APInt &Imm, Type *Ty);
43 int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty);
44 int getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.h48 int getIntImmCost(const APInt &Imm, Type *Ty);
50 int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm,
52 int getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h154 Optional<APInt> ConstantFoldBinOp(unsigned Opcode, const unsigned Op1,
158 Optional<APInt> ConstantFoldExtOp(unsigned Opcode, const unsigned Op1,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp15 #include "llvm/ADT/APInt.h"
481 static APInt getSizeWithOverflow(const SizeOffsetType &Data) {
483 return APInt(Data.first.getBitWidth(), 0);
564 APInt ObjectSizeOffsetVisitor::align(APInt Size, uint64_t Alignment) {
566 return APInt(IntTyBits, alignTo(Size.getZExtValue(), Align(Alignment)));
581 Zero = APInt::getNullValue(IntTyBits);
618 /// trouble with APInt size issues. This function handles resizing + overflow
621 bool ObjectSizeOffsetVisitor::CheckedZextOrTrunc(APInt &I) {
636 APInt Siz
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp16 #include "llvm/ADT/APInt.h"
103 const APInt *IVal;
198 const APInt *IVal;
222 const APInt *V;
237 const APInt & Val = CI->getValue();
238 const APInt &PosVal = Val.abs();
370 const APInt *C;
647 static bool multiplyOverflows(const APInt &C1, const APInt &C2, APInt
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXMCExpr.cpp49 APInt API = APF.bitcastToAPInt();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreSelectionDAGInfo.cpp25 DAG.MaskedValueIsZero(Size, APInt(SizeBitWidth, 3))) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h32 class APInt;
112 int getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx, const APInt &Imm,
116 int getIntImmCost(const APInt &Imm, Type *Ty);
118 int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp154 bool MipsDAGToDAGISel::selectVSplat(SDNode *N, APInt &Imm,
236 APInt SplatValue, SplatUndef;
244 auto IsInlineConstant = [](const APInt &Imm) { return Imm.isIntN(5); };
249 APInt NegSplatValue = 0 - SplatValue;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h31 class APInt;
75 int getIntImmCost(const APInt &Imm, Type *Ty);
76 int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm,
78 int getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,

Completed in 314 milliseconds

1234567891011>>