Home
last modified time | relevance | path

Searched refs:getConstant (Results 1 – 25 of 121) sorted by relevance

12345

/external/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp161 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/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
DAMDGPUISelLowering.cpp155 SDValue Neg = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerIntrinsicIABS()
202 SDValue NEG_RCP_LO = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerUDIVREM()
206 SDValue ABS_RCP_LO = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM()
220 SDValue Tmp0 = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM()
234 DAG.getConstant(-1, VT), in LowerUDIVREM()
235 DAG.getConstant(0, VT), in LowerUDIVREM()
239 DAG.getConstant(0, VT), in LowerUDIVREM()
240 DAG.getConstant(-1, VT), in LowerUDIVREM()
241 DAG.getConstant(0, VT), in LowerUDIVREM()
251 DAG.getConstant(1, VT)); in LowerUDIVREM()
[all …]
DAMDILISelLowering.cpp390 DAG.getConstant(7, MVT::i32)); in LowerBUILD_VECTOR()
401 DAG.getConstant(6, MVT::i32)); in LowerBUILD_VECTOR()
412 DAG.getConstant(5, MVT::i32)); in LowerBUILD_VECTOR()
438 SDValue Shift = DAG.getConstant(shiftBits, DVT); in LowerSIGN_EXTEND_INREG()
512 jq = DAG.getNode(ISD::SRA, DL, OVT, jq, DAG.getConstant(bitsize - 2, OVT)); in LowerSDIV24()
515 jq = DAG.getNode(ISD::OR, DL, OVT, jq, DAG.getConstant(1, OVT)); in LowerSDIV24()
562 DAG.getConstant(0, OVT)); in LowerSDIV24()
598 r0, DAG.getConstant(0, OVT), in LowerSDIV32()
599 DAG.getConstant(-1, MVT::i32), in LowerSDIV32()
600 DAG.getConstant(0, MVT::i32), in LowerSDIV32()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DAMDGPUISelLowering.cpp155 SDValue Neg = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerIntrinsicIABS()
202 SDValue NEG_RCP_LO = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerUDIVREM()
206 SDValue ABS_RCP_LO = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM()
220 SDValue Tmp0 = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM()
234 DAG.getConstant(-1, VT), in LowerUDIVREM()
235 DAG.getConstant(0, VT), in LowerUDIVREM()
239 DAG.getConstant(0, VT), in LowerUDIVREM()
240 DAG.getConstant(-1, VT), in LowerUDIVREM()
241 DAG.getConstant(0, VT), in LowerUDIVREM()
251 DAG.getConstant(1, VT)); in LowerUDIVREM()
[all …]
DAMDILISelLowering.cpp390 DAG.getConstant(7, MVT::i32)); in LowerBUILD_VECTOR()
401 DAG.getConstant(6, MVT::i32)); in LowerBUILD_VECTOR()
412 DAG.getConstant(5, MVT::i32)); in LowerBUILD_VECTOR()
438 SDValue Shift = DAG.getConstant(shiftBits, DVT); in LowerSIGN_EXTEND_INREG()
512 jq = DAG.getNode(ISD::SRA, DL, OVT, jq, DAG.getConstant(bitsize - 2, OVT)); in LowerSDIV24()
515 jq = DAG.getNode(ISD::OR, DL, OVT, jq, DAG.getConstant(1, OVT)); in LowerSDIV24()
562 DAG.getConstant(0, OVT)); in LowerSDIV24()
598 r0, DAG.getConstant(0, OVT), in LowerSDIV32()
599 DAG.getConstant(-1, MVT::i32), in LowerSDIV32()
600 DAG.getConstant(0, MVT::i32), in LowerSDIV32()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp187 NewRHS = DAG.getConstant(0, RetVT); in softenSetCCOperands()
286 DAG.getConstant(Demanded & in ShrinkDemandedConstant()
428 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, Op.getValueType())); in SimplifyDemandedBits()
516 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, VT); in SimplifyDemandedBits()
532 TLO.DAG.getConstant(Expanded, VT)); in SimplifyDemandedBits()
605 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
629 TLO.DAG.getConstant(ShAmt, ShTy)); in SimplifyDemandedBits()
669 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
749 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, ShiftAmtTy); in SimplifyDemandedBits()
905 TLO.DAG.getConstant(ShVal, getShiftAmountTy(Op.getValueType())); in SimplifyDemandedBits()
[all …]
DLegalizeDAG.cpp266 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), in ExpandConstantFP()
346 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy()); in ExpandUnalignedStore()
401 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedStore()
412 DAG.getConstant(IncrementSize, TLI.getPointerTy())); in ExpandUnalignedStore()
465 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy()); in ExpandUnalignedLoad()
541 DAG.getConstant(IncrementSize, TLI.getPointerTy())); in ExpandUnalignedLoad()
551 DAG.getConstant(IncrementSize, TLI.getPointerTy())); in ExpandUnalignedLoad()
559 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedLoad()
606 Tmp3 = DAG.getNode(ISD::MUL, dl, IdxVT, Tmp3,DAG.getConstant(EltSize, IdxVT)); in PerformInsertVectorEltInMemory()
662 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
[all …]
DLegalizeIntegerTypes.cpp271 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()
682 DAG.getConstant(0, Hi.getValueType()), ISD::SETNE); in PromoteIntRes_XMULO()
741 DAG.getConstant(i * RegVT.getSizeInBits(), in PromoteIntRes_VAARG()
912 DAG.getConstant(OVT.getSizeInBits(), TLI.getPointerTy())); in PromoteIntOp_BUILD_PAIR()
1282 Lo = Hi = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
1284 Lo = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
1286 NVT, InL, DAG.getConstant(Amt-NVTBits, ShTy)); in ExpandShiftByConstant()
1288 Lo = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
[all …]
/external/llvm/lib/MC/
DMCValue.cpp19 OS << getConstant(); in print()
30 if (getConstant()) in print()
31 OS << " + " << getConstant(); in print()
/external/dexmaker/src/dx/java/com/android/dx/rop/code/
DThrowingCstInsn.java61 Constant cst = getConstant(); in getInlineString()
86 getConstant()); in withAddedCatch()
95 getConstant()); in withRegisterOffset()
106 getConstant()); in withNewRegisters()
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp92 Constant *getConstant() const { in getConstant() function in __anona95eefe80111::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/llvm/lib/Target/R600/
DAMDGPUISelLowering.cpp208 return DAG.getConstant(Offset, TD->getPointerSize() == 8 ? MVT::i64 : MVT::i32); in LowerGlobalAddress()
256 SDValue Neg = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerIntrinsicIABS()
361 SDValue NEG_RCP_LO = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerUDIVREM()
365 SDValue ABS_RCP_LO = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM()
379 SDValue Tmp0 = DAG.getSelectCC(DL, RCP_HI, DAG.getConstant(0, VT), in LowerUDIVREM()
393 DAG.getConstant(-1, VT), in LowerUDIVREM()
394 DAG.getConstant(0, VT), in LowerUDIVREM()
398 DAG.getConstant(0, VT), in LowerUDIVREM()
399 DAG.getConstant(-1, VT), in LowerUDIVREM()
400 DAG.getConstant(0, VT), in LowerUDIVREM()
[all …]
DR600ISelLowering.cpp511 DAG.getConstant(0, MVT::i32), // SWZ_X in LowerOperation()
512 DAG.getConstant(1, MVT::i32), // SWZ_Y in LowerOperation()
513 DAG.getConstant(2, MVT::i32), // SWZ_Z in LowerOperation()
514 DAG.getConstant(3, MVT::i32) // SWZ_W in LowerOperation()
626 DAG.getConstant(TextureOp, MVT::i32), in LowerOperation()
628 DAG.getConstant(0, MVT::i32), in LowerOperation()
629 DAG.getConstant(1, MVT::i32), in LowerOperation()
630 DAG.getConstant(2, MVT::i32), in LowerOperation()
631 DAG.getConstant(3, MVT::i32), in LowerOperation()
635 DAG.getConstant(0, MVT::i32), in LowerOperation()
[all …]
/external/dexmaker/src/dx/java/com/android/dx/dex/code/form/
DForm31i.java49 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()
DForm51l.java50 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()
DForm21s.java49 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()
DForm11n.java49 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()
DForm22s.java49 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()
DForm32s.java49 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()
DForm21h.java49 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()
DForm22b.java49 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/
DXCoreISelLowering.cpp256 SDValue Remaining = DAG.getConstant(Offset - FoldedOffset, MVT::i32); in LowerGlobalAddress()
264 DAG.getConstant(Intrinsic::xcore_getid, MVT::i32)); in BuildGetId()
319 DAG.getConstant(1, MVT::i32)); in LowerBR_JT()
344 DAG.getConstant(LowOffset, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
346 DAG.getConstant(HighOffset, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
348 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
349 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
417 DAG.getConstant(2, MVT::i32)); in LowerLOAD()
424 DAG.getConstant(16, MVT::i32)); in LowerLOAD()
477 DAG.getConstant(16, MVT::i32)); in LowerSTORE()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp59 DAG.getConstant(StoreVal, MVT::getIntegerVT(Size * 8)), in memsetStore()
93 DAG.getConstant(Size1, DstVT)); in EmitTargetCodeForMemset()
107 DAG.getConstant(1, DstVT)); in EmitTargetCodeForMemset()
121 DAG.getConstant(1, DstVT)); in EmitTargetCodeForMemset()
123 DAG.getConstant(Bytes - 1, MVT::i32)); in EmitTargetCodeForMemset()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp547 SDValue DeclareParamOps[] = { Chain, DAG.getConstant(align, MVT::i32), in LowerCall()
548 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
549 DAG.getConstant(sz, MVT::i32), InFlag }; in LowerCall()
571 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
572 DAG.getConstant(curOffset, MVT::i32), in LowerCall()
593 SDValue DeclareParamOps[] = { Chain, DAG.getConstant(align, MVT::i32), in LowerCall()
594 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
595 DAG.getConstant(sz, MVT::i32), InFlag }; in LowerCall()
616 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
617 DAG.getConstant(0, MVT::i32), Elt, in LowerCall()
[all …]
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp123 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()

12345