reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
  253         Value = State.MIs[InsnID]->getOperand(1).getCImm()->getSExtValue();
  911             State.MIs[OldInsnID]->getOperand(1).getCImm()->getSExtValue());
include/llvm/CodeGen/SelectionDAGNodes.h
 1589   int64_t getSExtValue() const { return Value->getSExtValue(); }
lib/Analysis/IVDescriptors.cpp
  817     return ConstStep->getSExtValue();
 1094   int64_t CVSize = CV->getSExtValue();
lib/Analysis/InstructionSimplify.cpp
 4889   uint64_t OffsetInt = OffsetConstInt->getSExtValue();
lib/Analysis/LoopCacheAnalysis.cpp
  183   bool InSameCacheLine = (Diff->getValue()->getSExtValue() < CLS);
  241     } else if (Level == LoopDepth && CI.getSExtValue() > MaxDistance) {
  298     return ConstantCost->getValue()->getSExtValue();
lib/Analysis/LoopUnrollAnalyzer.cpp
  122   int64_t SimplifiedAddrOpV = SimplifiedAddrOp->getSExtValue();
lib/Analysis/ScalarEvolutionExpander.cpp
 1884       int64_t Offset = VO.second->getSExtValue();
lib/Analysis/ValueTracking.cpp
 3057         if (Exponent->getBitWidth() <= 64 && Exponent->getSExtValue() % 2u == 0)
 5739     Offset += Size * OpC->getSExtValue();
lib/Bitcode/Writer/BitcodeWriter.cpp
 2347         uint64_t V = IV->getSExtValue();
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1578       Count = CI->getSExtValue();
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  927               addSInt(Variant, dwarf::DW_AT_discr_value, None, CI->getSExtValue());
 1325     Count = CI->getSExtValue();
 1370   const int32_t NumVecElements = CI->getSExtValue();
lib/CodeGen/CodeGenPrepare.cpp
 3518     TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale;
 4120     int64_t Scale = RHS->getSExtValue();
 4313     AddrMode.BaseOffs += CI->getSExtValue();
 4316     AddrMode.BaseOffs -= CI->getSExtValue();
 6419         ExtractIdx = CstVal->getSExtValue();
lib/CodeGen/GlobalISel/IRTranslator.cpp
 1076         Offset += ElementSize * CI->getSExtValue();
 1639         MIB.addImm(CI->getSExtValue());
lib/CodeGen/InterleavedAccessPass.cpp
  368     auto Index = IndexOperand->getSExtValue();
lib/CodeGen/SelectionDAG/FastISel.cpp
  631     uint64_t Imm = CI->getSExtValue();
  767       Ops.push_back(MachineOperand::CreateImm(C->getSExtValue()));
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  736         MIB.addImm(CI->getSExtValue());
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 6574         cast<ConstantInt>(I.getArgOperand(0))->getSExtValue();
lib/IR/AbstractCallSite.cpp
  112     int64_t Idx = cast<ConstantInt>(OpAsCM->getValue())->getSExtValue();
lib/IR/AsmWriter.cpp
 1805     Printer.printInt("count", CE->getSExtValue(), /* ShouldSkipZero */ false);
lib/IR/ConstantFold.cpp
 1417   int64_t C1Val = cast<ConstantInt>(C1)->getSExtValue();
 1418   int64_t C2Val = cast<ConstantInt>(C2)->getSExtValue();
 2156   int64_t IndexVal = CI->getSExtValue();
 2367       if (CI->getSExtValue() < 0) {
 2378         if (CI->getSExtValue() < 0) {
lib/IR/Core.cpp
 1342   return unwrap<ConstantInt>(ConstantVal)->getSExtValue();
lib/IR/DataLayout.cpp
  826       if (int64_t arrayIdx = cast<ConstantInt>(Idx)->getSExtValue())
lib/IR/LLVMContextImpl.h
  342         if (RHSCount->getSExtValue() ==
  343             cast<ConstantInt>(MD->getValue())->getSExtValue())
  351       return hash_combine(cast<ConstantInt>(MD->getValue())->getSExtValue(),
lib/IR/Verifier.cpp
  896                Count.get<ConstantInt*>()->getSExtValue() >= -1,
 1950       cast<ConstantInt>(Call.getArgOperand(1))->getSExtValue();
lib/Target/AArch64/AArch64FastISel.cpp
  640             TmpOffset += CI->getSExtValue() * S;
  647             TmpOffset += CI->getSExtValue() * S;
  689       Addr.setOffset(Addr.getOffset() + CI->getSExtValue());
  706       Addr.setOffset(Addr.getOffset() - CI->getSExtValue());
 1214     uint64_t Imm = IsZExt ? C->getZExtValue() : C->getSExtValue();
 5040             DL.getTypeAllocSize(Ty) * cast<ConstantInt>(CI)->getSExtValue();
lib/Target/AArch64/AArch64InstructionSelector.cpp
 4364   RHSC = RHSOp1.getCImm()->getSExtValue();
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
 1494       GEPInfo.Imm = OpDef->getOperand(1).getCImm()->getSExtValue();
 2051             RHSDef->getOperand(1).getCImm()->getSExtValue();
 2153         RHSDef->getOperand(1).getCImm()->getSExtValue();
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  905   int ci_opr1 = (CINT ? (int)CINT->getSExtValue() : 0x1111111);
 1163   int ci_opr1 = (int)CINT->getSExtValue();
 1590       double val = (double)iopr1->getSExtValue();
 1599       double val = (double)iopr1->getSExtValue();
lib/Target/ARM/ARMAsmPrinter.cpp
 1199         Offset = -cast<ConstantInt>(CPE.Val.ConstVal)->getSExtValue();
lib/Target/ARM/ARMFastISel.cpp
  484     unsigned Imm = (unsigned)~(CI->getSExtValue());
  772               TmpOffset += CI->getSExtValue() * S;
  779               TmpOffset += CI->getSExtValue() * S;
lib/Target/AVR/AVRISelLowering.cpp
 1788       if ((C->getSExtValue() >= -63) && (C->getSExtValue() <= 0)) {
 1788       if ((C->getSExtValue() >= -63) && (C->getSExtValue() <= 0)) {
 1816       if (C->getSExtValue() == -1) {
 1838       if ((C->getSExtValue() >= -6) && (C->getSExtValue() <= 5)) {
 1838       if ((C->getSExtValue() >= -6) && (C->getSExtValue() <= 5)) {
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  223         DimSize *= CI->getSExtValue();
lib/Target/BPF/BTFDebug.cpp
  487         int64_t Count = CI->getSExtValue();
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1565     return (CI->getType()->getSignBit() & CI->getSExtValue()) == 0;
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
  111       if (!(C && C->getSExtValue() == 16))
  122       if (!(C && C->getSExtValue() == 16))
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  424       if (C1->getSExtValue() != C2->getSExtValue())
  424       if (C1->getSExtValue() != C2->getSExtValue())
lib/Target/Mips/MipsFastISel.cpp
  504             TmpOffset += CI->getSExtValue() * S;
  511             TmpOffset += CI->getSExtValue() * S;
lib/Target/NVPTX/NVVMReflect.cpp
  168         ReflectVal = Flag->getSExtValue();
lib/Target/PowerPC/PPCFastISel.cpp
  362               TmpOffset += CI->getSExtValue() * S;
  369               TmpOffset += CI->getSExtValue() * S;
 2216   int64_t Imm = UseSExt ? CI->getSExtValue() : CI->getZExtValue();
lib/Target/Sparc/SparcISelLowering.cpp
 3212       if (isInt<13>(C->getSExtValue()))
lib/Target/SystemZ/SystemZISelLowering.cpp
  855               (isInt<16>(C->getSExtValue()) || isUInt<16>(C->getZExtValue())))
 1033       if (isInt<16>(C->getSExtValue()))
 1039       if (isInt<20>(C->getSExtValue()))
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  282             TmpOffset += CI->getSExtValue() * S;
  296             TmpOffset += CI->getSExtValue() * S;
  341       uint64_t TmpOffset = Addr.getOffset() + CI->getSExtValue();
  361       int64_t TmpOffset = Addr.getOffset() - CI->getSExtValue();
lib/Target/X86/X86FastISel.cpp
  677       if (isInt<32>(CI->getSExtValue()))
  685       addFullAddress(MIB, AM).addImm(Signed ? (uint64_t) CI->getSExtValue()
  888       uint64_t Disp = (int32_t)AM.Disp + (uint64_t)CI->getSExtValue();
  923           Disp += CI->getSExtValue() * S;
  930           Disp += CI->getSExtValue() * S;
 1366   int64_t Val = RHSC->getSExtValue();
 1408         .addImm(Op1C->getSExtValue());
lib/Target/X86/X86ISelLowering.cpp
45523       if ((C->getSExtValue() >= -0x80) && (C->getSExtValue() <= 0x7f))
45523       if ((C->getSExtValue() >= -0x80) && (C->getSExtValue() <= 0x7f))
45553       if ((C->getSExtValue() >= -0x80000000LL) &&
45554           (C->getSExtValue() <= 0x7fffffffLL))
lib/Transforms/IPO/ArgumentPromotion.cpp
  181           Indices.push_back(cast<ConstantInt>(*II)->getSExtValue());
  443           Operands.push_back(cast<ConstantInt>(*II)->getSExtValue());
  638               Indices.push_back(CI->getSExtValue());
  697           Operands.push_back(C->getSExtValue());
lib/Transforms/InstCombine/InstCombineCompares.cpp
  446         Offset += Size*CI->getSExtValue();
  476       Offset += Size*CI->getSExtValue();
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1788       if (NewInsIndex != -1 || Mask[i] != IndexC->getSExtValue())
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  103     int64_t DiffUnits = ConstDUSCEV->getValue()->getSExtValue();
  110         cast<SCEVConstant>(AlignSCEV)->getValue()->getSExtValue();
lib/Transforms/Scalar/LICM.cpp
 1016         cast<ConstantInt>(II->getArgOperand(0))->getSExtValue() * 8;
lib/Transforms/Scalar/LoopDataPrefetch.cpp
  290           int64_t PD = std::abs(ConstPtrDiff->getValue()->getSExtValue());
lib/Transforms/Scalar/LoopRerollPass.cpp
  590         IVToIncMap[&*I] = IncSCEV->getValue()->getSExtValue();
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  749       return C->getValue()->getSExtValue();
 2139                                         (double)Init->getSExtValue() :
 2453               int64_t Scale = C->getSExtValue();
 3128   int64_t IncOffset = IncConst->getValue()->getSExtValue();
 4451             NewF.BaseOffset += (uint64_t)C->getValue()->getSExtValue();
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  287                                     Index->getSExtValue(), UnknownAddressSpace);
  478       IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
lib/Transforms/Utils/Local.cpp
 1691     uint64_t Val = ConstInt->getSExtValue();
lib/Transforms/Utils/LoopUtils.cpp
  225           if (IntMD && IntMD->getSExtValue() == V)
  299   return IntMD->getSExtValue();
lib/Transforms/Utils/LowerSwitch.cpp
  263       NumMergedCases = UpperBound->getSExtValue() - LowerBound->getSExtValue();
  263       NumMergedCases = UpperBound->getSExtValue() - LowerBound->getSExtValue();
  294     int64_t GapLow = LHS.back().High->getSExtValue() + 1;
  295     int64_t GapHigh = NewLowerBound->getSExtValue() - 1;
  301   LLVM_DEBUG(dbgs() << "LHS Bounds ==> [" << LowerBound->getSExtValue() << ", "
  302                     << NewUpperBound->getSExtValue() << "]\n"
  303                     << "RHS Bounds ==> [" << NewLowerBound->getSExtValue()
  304                     << ", " << UpperBound->getSExtValue() << "]\n");
  382     uint64_t Range = Leaf.High->getSExtValue() -
  383                      Leaf.Low->getSExtValue();
  417       int64_t nextValue = J->Low->getSExtValue();
  418       int64_t currentValue = I->High->getSExtValue();
  525       int64_t Low = I.Low->getSExtValue();
  526       int64_t High = I.High->getSExtValue();
lib/Transforms/Utils/SimplifyLibCalls.cpp
  374   size_t I = (0xFF & CharC->getSExtValue()) == 0
  376                  : Str.find(CharC->getSExtValue());
  402   size_t I = (0xFF & CharC->getSExtValue()) == 0
  404                  : Str.rfind(CharC->getSExtValue());
  979   size_t I = Str.find(CharC->getSExtValue() & 0xFF);
 2273     return convertStrToNumber(CI, Str, CInt->getSExtValue());
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  453       IdxDiff.sle(cast<ConstantInt>(OpB->getOperand(1))->getSExtValue())) {
tools/bugpoint/ExtractFunction.cpp
  268       int Priority = CI ? CI->getSExtValue() : 0;
tools/clang/lib/CodeGen/CGAtomic.cpp
  416     auto FOS = FO->getSExtValue();
tools/clang/lib/CodeGen/CGBuiltin.cpp
 4357   int SV = cast<ConstantInt>(V)->getSExtValue();
 4367   int ShiftAmt = cast<ConstantInt>(Shift)->getSExtValue();
 5460     int CV = cast<ConstantInt>(Ops[2])->getSExtValue();
 8047     int SV = cast<ConstantInt>(Ops[1])->getSExtValue();
 9454   Value *InfoKind = ConstantInt::get(Int64Ty, C->getSExtValue());
12663     int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex);
12709     int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 2956                                    CharUnits::fromQuantity(CI->getSExtValue()));
unittests/Analysis/ScalarEvolutionTest.cpp
  206   EXPECT_EQ(cast<ConstantInt>(Gep->getOperand(1))->getSExtValue(), -1);
unittests/IR/ConstantsTest.cpp
  108   EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue());
  109   EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue());
  110   EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue());
  111   EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue());
  112   EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue());
  116   EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue());
unittests/IR/InstructionsTest.cpp
  715   EXPECT_EQ(1, CI->getCaseValue()->getSExtValue());
  717   EXPECT_EQ(2, (CI + 1)->getCaseValue()->getSExtValue());
  719   EXPECT_EQ(3, (CI + 2)->getCaseValue()->getSExtValue());
  734   EXPECT_EQ(1, CCI->getCaseValue()->getSExtValue());
  736   EXPECT_EQ(2, (CCI + 1)->getCaseValue()->getSExtValue());
  738   EXPECT_EQ(3, (CCI + 2)->getCaseValue()->getSExtValue());
  752   EXPECT_EQ(1, Handle.getCaseValue()->getSExtValue());
unittests/IR/MetadataTest.cpp
 1144   EXPECT_EQ(5, Count.get<ConstantInt*>()->getSExtValue());
 1159   EXPECT_EQ(-1, Count.get<ConstantInt*>()->getSExtValue());