Home
last modified time | relevance | path

Searched refs:getConstant (Results 1 – 25 of 120) 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/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp49 DAG.getConstant(Size, PtrVT), in emitMemMem()
50 DAG.getConstant(Size / 256, PtrVT)); in emitMemMem()
52 DAG.getConstant(Size, PtrVT)); in emitMemMem()
81 DAG.getConstant(StoreVal, MVT::getIntegerVT(Size * 8)), in memsetStore()
115 DAG.getConstant(Size1, PtrVT)); in EmitTargetCodeForMemset()
129 DAG.getConstant(1, PtrVT)); in EmitTargetCodeForMemset()
149 DAG.getConstant(1, PtrVT)); in EmitTargetCodeForMemset()
172 DAG.getConstant(Size, PtrVT), in emitCLC()
173 DAG.getConstant(Size / 256, PtrVT)); in emitCLC()
175 DAG.getConstant(Size, PtrVT)); in emitCLC()
[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 …]
/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 …]
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp203 NewRHS = DAG.getConstant(0, RetVT); in softenSetCCOperands()
303 DAG.getConstant(Demanded & in ShrinkDemandedConstant()
449 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, Op.getValueType())); in SimplifyDemandedBits()
537 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, VT); in SimplifyDemandedBits()
553 TLO.DAG.getConstant(Expanded, VT)); in SimplifyDemandedBits()
626 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
650 TLO.DAG.getConstant(ShAmt, ShTy)); in SimplifyDemandedBits()
672 TLO.DAG.getConstant(ShAmt - InnerShAmt, in SimplifyDemandedBits()
715 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
780 TLO.DAG.getConstant(BitWidth - 1 - Log2, in SimplifyDemandedBits()
[all …]
DLegalizeDAG.cpp267 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), in ExpandConstantFP()
349 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy(AS)); in ExpandUnalignedStore()
403 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedStore()
415 DAG.getConstant(IncrementSize, TLI.getPointerTy(AS))); in ExpandUnalignedStore()
466 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy()); in ExpandUnalignedLoad()
543 DAG.getConstant(IncrementSize, Ptr.getValueType())); in ExpandUnalignedLoad()
554 DAG.getConstant(IncrementSize, Ptr.getValueType())); in ExpandUnalignedLoad()
563 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedLoad()
610 Tmp3 = DAG.getNode(ISD::MUL, dl, IdxVT, Tmp3,DAG.getConstant(EltSize, IdxVT)); in PerformInsertVectorEltInMemory()
667 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
[all …]
DLegalizeIntegerTypes.cpp300 DAG.getConstant(DiffBits, TLI.getShiftAmountTy(NVT))); in PromoteIntRes_BSWAP()
348 DAG.getConstant(NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(), in PromoteIntRes_CTLZ()
369 Op = DAG.getNode(ISD::OR, dl, NVT, Op, DAG.getConstant(TopBit, NVT)); in PromoteIntRes_CTTZ()
710 DAG.getConstant(0, Hi.getValueType()), ISD::SETNE); in PromoteIntRes_XMULO()
769 DAG.getConstant(i * RegVT.getSizeInBits(), in PromoteIntRes_VAARG()
939 DAG.getConstant(OVT.getSizeInBits(), TLI.getPointerTy())); in PromoteIntOp_BUILD_PAIR()
1334 Lo = Hi = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
1336 Lo = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
1338 NVT, InL, DAG.getConstant(Amt-NVTBits, ShTy)); in ExpandShiftByConstant()
1340 Lo = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
[all …]
DLegalizeVectorOps.cpp500 DAG.getConstant(LoadBytes, BasePTR.getValueType())); in ExpandLoad()
508 SDValue SrcEltBitMask = DAG.getConstant((1U << SrcEltBits) - 1, WideVT); in ExpandLoad()
518 ShAmt = DAG.getConstant(BitOffset, TLI.getShiftAmountTy(WideVT)); in ExpandLoad()
528 ShAmt = DAG.getConstant(SrcEltBits - Offset, in ExpandLoad()
547 ShAmt = DAG.getConstant(WideBits - SrcEltBits, in ExpandLoad()
568 DAG.getConstant(Stride, BasePTR.getValueType())); in ExpandLoad()
619 RegSclVT, Value, DAG.getConstant(Idx, TLI.getVectorIdxTy())); in ExpandStore()
627 DAG.getConstant(Stride, BasePTR.getValueType())); in ExpandStore()
697 DAG.getConstant(APInt::getAllOnesValue(BitTy.getSizeInBits()), BitTy), in ExpandSELECT()
698 DAG.getConstant(0, BitTy)); in ExpandSELECT()
[all …]
/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.cpp93 Constant *getConstant() const { in getConstant() function in __anon833413620111::LatticeVal
110 assert(getConstant() == V && "Marking constant with different value"); in markConstant()
122 if (V == getConstant()) return false; in markConstant()
136 return dyn_cast<ConstantInt>(getConstant()); in getConstantInt()
354 markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue()
355 else if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue()
685 OperandVal = IV.getConstant(); in visitPHINode()
695 if (IV.getConstant() != OperandVal) in visitPHINode()
753 OpSt.getConstant(), I.getType())); in visitCastInst()
835 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
[all …]
/external/llvm/lib/MC/
DMCValue.cpp20 OS << getConstant(); in print()
36 if (getConstant()) in print()
37 OS << " + " << getConstant(); in print()
/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()
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()
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()
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()
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()
/external/llvm/lib/Target/R600/
DR600ISelLowering.cpp608 DAG.getConstant(0, MVT::i32), // SWZ_X in LowerOperation()
609 DAG.getConstant(1, MVT::i32), // SWZ_Y in LowerOperation()
610 DAG.getConstant(2, MVT::i32), // SWZ_Z in LowerOperation()
611 DAG.getConstant(3, MVT::i32) // SWZ_W in LowerOperation()
743 DAG.getConstant(TextureOp, MVT::i32), in LowerOperation()
745 DAG.getConstant(0, MVT::i32), in LowerOperation()
746 DAG.getConstant(1, MVT::i32), in LowerOperation()
747 DAG.getConstant(2, MVT::i32), in LowerOperation()
748 DAG.getConstant(3, MVT::i32), in LowerOperation()
752 DAG.getConstant(0, MVT::i32), in LowerOperation()
[all …]
DAMDGPUISelLowering.cpp605 return DAG.getStore(Chain, DL, DAG.getConstant(*CI, VT), InitPtr, in LowerConstantInitializer()
625 SDValue Offset = DAG.getConstant(SL->getElementOffset(I), PtrVT); in LowerConstantInitializer()
649 SDValue Offset = DAG.getConstant(i * EltSize, PtrVT); in LowerConstantInitializer()
698 return DAG.getConstant(Offset, getPointerTy(G->getAddressSpace())); in LowerGlobalAddress()
777 return DAG.getConstant(Offset * 4 * TFL->getStackWidth(MF), in LowerFrameIndex()
925 SDValue Neg = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerIntrinsicIABS()
1019 DAG.getConstant(i * (MemEltVT.getSizeInBits() / 8), PtrVT)); in SplitVectorLoad()
1061 SDValue Mask = DAG.getConstant((1 << MemEltBits) - 1, MVT::i32); in MergeVectorStore()
1068 DAG.getConstant(i, MVT::i32)); in MergeVectorStore()
1072 SDValue Shift = DAG.getConstant(MemEltBits * i, MVT::i32); in MergeVectorStore()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp299 SDValue Remaining = DAG.getConstant(Offset - FoldedOffset, MVT::i32); in LowerGlobalAddress()
368 DAG.getConstant(1, MVT::i32)); in LowerBR_JT()
393 DAG.getConstant(LowOffset, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
395 DAG.getConstant(HighOffset, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
397 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
398 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
466 DAG.getConstant(2, MVT::i32)); in LowerLOAD()
473 DAG.getConstant(16, MVT::i32)); in LowerLOAD()
524 DAG.getConstant(16, MVT::i32)); in LowerSTORE()
530 DAG.getConstant(2, MVT::i32)); in LowerSTORE()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp707 SDValue DeclareParamOps[] = { Chain, DAG.getConstant(align, MVT::i32), in LowerCall()
708 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
709 DAG.getConstant(sz, MVT::i32), InFlag }; in LowerCall()
724 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
725 DAG.getConstant(Offsets[j], MVT::i32), in LowerCall()
745 SDValue DeclareParamOps[] = { Chain, DAG.getConstant(align, MVT::i32), in LowerCall()
746 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
747 DAG.getConstant(sz, MVT::i32), InFlag }; in LowerCall()
768 DAG.getConstant(paramCount, MVT::i32), in LowerCall()
769 DAG.getConstant(0, MVT::i32), Elt, in LowerCall()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp1034 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1044 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1055 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1066 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1075 AArch64cc = DAG.getConstant(AArch64CC, MVT::i32); in getAArch64Cmp()
1122 DAG.getConstant(0, MVT::i64)); in getAArch64XALUOOp()
1135 DAG.getConstant(32, MVT::i64)); in getAArch64XALUOOp()
1138 DAG.getConstant(31, MVT::i64)); in getAArch64XALUOOp()
1151 DAG.getConstant(32, MVT::i64)); in getAArch64XALUOOp()
1154 DAG.getNode(AArch64ISD::SUBS, DL, VTs, DAG.getConstant(0, MVT::i64), in getAArch64XALUOOp()
[all …]
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp123 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, AVT), in EmitTargetCodeForMemset()
149 DAG.getConstant((AVT == MVT::i64) ? 7 : 3, CVT)); in EmitTargetCodeForMemset()
165 DAG.getConstant(Offset, AddrVT)), in EmitTargetCodeForMemset()
167 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemset()
257 DAG.getConstant(Offset, DstVT)), in EmitTargetCodeForMemcpy()
259 DAG.getConstant(Offset, SrcVT)), in EmitTargetCodeForMemcpy()
260 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemcpy()

12345