/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 16 #include "llvm/ADT/APInt.h" 287 static bool MaskedValueIsZero(const Value *V, const APInt &Mask, unsigned Depth, 290 bool llvm::MaskedValueIsZero(const Value *V, const APInt &Mask, 405 APInt Bottom0 = Known.One; 406 APInt Bottom1 = Known2.One; 421 APInt BottomKnown = Bottom0.getLoBits(TrailBitsKnown0) * 460 APInt Mask = APInt::getHighBitsSet(BitWidth, CommonPrefixBits); 615 return !TrueValues.contains(APInt::getNullValue(CI->getBitWidth())); 962 function_ref<APInt(cons [all...] |
H A D | ScalarEvolutionAliasAnalysis.cpp | 46 APInt ASizeInt(BitWidth, LocA.Size.hasValue() 49 APInt BSizeInt(BitWidth, LocB.Size.hasValue()
|
H A D | BasicAliasAnalysis.cpp | 16 #include "llvm/ADT/APInt.h" 279 const Value *V, APInt &Scale, APInt &Offset, unsigned &ZExtBits, 307 APInt RHS = RHSC->getValue().zextOrSelf(Offset.getBitWidth()); 436 static APInt adjustToPointerSize(APInt Offset, unsigned PointerSize) { 568 APInt Scale(MaxPointerSize, DL.getTypeAllocSize(GTI.getIndexedType())); 578 APInt IndexScale(Width, 0), IndexOffset(Width, 0); 594 APInt WideScaledOffset = IndexOffset.sextOrTrunc(MaxPointerSize*2) * 1289 APInt ObjectBaseOffse [all...] |
H A D | ConstantFolding.cpp | 20 #include "llvm/ADT/APInt.h" 64 static Constant *foldConstVectorToAPInt(APInt &Result, Type *DestTy, 124 APInt Result(DL.getTypeSizeInBits(DestTy), 0); 291 APInt &Offset, const DataLayout &DL) { 295 Offset = APInt(BitWidth, 0); 314 APInt TmpOffset(BitWidth, 0); 554 APInt OffsetAI; 588 APInt ResultVal = APInt(IntType->getBitWidth(), 0); 663 APInt StrVa [all...] |
H A D | ScalarEvolution.cpp | 61 #include "llvm/ADT/APInt.h" 438 const SCEV *ScalarEvolution::getConstant(const APInt &Val) { 694 const APInt &LA = LC->getAPInt(); 695 const APInt &RA = RC->getAPInt(); 960 APInt NumeratorVal = Numerator->getAPInt(); 961 APInt DenominatorVal = D->getAPInt(); 970 APInt QuotientVal(NumeratorVal.getBitWidth(), 0); 971 APInt RemainderVal(NumeratorVal.getBitWidth(), 0); 972 APInt::sdivrem(NumeratorVal, DenominatorVal, QuotientVal, RemainderVal); 1190 APInt OddFactoria [all...] |
H A D | InlineCost.cpp | 244 DenseMap<Value *, std::pair<Value *, APInt>> ConstantOffsetPtrs; 275 bool accumulateGEPOffset(GEPOperator &GEP, APInt &Offset); 670 /// Accumulate a constant GEP offset into an APInt if possible. 674 bool CallAnalyzer::accumulateGEPOffset(GEPOperator &GEP, APInt &Offset) { 693 Offset += APInt(IntPtrWidth, SL->getElementOffset(ElementIdx)); 697 APInt TypeSize(IntPtrWidth, DL.getTypeAllocSize(GTI.getIndexedType())); 761 APInt ZeroOffset = APInt::getNullValue(DL.getPointerSizeInBits(0)); 766 std::pair<Value *, APInt> FirstBaseAndOffset = {nullptr, ZeroOffset}; 789 std::pair<Value *, APInt> BaseAndOffse [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 32 #include "llvm/ADT/APInt.h" 154 const APInt *&Res; 156 apint_match(const APInt *&R) : Res(R) {} 194 /// specified pointer to the contained APInt. 195 inline apint_match m_APInt(const APInt *&Res) { return Res; } 204 const APInt &CIV = CI->getValue(); 256 /// satisfy a specified predicate, and bind them to an APInt. 258 const APInt *&Res; 260 api_pred_ty(const APInt *&R) : Res(R) {} 324 bool isValue(const APInt [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 535 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 548 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 558 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); 573 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 575 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 577 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 579 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 581 rv.IntVal = APInt(BitWidth, ((int64_t(*)())(intptr_t)FPtr)()); 587 rv.IntVal = APInt(32, ((int(*)())(intptr_t)FPtr)());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 58 #include "llvm/ADT/APInt.h" 409 APInt One(Idx->getBitWidth(), 1); 511 APInt One(RHS->getBitWidth(), 1); 564 static void unifyBitWidth(APInt &A, APInt &B) { 576 APInt Idx = C.Index->getValue(), BasisIdx = Basis.Index->getValue(); 578 APInt IndexOffset = Idx - BasisIdx; 582 APInt ElementSize( 586 APInt Q, R; 587 APInt [all...] |
H A D | SeparateConstOffsetFromGEP.cpp | 158 #include "llvm/ADT/APInt.h" 265 APInt find(Value *V, bool SignExtended, bool ZeroExtended, bool NonNegative); 268 APInt findInEitherOperand(BinaryOperator *BO, bool SignExtended, 549 APInt ConstantOffsetExtractor::findInEitherOperand(BinaryOperator *BO, 554 APInt ConstantOffset = find(BO->getOperand(0), SignExtended, ZeroExtended, 571 APInt ConstantOffsetExtractor::find(Value *V, bool SignExtended, 580 if (U == nullptr) return APInt(BitWidth, 0); 582 APInt ConstantOffset(BitWidth, 0); 741 APInt ConstantOffset = 843 APInt ElementSiz [all...] |
H A D | Reassociate.cpp | 24 #include "llvm/ADT/APInt.h" 105 const APInt &getConstPart() const { return ConstPart; } 113 APInt ConstPart; 128 const APInt *C; 142 ConstPart = APInt::getNullValue(V->getType()->getScalarSizeInBits()); 304 static void IncorporateWeight(APInt &LHS, const APInt &RHS, unsigned Opcode) { 307 // and the APInt sum LHS + RHS may not be correct if it wraps (it is correct 355 APInt CM = APInt [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | AsmLexer.cpp | 14 #include "llvm/ADT/APInt.h" 272 static AsmToken intToken(StringRef Ref, APInt &Value) 310 APInt Value(128, 0, true); 339 APInt Value(128, 0, true); 373 APInt Value(128, 0, true); 399 APInt Result(128, 0); 415 APInt Value(128, 0, true);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | InterleavedLoadCombinePass.cpp | 181 SmallVector<std::pair<BOps, APInt>, 4> B; 184 APInt A; 192 A = APInt(Ty->getBitWidth(), 0); 196 Polynomial(const APInt &A, unsigned ErrorMSBs = 0) 226 Polynomial &add(const APInt &C) { 253 Polynomial &mul(const APInt &C) { 330 Polynomial &lshr(const APInt &C) { 472 return mul(APInt(C.getBitWidth(), 0)); 498 pushBOperation(Trunc, APInt(sizeof(n) * 8, n)); 505 pushBOperation(SExt, APInt(sizeo [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | FixedPoint.h | 85 /// The APFixedPoint class works similarly to APInt/APSInt in that it is a 97 APFixedPoint(const llvm::APInt &Val, const FixedPointSemantics &Sema) 104 : APFixedPoint(llvm::APInt(Sema.getWidth(), Val, Sema.isSigned()),
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | InstructionSelector.h | 32 class APInt; 123 /// Check an immediate predicate on the specified instruction via an APInt. 477 virtual bool testImmPredicate_APInt(unsigned, const APInt &) const {
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | TargetLowering.h | 25 #include "llvm/ADT/APInt.h" 1007 bool rangeFitsInWord(const APInt &Low, const APInt &High, 1027 const APInt &Low, const APInt &High, 2548 virtual bool shouldConvertConstantLoadToIntImm(const APInt &Imm, 3105 bool ShrinkDemandedConstant(SDValue Op, const APInt &Demanded, 3111 virtual bool targetShrinkDemandedConstant(SDValue Op, const APInt &Demanded, 3119 bool ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded, 3135 bool SimplifyDemandedBits(SDValue Op, const APInt [all...] |
H A D | TargetSubtargetInfo.h | 16 #include "llvm/ADT/APInt.h" 154 virtual bool isZeroIdiom(const MachineInstr *MI, APInt &Mask) const { 165 virtual bool isDependencyBreaking(const MachineInstr *MI, APInt &Mask) const {
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/ |
H A D | RegisterFile.h | 19 #include "llvm/ADT/APInt.h" 147 APInt ZeroRegisters;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 178 int getIntImmCost(const APInt &Imm, Type *Ty); 182 int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); 183 int getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAddSub.cpp | 15 #include "llvm/ADT/APInt.h" 118 // two instructions. So the range of <IntVal> falls in [-4, 4]. APInt 779 const APInt *C1 = nullptr, *C2 = nullptr; 837 const APInt *C1, *C2; 902 const APInt *C; 907 const APInt *C2; 941 const APInt *C3; 955 static bool MatchMul(Value *E, Value *&Op, APInt &C) { 956 const APInt *AI; 962 C = APInt(A [all...] |
H A D | InstCombineCalls.cpp | 15 #include "llvm/ADT/APInt.h" 370 APInt Count(64, 0); 407 Count = APInt(64, BitWidth - 1); 501 APInt ShiftVal = COp->getValue(); 578 APInt MinValue, MaxValue; 584 APInt::getSignedMinValue(DstScalarSizeInBits).sext(SrcScalarSizeInBits); 586 APInt::getSignedMaxValue(DstScalarSizeInBits).sext(SrcScalarSizeInBits); 591 MinValue = APInt::getNullValue(SrcScalarSizeInBits); 592 MaxValue = APInt::getLowBitsSet(SrcScalarSizeInBits, DstScalarSizeInBits); 752 APInt APInde [all...] |
H A D | InstCombineCasts.cpp | 368 APInt Mask = APInt::getBitsSetFrom(OrigBitWidth, BitWidth); 379 const APInt *Amt; 391 const APInt *Amt; 397 APInt::getBitsSetFrom(OrigBitWidth, BitWidth), 0, CxtI)) { 409 const APInt *Amt; 560 APInt HiBitMask = APInt::getHighBitsSet(WideWidth, WideWidth - NarrowWidth); 739 const APInt *C; 742 APInt Mask [all...] |
H A D | InstCombineAndOrXor.cpp | 94 const APInt *C; 130 const APInt &AndRHSV = AndRHS->getValue(); 137 const APInt& AddRHS = OpRHS->getValue(); 165 Value *InstCombiner::insertRangeTest(Value *V, const APInt &Lo, const APInt &Hi, 295 APInt Mask; 508 APInt BorD = BCst->getValue() | DCst->getValue(); 509 APInt BandBxorDorE = (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())) | 690 APInt NewMask = BCst->getValue() & DCst->getValue(); 703 APInt NewMas [all...] |
H A D | InstCombineSelect.cpp | 14 #include "llvm/ADT/APInt.h" 125 const APInt *SelTC, *SelFC; 136 APInt AndMask; 144 const APInt *AndRHS; 164 APInt TC = *SelTC; 165 APInt FC = *SelFC; 203 const APInt &ValC = !TC.isNullValue() ? TC : FC; 263 static APInt getSelectFoldableConstant(BinaryOperator *I) { 273 return APInt::getNullValue(I->getType()->getScalarSizeInBits()); 275 return APInt [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 22 #include "llvm/ADT/APInt.h" 239 case 8: Result.IntVal = APInt(8 , *(int8_t *) ret.data()); break; 240 case 16: Result.IntVal = APInt(16, *(int16_t*) ret.data()); break; 241 case 32: Result.IntVal = APInt(32, *(int32_t*) ret.data()); break; 242 case 64: Result.IntVal = APInt(64, *(int64_t*) ret.data()); break; 344 GV.IntVal = APInt(32, strlen(FmtStr)); 438 GV.IntVal = APInt(32, sscanf(Args[0], Args[1], Args[2], Args[3], Args[4], 452 GV.IntVal = APInt(32, scanf( Args[0], Args[1], Args[2], Args[3], Args[4],
|