/external/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 161 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); in TEST_F() 163 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); in TEST_F() 164 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[2])); in TEST_F() 170 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[2], B[1])); in TEST_F() 171 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[1], B[2])); in TEST_F() 173 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[3], B[1])); in TEST_F() 174 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 6), A[2], B[2])); in TEST_F() 175 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[1], B[3])); in TEST_F() 176 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[3], B[2])); in TEST_F() 177 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[2], B[3])); in TEST_F() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 187 NewRHS = DAG.getConstant(0, RetVT); in softenSetCCOperands() 284 DAG.getConstant(Demanded & in ShrinkDemandedConstant() 426 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, Op.getValueType())); in SimplifyDemandedBits() 514 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, VT); in SimplifyDemandedBits() 530 TLO.DAG.getConstant(Expanded, VT)); in SimplifyDemandedBits() 603 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits() 627 TLO.DAG.getConstant(ShAmt, ShTy)); in SimplifyDemandedBits() 667 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits() 747 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, ShiftAmtTy); in SimplifyDemandedBits() 903 TLO.DAG.getConstant(ShVal, getShiftAmountTy(Op.getValueType())); in SimplifyDemandedBits() [all …]
|
D | LegalizeDAG.cpp | 262 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), in ExpandConstantFP() 342 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy()); in ExpandUnalignedStore() 397 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedStore() 408 DAG.getConstant(IncrementSize, TLI.getPointerTy())); in ExpandUnalignedStore() 461 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy()); in ExpandUnalignedLoad() 537 DAG.getConstant(IncrementSize, TLI.getPointerTy())); in ExpandUnalignedLoad() 547 DAG.getConstant(IncrementSize, TLI.getPointerTy())); in ExpandUnalignedLoad() 555 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedLoad() 602 Tmp3 = DAG.getNode(ISD::MUL, dl, IdxVT, Tmp3,DAG.getConstant(EltSize, IdxVT)); in PerformInsertVectorEltInMemory() 658 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore() [all …]
|
D | LegalizeIntegerTypes.cpp | 271 DAG.getConstant(DiffBits, TLI.getPointerTy())); in PromoteIntRes_BSWAP() 318 DAG.getConstant(NVT.getSizeInBits() - in PromoteIntRes_CTLZ() 339 Op = DAG.getNode(ISD::OR, dl, NVT, Op, DAG.getConstant(TopBit, NVT)); in PromoteIntRes_CTTZ() 671 DAG.getConstant(0, Hi.getValueType()), ISD::SETNE); in PromoteIntRes_XMULO() 730 DAG.getConstant(i * RegVT.getSizeInBits(), in PromoteIntRes_VAARG() 902 DAG.getConstant(OVT.getSizeInBits(), TLI.getPointerTy())); in PromoteIntOp_BUILD_PAIR() 1281 Lo = Hi = DAG.getConstant(0, NVT); in ExpandShiftByConstant() 1283 Lo = DAG.getConstant(0, NVT); in ExpandShiftByConstant() 1285 NVT, InL, DAG.getConstant(Amt-NVTBits, ShTy)); in ExpandShiftByConstant() 1287 Lo = DAG.getConstant(0, NVT); in ExpandShiftByConstant() [all …]
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUISelLowering.cpp | 157 SDValue Neg = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerIntrinsicIABS() 262 SDValue NEG_RCP_LO = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerUDIVREM() 266 SDValue ABS_RCP_LO = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM() 280 SDValue Tmp0 = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM() 294 DAG.getConstant(-1, VT), in LowerUDIVREM() 295 DAG.getConstant(0, VT), in LowerUDIVREM() 299 DAG.getConstant(0, VT), in LowerUDIVREM() 300 DAG.getConstant(-1, VT), in LowerUDIVREM() 301 DAG.getConstant(0, VT), in LowerUDIVREM() 311 DAG.getConstant(1, VT)); in LowerUDIVREM() [all …]
|
D | R600ISelLowering.cpp | 340 DAG.getConstant(0, MVT::i32), // SWZ_X in LowerOperation() 341 DAG.getConstant(1, MVT::i32), // SWZ_Y in LowerOperation() 342 DAG.getConstant(2, MVT::i32), // SWZ_Z in LowerOperation() 343 DAG.getConstant(3, MVT::i32) // SWZ_W in LowerOperation() 487 DAG.getConstant(ByteOffset, MVT::i32), // PTR in LowerImplicitParameter() 503 return DAG.getConstant(Offset * 4 * TFL->getStackWidth(MF), MVT::i32); in LowerFrameIndex() 514 DAG.getConstant(32, MVT::i32), in LowerROTL() 631 HWTrue = DAG.getConstant(-1, CompareVT); in LowerSELECT_CC() 632 HWFalse = DAG.getConstant(0, CompareVT); in LowerSELECT_CC() 653 DAG.getConstant(0, MVT::i32), in LowerSELECT() [all …]
|
D | AMDILISelLowering.cpp | 348 SDValue Shift = DAG.getConstant(shiftBits, DVT); in LowerSIGN_EXTEND_INREG() 419 jq = DAG.getNode(ISD::SRA, DL, OVT, jq, DAG.getConstant(bitsize - 2, OVT)); in LowerSDIV24() 422 jq = DAG.getNode(ISD::OR, DL, OVT, jq, DAG.getConstant(1, OVT)); in LowerSDIV24() 470 DAG.getConstant(0, OVT)); in LowerSDIV24() 505 r0, DAG.getConstant(0, OVT), in LowerSDIV32() 506 DAG.getConstant(-1, MVT::i32), in LowerSDIV32() 507 DAG.getConstant(0, MVT::i32), in LowerSDIV32() 512 r1, DAG.getConstant(0, OVT), in LowerSDIV32() 513 DAG.getConstant(-1, MVT::i32), in LowerSDIV32() 514 DAG.getConstant(0, MVT::i32), in LowerSDIV32() [all …]
|
/external/llvm/lib/MC/ |
D | MCValue.cpp | 19 OS << getConstant(); in print() 30 if (getConstant()) in print() 31 OS << " + " << getConstant(); in print()
|
D | MCExpr.cpp | 334 Res = Value.getConstant(); in EvaluateAsAbsolute() 431 int64_t LHS_Cst = LHS.getConstant(); in EvaluateSymbolicAdd() 532 Res = MCValue::get(!Value.getConstant()); in EvaluateAsRelocatableImpl() 539 -Value.getConstant()); in EvaluateAsRelocatableImpl() 544 Res = MCValue::get(~Value.getConstant()); in EvaluateAsRelocatableImpl() 574 -RHSValue.getConstant(), in EvaluateAsRelocatableImpl() 580 RHSValue.getConstant(), in EvaluateAsRelocatableImpl() 588 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in EvaluateAsRelocatableImpl()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SCCP.cpp | 92 Constant *getConstant() const { in getConstant() function in __anon129b48840111::LatticeVal 109 assert(getConstant() == V && "Marking constant with different value"); in markConstant() 121 if (V == getConstant()) return false; in markConstant() 135 return dyn_cast<ConstantInt>(getConstant()); in getConstantInt() 353 markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue() 354 else if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue() 683 OperandVal = IV.getConstant(); in visitPHINode() 693 if (IV.getConstant() != OperandVal) in visitPHINode() 751 OpSt.getConstant(), I.getType())); in visitCastInst() 833 TVal.getConstant() == FVal.getConstant()) in visitSelectInst() [all …]
|
/external/dexmaker/src/dx/java/com/android/dx/rop/code/ |
D | ThrowingCstInsn.java | 61 Constant cst = getConstant(); in getInlineString() 86 getConstant()); in withAddedCatch() 95 getConstant()); in withRegisterOffset() 106 getConstant()); in withNewRegisters()
|
D | CstInsn.java | 60 public Constant getConstant() { in getConstant() method in CstInsn 72 && cst.equals(((CstInsn)b).getConstant()); in contentEquals()
|
/external/dexmaker/src/dx/java/com/android/dx/dex/code/form/ |
D | Form31i.java | 49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 57 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 78 Constant cst = ci.getConstant(); in isCompatible() 102 ((CstLiteralBits) ((CstInsn) insn).getConstant()).getIntBits(); in writeTo()
|
D | Form51l.java | 50 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 58 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 79 Constant cst = ci.getConstant(); in isCompatible() 99 ((CstLiteral64) ((CstInsn) insn).getConstant()).getLongBits(); in writeTo()
|
D | Form21s.java | 49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 57 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 78 Constant cst = ci.getConstant(); in isCompatible() 104 ((CstLiteralBits) ((CstInsn) insn).getConstant()).getIntBits(); in writeTo()
|
D | Form11n.java | 49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 57 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 79 Constant cst = ci.getConstant(); in isCompatible() 105 ((CstLiteralBits) ((CstInsn) insn).getConstant()).getIntBits(); in writeTo()
|
D | Form21h.java | 49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 58 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 82 Constant cst = ci.getConstant(); in isCompatible() 114 CstLiteralBits cb = (CstLiteralBits) ((CstInsn) insn).getConstant(); in writeTo()
|
D | Form32s.java | 49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 58 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 84 Constant cst = ci.getConstant(); in isCompatible() 111 ((CstLiteralBits) ((CstInsn) insn).getConstant()).getIntBits(); in writeTo()
|
D | Form22b.java | 49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 58 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 80 Constant cst = ci.getConstant(); in isCompatible() 107 ((CstLiteralBits) ((CstInsn) insn).getConstant()).getIntBits(); in writeTo()
|
D | Form22s.java | 49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString() 58 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString() 80 Constant cst = ci.getConstant(); in isCompatible() 107 ((CstLiteralBits) ((CstInsn) insn).getConstant()).getIntBits(); in writeTo()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 255 DAG.getConstant(Intrinsic::xcore_getid, MVT::i32)); in BuildGetId() 292 DAG.getConstant(Size, MVT::i32)); in LowerGlobalTLSAddress() 348 DAG.getConstant(1, MVT::i32)); in LowerBR_JT() 437 SDValue LowOffset = DAG.getConstant(Offset & ~0x3, MVT::i32); in LowerLOAD() 438 SDValue HighOffset = DAG.getConstant((Offset & ~0x3) + 4, MVT::i32); in LowerLOAD() 439 SDValue LowShift = DAG.getConstant((Offset & 0x3) * 8, MVT::i32); in LowerLOAD() 440 SDValue HighShift = DAG.getConstant(32 - (Offset & 0x3) * 8, MVT::i32); in LowerLOAD() 465 DAG.getConstant(2, MVT::i32)); in LowerLOAD() 472 DAG.getConstant(16, MVT::i32)); in LowerLOAD() 525 DAG.getConstant(16, MVT::i32)); in LowerSTORE() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXISelLowering.cpp | 451 DAG.getConstant(paramCount, MVT::i32), in LowerCall() 452 DAG.getConstant(sz, MVT::i32), in LowerCall() 453 DAG.getConstant(isReg, MVT::i32), in LowerCall() 459 SDValue CopyParamOps[] = { Chain, DAG.getConstant(paramCount, MVT::i32), in LowerCall() 460 DAG.getConstant(0, MVT::i32), OutVals[i], InFlag }; in LowerCall() 492 DAG.getConstant(Outs[i].Flags.getByValAlign(), MVT::i32), in LowerCall() 493 DAG.getConstant(paramCount, MVT::i32), in LowerCall() 494 DAG.getConstant(sz, MVT::i32), in LowerCall() 512 DAG.getConstant(curOffset, in LowerCall() 517 SDValue CopyParamOps[] = { Chain, DAG.getConstant(paramCount, in LowerCall() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86SelectionDAGInfo.cpp | 123 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, AVT), in EmitTargetCodeForMemset() 151 DAG.getConstant((AVT == MVT::i64) ? 7 : 3, CVT)); in EmitTargetCodeForMemset() 167 DAG.getConstant(Offset, AddrVT)), in EmitTargetCodeForMemset() 169 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemset() 259 DAG.getConstant(Offset, DstVT)), in EmitTargetCodeForMemcpy() 261 DAG.getConstant(Offset, SrcVT)), in EmitTargetCodeForMemcpy() 262 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemcpy()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 852 DAG.getConstant(8, getPointerTy())); in SaveVarArgRegisters() 872 DAG.getConstant(16, getPointerTy())); in SaveVarArgRegisters() 1230 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), MVT::i64); in LowerCall() 1594 RHS = DAG.getConstant(C-1, VT); in getSelectableIntSetCC() 1601 RHS = DAG.getConstant(C-1, VT); in getSelectableIntSetCC() 1608 RHS = DAG.getConstant(C+1, VT); in getSelectableIntSetCC() 1615 RHS = DAG.getConstant(C+1, VT); in getSelectableIntSetCC() 1623 A64cc = DAG.getConstant(CondCode, MVT::i32); in getSelectableIntSetCC() 1675 DAG.getConstant(/*Alignment=*/ 4, MVT::i32)); in LowerBlockAddress() 1691 DAG.getConstant(1, MVT::i32)); in LowerBRCOND() [all …]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 314 const SCEV *ScalarEvolution::getConstant(ConstantInt *V) { in getConstant() function in ScalarEvolution 325 const SCEV *ScalarEvolution::getConstant(const APInt& Val) { in getConstant() function in ScalarEvolution 326 return getConstant(ConstantInt::get(getContext(), Val)); in getConstant() 330 ScalarEvolution::getConstant(Type *Ty, uint64_t V, bool isSigned) { in getConstant() function in ScalarEvolution 332 return getConstant(ConstantInt::get(ITy, V, isSigned)); in getConstant() 776 const SCEV *S = SE.getMinusSCEV(It, SE.getConstant(It->getType(), i)); in BinomialCoefficient() 782 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor)); in BinomialCoefficient() 786 return SE.getMulExpr(SE.getConstant(MultiplyFactor), in BinomialCoefficient() 836 return getConstant( in getTruncateExpr() 908 return getConstant( in getZeroExtendExpr() [all …]
|