Home
last modified time | relevance | path

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

123456

/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/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.cpp206 NewRHS = DAG.getConstant(0, RetVT); in softenSetCCOperands()
306 DAG.getConstant(Demanded & in ShrinkDemandedConstant()
452 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, Op.getValueType())); in SimplifyDemandedBits()
540 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, VT); in SimplifyDemandedBits()
556 TLO.DAG.getConstant(Expanded, VT)); in SimplifyDemandedBits()
629 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
653 TLO.DAG.getConstant(ShAmt, ShTy)); in SimplifyDemandedBits()
675 TLO.DAG.getConstant(ShAmt - InnerShAmt, in SimplifyDemandedBits()
718 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
783 TLO.DAG.getConstant(BitWidth - 1 - Log2, in SimplifyDemandedBits()
[all …]
DLegalizeDAG.cpp252 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), in ExpandConstantFP()
334 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy(AS)); in ExpandUnalignedStore()
388 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedStore()
400 DAG.getConstant(IncrementSize, TLI.getPointerTy(AS))); in ExpandUnalignedStore()
451 SDValue Increment = DAG.getConstant(RegBytes, TLI.getPointerTy()); in ExpandUnalignedLoad()
531 DAG.getConstant(IncrementSize, Ptr.getValueType())); in ExpandUnalignedLoad()
543 DAG.getConstant(IncrementSize, Ptr.getValueType())); in ExpandUnalignedLoad()
552 SDValue ShiftAmount = DAG.getConstant(NumBits, in ExpandUnalignedLoad()
599 Tmp3 = DAG.getNode(ISD::MUL, dl, IdxVT, Tmp3,DAG.getConstant(EltSize, IdxVT)); in PerformInsertVectorEltInMemory()
656 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
[all …]
DLegalizeIntegerTypes.cpp310 DAG.getConstant(DiffBits, TLI.getShiftAmountTy(NVT))); in PromoteIntRes_BSWAP()
358 DAG.getConstant(NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(), in PromoteIntRes_CTLZ()
379 Op = DAG.getNode(ISD::OR, dl, NVT, Op, DAG.getConstant(TopBit, NVT)); in PromoteIntRes_CTTZ()
738 DAG.getConstant(0, Hi.getValueType()), ISD::SETNE); in PromoteIntRes_XMULO()
797 DAG.getConstant(i * RegVT.getSizeInBits(), in PromoteIntRes_VAARG()
990 DAG.getConstant(OVT.getSizeInBits(), TLI.getPointerTy())); in PromoteIntOp_BUILD_PAIR()
1160 SDValue ZeroVal = DAG.getConstant(0, MaskVT); in PromoteIntOp_MSTORE()
1366 Lo = Hi = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
1368 Lo = DAG.getConstant(0, NVT); in ExpandShiftByConstant()
1370 NVT, InL, DAG.getConstant(Amt-NVTBits, ShTy)); in ExpandShiftByConstant()
[all …]
DLegalizeVectorOps.cpp539 DAG.getConstant(LoadBytes, BasePTR.getValueType())); in ExpandLoad()
547 SDValue SrcEltBitMask = DAG.getConstant((1U << SrcEltBits) - 1, WideVT); in ExpandLoad()
557 ShAmt = DAG.getConstant(BitOffset, TLI.getShiftAmountTy(WideVT)); in ExpandLoad()
567 ShAmt = DAG.getConstant(SrcEltBits - BitOffset, in ExpandLoad()
586 ShAmt = DAG.getConstant(WideBits - SrcEltBits, in ExpandLoad()
607 DAG.getConstant(Stride, BasePTR.getValueType())); in ExpandLoad()
658 RegSclVT, Value, DAG.getConstant(Idx, TLI.getVectorIdxTy())); in ExpandStore()
667 DAG.getConstant(Stride, BasePTR.getValueType())); in ExpandStore()
737 DAG.getConstant(APInt::getAllOnesValue(BitTy.getSizeInBits()), BitTy), in ExpandSELECT()
738 DAG.getConstant(0, BitTy)); in ExpandSELECT()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp93 Constant *getConstant() const { in getConstant() function in __anon10360b9e0111::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()
355 markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue()
356 else if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue()
686 OperandVal = IV.getConstant(); in visitPHINode()
696 if (IV.getConstant() != OperandVal) in visitPHINode()
754 OpSt.getConstant(), I.getType())); in visitCastInst()
836 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
[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/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()
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()
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()
/external/llvm/lib/MC/
DMCValue.cpp20 OS << getConstant(); in print()
36 if (getConstant()) in print()
37 OS << " + " << getConstant(); in print()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp301 SDValue Remaining = DAG.getConstant(Offset - FoldedOffset, MVT::i32); in LowerGlobalAddress()
371 DAG.getConstant(1, MVT::i32)); in LowerBR_JT()
396 DAG.getConstant(LowOffset, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
398 DAG.getConstant(HighOffset, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
400 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
401 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
472 DAG.getConstant(2, MVT::i32)); in LowerLOAD()
479 DAG.getConstant(16, MVT::i32)); in LowerLOAD()
532 DAG.getConstant(16, MVT::i32)); in LowerSTORE()
538 DAG.getConstant(2, MVT::i32)); in LowerSTORE()
[all …]
/external/llvm/lib/Target/R600/
DR600ISelLowering.cpp619 DAG.getConstant(0, MVT::i32), // SWZ_X in LowerOperation()
620 DAG.getConstant(1, MVT::i32), // SWZ_Y in LowerOperation()
621 DAG.getConstant(2, MVT::i32), // SWZ_Z in LowerOperation()
622 DAG.getConstant(3, MVT::i32) // SWZ_W in LowerOperation()
753 DAG.getConstant(TextureOp, MVT::i32), in LowerOperation()
755 DAG.getConstant(0, MVT::i32), in LowerOperation()
756 DAG.getConstant(1, MVT::i32), in LowerOperation()
757 DAG.getConstant(2, MVT::i32), in LowerOperation()
758 DAG.getConstant(3, MVT::i32), in LowerOperation()
762 DAG.getConstant(0, MVT::i32), in LowerOperation()
[all …]
DAMDGPUISelLowering.cpp683 return DAG.getStore(Chain, DL, DAG.getConstant(*CI, VT), InitPtr, in LowerConstantInitializer()
703 SDValue Offset = DAG.getConstant(SL->getElementOffset(I), PtrVT); in LowerConstantInitializer()
727 SDValue Offset = DAG.getConstant(i * EltSize, PtrVT); in LowerConstantInitializer()
789 return DAG.getConstant(Offset, getPointerTy(AMDGPUAS::LOCAL_ADDRESS)); in LowerGlobalAddress()
873 return DAG.getConstant(Offset * 4 * TFL->getStackWidth(MF), in LowerFrameIndex()
1045 SDValue Neg = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, VT), in LowerIntrinsicIABS()
1206 DAG.getConstant(i * MemEltSize, PtrVT)); in ScalarizeVectorLoad()
1257 DAG.getConstant(LoMemVT.getStoreSize(), PtrVT)); in SplitVectorLoad()
1297 SDValue Mask = DAG.getConstant((1 << MemEltBits) - 1, MVT::i32); in MergeVectorStore()
1304 DAG.getConstant(i, MVT::i32)); in MergeVectorStore()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp1183 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1193 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1204 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1215 RHS = DAG.getConstant(C, VT); in getAArch64Cmp()
1249 DAG.getConstant(ValueofRHS, RHS.getValueType()), in getAArch64Cmp()
1252 AArch64cc = DAG.getConstant(AArch64CC, MVT::i32); in getAArch64Cmp()
1260 AArch64cc = DAG.getConstant(AArch64CC, MVT::i32); in getAArch64Cmp()
1307 DAG.getConstant(0, MVT::i64)); in getAArch64XALUOOp()
1320 DAG.getConstant(32, MVT::i64)); in getAArch64XALUOOp()
1323 DAG.getConstant(31, MVT::i64)); in getAArch64XALUOOp()
[all …]
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp151 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, AVT), in EmitTargetCodeForMemset()
177 DAG.getConstant((AVT == MVT::i64) ? 7 : 3, CVT)); in EmitTargetCodeForMemset()
193 DAG.getConstant(Offset, AddrVT)), in EmitTargetCodeForMemset()
195 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemset()
282 DAG.getConstant(Offset, DstVT)), in EmitTargetCodeForMemcpy()
284 DAG.getConstant(Offset, SrcVT)), in EmitTargetCodeForMemcpy()
285 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemcpy()
/external/proguard/src/proguard/optimize/peephole/
DInstructionSequenceReplacer.java384 …((IntegerConstant)(programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argume… in argumentAsString()
389 …((IntegerConstant)(programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argume… in argumentAsString()
394 …((IntegerConstant)(programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argume… in argumentAsString()
399 …((LongConstant)(programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argument)… in argumentAsString()
404 …((FloatConstant)(programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argument… in argumentAsString()
409 …((DoubleConstant)(programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argumen… in argumentAsString()

123456