Searched refs:getSExtValue (Results 1 - 25 of 97) sorted by relevance

1234

/external/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp190 dbgs() << cast<ConstantInt>(LowerBound)->getSExtValue();
194 dbgs() << " - " << NewUpperBound->getSExtValue() << "\n";
196 dbgs() << NewLowerBound->getSExtValue() << " - ";
198 dbgs() << cast<ConstantInt>(UpperBound)->getSExtValue() << "\n";
274 uint64_t Range = cast<ConstantInt>(Leaf.High)->getSExtValue() -
275 cast<ConstantInt>(Leaf.Low)->getSExtValue();
303 int64_t nextValue = cast<ConstantInt>(J->Low)->getSExtValue();
304 int64_t currentValue = cast<ConstantInt>(I->High)->getSExtValue();
/external/llvm/unittests/IR/
H A DConstantsTest.cpp104 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue());
105 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue());
106 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue());
107 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue());
108 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue());
112 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue());
/external/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp152 if (isInt<16>(Imm.getSExtValue()))
155 if (isInt<32>(Imm.getSExtValue())) {
184 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue()))
248 if (isInt<16>(Imm.getSExtValue()))
H A DPPCFastISel.cpp334 TmpOffset += CI->getSExtValue() * S;
341 TmpOffset += CI->getSExtValue() * S;
757 Imm = (IsZExt) ? (long)CIVal.getZExtValue() : (long)CIVal.getSExtValue();
1127 int Imm = (int)CIVal.getSExtValue();
2030 if (isInt<16>(CI->getSExtValue())) {
2034 .addImm(CI->getSExtValue());
/external/llvm/lib/Target/XCore/
H A DXCoreISelDAGToDAG.cpp102 && (CN->getSExtValue() % 4 == 0 && CN->getSExtValue() >= 0)) {
105 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), MVT::i32);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp121 CharUnits regionSize = CharUnits::fromQuantity(extentInt->getSExtValue());
/external/llvm/unittests/ADT/
H A DAPIntTest.cpp30 EXPECT_EQ(-3, Minus3.getSExtValue());
39 EXPECT_EQ(-1, Minus1.getSExtValue());
52 EXPECT_EQ(-2, i33minus2.getSExtValue());
101 EXPECT_EQ(0u, zero.getSExtValue());
111 EXPECT_EQ(1, one.getSExtValue());
122 EXPECT_EQ(0, neg_two.getSExtValue());
123 EXPECT_EQ(-1, neg_one.getSExtValue());
126 EXPECT_EQ(-1, one.getSExtValue());
129 EXPECT_EQ(0, two.getSExtValue());
/external/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp204 int64_t v = (int64_t)N->getSExtValue();
214 int64_t v = (int64_t)N->getSExtValue();
224 int64_t v = (int64_t)N->getSExtValue();
234 int64_t v = (int64_t)N->getSExtValue();
244 int64_t v = (int64_t)N->getSExtValue();
254 int64_t v = (int64_t)N->getSExtValue();
264 int64_t v = (int64_t)N->getSExtValue();
442 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue();
509 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue();
586 int32_t Val = cast<ConstantSDNode>(OffsetNode)->getSExtValue();
[all...]
/external/llvm/lib/Target/Sparc/
H A DSparcISelDAGToDAG.cpp89 if (isInt<13>(CN->getSExtValue())) {
127 if (isInt<13>(CN->getSExtValue()))
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h613 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127
641 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023
/external/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp175 int64_t Val = Tmp.getSExtValue();
274 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
279 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
H A DAArch64AddressTypePromotion.cpp324 Cst->getSExtValue()));
/external/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp191 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
228 uint64_t Offset = CN->getSExtValue();
/external/clang/lib/Sema/
H A DSemaStmtAttr.cpp96 (ValueInt = ValueAPS.getSExtValue()) < 1) {
/external/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp265 os << C.getValue().getSExtValue();
/external/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp366 Indices.push_back(CI->getSExtValue());
411 Operands.push_back(C->getSExtValue());
573 Indices.push_back(cast<ConstantInt>(*II)->getSExtValue());
863 Operands.push_back(cast<ConstantInt>(*II)->getSExtValue());
/external/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h376 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127
404 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023
/external/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp569 return ConstantOffset.getSExtValue();
578 .getSExtValue();
/external/llvm/lib/Target/Mips/
H A DMips16ISelDAGToDAG.cpp189 if (isInt<16>(CN->getSExtValue())) {
/external/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp957 int64_t Val = Tmp.getSExtValue();
1050 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<32>(Imm.getSExtValue()))
1054 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
1059 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
H A DX86ISelDAGToDAG.cpp179 return isInt<8>(cast<ConstantSDNode>(N)->getSExtValue());
623 if (C->getSExtValue() == 0 && AM.Segment.getNode() == nullptr &&
993 if (!FoldOffsetIntoAddress(Cst->getSExtValue(), AM))
1001 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
1050 uint64_t Disp = (uint64_t)AddVal->getSExtValue() << Val;
1116 uint64_t Disp = AddVal->getSExtValue() * CN->getZExtValue();
1237 !FoldOffsetIntoAddress(CN->getSExtValue(), AM))
1721 int64_t CNVal = CN->getSExtValue();
2046 const SDValue Ops[] = { VSrc, Base, getI8Imm(Scale->getSExtValue()), VIdx,
2158 int64_t Val = Cst->getSExtValue();
[all...]
/external/clang/tools/libclang/
H A DCXType.cpp279 return TD->getInitVal().getSExtValue();
641 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
687 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
/external/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp463 if (isInt<16>(C->getSExtValue()))
469 if (isInt<20>(C->getSExtValue()))
582 if (isInt<16>(C->getSExtValue()))
583 Ops.push_back(DAG.getTargetConstant(C->getSExtValue(),
589 if (isInt<20>(C->getSExtValue()))
590 Ops.push_back(DAG.getTargetConstant(C->getSExtValue(),
1122 int64_t Value = ConstOp1->getSExtValue();
1155 int64_t SignedValue = ConstOp1->getSExtValue();
1263 isInt<16>(ConstOp1->getSExtValue()))
1765 int64_t TrueVal = TrueC->getSExtValue();
[all...]
/external/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1613 TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale;
1890 ConstantInt::getSigned(SExt->getType(), Cst->getSExtValue()));
2040 int64_t Scale = RHS->getSExtValue();
2064 ConstantOffset += CI->getSExtValue()*TypeSize;
2192 AddrMode.BaseOffs += CI->getSExtValue();
2195 AddrMode.BaseOffs -= CI->getSExtValue();
/external/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp365 BaseOffs += DL->getTypeAllocSize(*GTI)*CIdx->getSExtValue();
385 BaseOffs += IndexOffset.getSExtValue()*Scale;
386 Scale *= IndexScale.getSExtValue();

Completed in 468 milliseconds

1234