Home
last modified time | relevance | path

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

12345678910>>...12

/external/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp168 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); in TEST_F()
170 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); in TEST_F()
171 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[2])); in TEST_F()
177 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[2], B[1])); in TEST_F()
178 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[1], B[2])); in TEST_F()
180 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[3], B[1])); in TEST_F()
181 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 6), A[2], B[2])); in TEST_F()
182 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[1], B[3])); in TEST_F()
183 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[3], B[2])); in TEST_F()
184 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 3), A[2], B[3])); in TEST_F()
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DSimpleElementValue.java57 final ConstantUtf8 c = (ConstantUtf8) super.getConstantPool().getConstant(getIndex(), in getValueString()
68 final ConstantInteger c = (ConstantInteger) super.getConstantPool().getConstant(getIndex(), in getValueInt()
79 final ConstantInteger c = (ConstantInteger) super.getConstantPool().getConstant(getIndex(), in getValueByte()
90 final ConstantInteger c = (ConstantInteger) super.getConstantPool().getConstant(getIndex(), in getValueChar()
101 final ConstantLong j = (ConstantLong) super.getConstantPool().getConstant(getIndex()); in getValueLong()
111 final ConstantFloat f = (ConstantFloat) super.getConstantPool().getConstant(getIndex()); in getValueFloat()
121 final ConstantDouble d = (ConstantDouble) super.getConstantPool().getConstant(getIndex()); in getValueDouble()
131 … final ConstantInteger bo = (ConstantInteger) super.getConstantPool().getConstant(getIndex()); in getValueBoolean()
141 final ConstantInteger s = (ConstantInteger) super.getConstantPool().getConstant(getIndex()); in getValueShort()
160 final ConstantInteger c = (ConstantInteger) cpool.getConstant(getIndex(), in stringifyValue()
[all …]
DConstantPool.java108 c = getConstant(i, Const.CONSTANT_Utf8); in constantToString()
113 c = getConstant(i, Const.CONSTANT_Utf8); in constantToString()
150 getConstant(cmh.getReferenceIndex()).getTag()); in constantToString()
207 final Constant c = getConstant(index, tag); in constantToString()
235 public Constant getConstant( final int index ) { in getConstant() method in ConstantPool
254 public Constant getConstant( final int index, final byte tag ) throws ClassFormatException { in getConstant() method in ConstantPool
256 c = getConstant(index); in getConstant()
293 c = getConstant(index, tag); in getConstantString()
312 c = getConstant(i, Const.CONSTANT_Utf8); in getConstantString()
DEnumElementValue.java58 final ConstantUtf8 cu8 = (ConstantUtf8) super.getConstantPool().getConstant(valueIdx, in stringifyValue()
65 final ConstantUtf8 cu8 = (ConstantUtf8) super.getConstantPool().getConstant(typeIdx, in getEnumTypeString()
72 final ConstantUtf8 cu8 = (ConstantUtf8) super.getConstantPool().getConstant(valueIdx, in getEnumValueString()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DFieldOrMethod.java54 final ConstantCP cmr = (ConstantCP) cp.getConstant(super.getIndex()); in getSignature()
55 … final ConstantNameAndType cnat = (ConstantNameAndType) cp.getConstant(cmr.getNameAndTypeIndex()); in getSignature()
56 return ((ConstantUtf8) cp.getConstant(cnat.getSignatureIndex())).getBytes(); in getSignature()
64 final ConstantCP cmr = (ConstantCP) cp.getConstant(super.getIndex()); in getName()
65 … final ConstantNameAndType cnat = (ConstantNameAndType) cp.getConstant(cmr.getNameAndTypeIndex()); in getName()
66 return ((ConstantUtf8) cp.getConstant(cnat.getNameIndex())).getBytes(); in getName()
84 final ConstantCP cmr = (ConstantCP) cp.getConstant(super.getIndex()); in getClassName()
115 final ConstantCP cmr = (ConstantCP) cp.getConstant(super.getIndex()); in getReferenceType()
DSimpleElementValueGen.java191 final ConstantUtf8 c = (ConstantUtf8) getConstantPool().getConstant(idx); in getValueString()
201 final ConstantInteger c = (ConstantInteger) getConstantPool().getConstant(idx); in getValueInt()
212 final ConstantInteger c = (ConstantInteger) getConstantPool().getConstant(idx); in stringifyValue()
215 final ConstantLong j = (ConstantLong) getConstantPool().getConstant(idx); in stringifyValue()
218 final ConstantDouble d = (ConstantDouble) getConstantPool().getConstant(idx); in stringifyValue()
221 final ConstantFloat f = (ConstantFloat) getConstantPool().getConstant(idx); in stringifyValue()
224 final ConstantInteger s = (ConstantInteger) getConstantPool().getConstant(idx); in stringifyValue()
227 final ConstantInteger b = (ConstantInteger) getConstantPool().getConstant(idx); in stringifyValue()
230 final ConstantInteger ch = (ConstantInteger) getConstantPool().getConstant(idx); in stringifyValue()
233 final ConstantInteger bo = (ConstantInteger) getConstantPool().getConstant(idx); in stringifyValue()
[all …]
DNameSignatureInstruction.java44 final ConstantCP cmr = (ConstantCP) cp.getConstant(super.getIndex()); in getNameAndType()
45 return (ConstantNameAndType) cp.getConstant(cmr.getNameAndTypeIndex()); in getNameAndType()
52 return ((ConstantUtf8) cp.getConstant(cnat.getSignatureIndex())).getBytes(); in getSignature()
60 return ((ConstantUtf8) cp.getConstant(cnat.getNameIndex())).getBytes(); in getName()
/external/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp43 DAG.getConstant(Size, DL, PtrVT), in emitMemMem()
44 DAG.getConstant(Size / 256, DL, PtrVT)); in emitMemMem()
46 DAG.getConstant(Size, DL, PtrVT)); in emitMemMem()
72 DAG.getConstant(StoreVal, DL, in memsetStore()
106 DAG.getConstant(Size1, DL, PtrVT)); in EmitTargetCodeForMemset()
120 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset()
140 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset()
163 DAG.getConstant(Size, DL, PtrVT), in emitCLC()
164 DAG.getConstant(Size / 256, DL, PtrVT)); in emitCLC()
166 DAG.getConstant(Size, DL, PtrVT)); in emitCLC()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp43 DAG.getConstant(Size, DL, PtrVT), in emitMemMem()
44 DAG.getConstant(Size / 256, DL, PtrVT)); in emitMemMem()
46 DAG.getConstant(Size, DL, PtrVT)); in emitMemMem()
72 Chain, DL, DAG.getConstant(StoreVal, DL, MVT::getIntegerVT(Size * 8)), in memsetStore()
105 DAG.getConstant(Size1, DL, PtrVT)); in EmitTargetCodeForMemset()
118 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset()
137 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset()
160 DAG.getConstant(Size, DL, PtrVT), in emitCLC()
161 DAG.getConstant(Size / 256, DL, PtrVT)); in emitCLC()
163 DAG.getConstant(Size, DL, PtrVT)); in emitCLC()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DValueLattice.h149 Constant *getConstant() const { in getConstant() function
166 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger()
167 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger()
194 assert((!isConstant() || getConstant() == V) && in markConstant()
210 assert((!isConstant() || getConstant() != V) && in markNotConstant()
255 if (RHS.isConstant() && getConstant() == RHS.getConstant()) in mergeIn()
286 assert(isConstant() && isa<ConstantInt>(getConstant()) && in getConstantInt()
288 return cast<ConstantInt>(getConstant()); in getConstantInt()
300 return ConstantExpr::getCompare(Pred, getConstant(), Other.getConstant()); in getCompare()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/statics/
DPass2Verifier.java368 final Constant c = cp.getConstant(index); in checkIndex()
581 …final String sig = ((ConstantUtf8) (cp.getConstant(obj.getSignatureIndex()))).getBytes(); // Fiel… in visitField()
632 …final String sig = ((ConstantUtf8) (cp.getConstant(obj.getSignatureIndex()))).getBytes(); // Meth… in visitMethod()
831 final String name = ((ConstantUtf8) cp.getConstant(obj.getNameIndex())).getBytes(); in visitSourceFile()
839 …final String sourcefilename = ((ConstantUtf8) cp.getConstant(obj.getSourceFileIndex())).getBytes()… in visitSourceFile()
855 final String name = ((ConstantUtf8) cp.getConstant(obj.getNameIndex())).getBytes(); in visitDeprecated()
864 final String name = ((ConstantUtf8) cp.getConstant(obj.getNameIndex())).getBytes(); in visitSynthetic()
877 final String name = ((ConstantUtf8) cp.getConstant(obj.getNameIndex())).getBytes(); in visitInnerClasses()
915 final String name = ((ConstantUtf8) cp.getConstant(obj.getNameIndex())).getBytes(); in visitConstantValue()
925 …final Type field_type = Type.getType(((ConstantUtf8) (cp.getConstant(f.getSignatureIndex()))).getB… in visitConstantValue()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp257 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
361 DAG.getConstant(Demanded & in ShrinkDemandedConstant()
506 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, Op.getValueType())); in SimplifyDemandedBits()
594 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, dl, VT); in SimplifyDemandedBits()
610 TLO.DAG.getConstant(Expanded, dl, VT)); in SimplifyDemandedBits()
683 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
707 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
729 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, in SimplifyDemandedBits()
779 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
852 TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, in SimplifyDemandedBits()
[all …]
DLegalizeDAG.cpp258 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), dl, in ExpandConstantFP()
346 DAG.getConstant(EltSize, dl, IdxVT)); in PerformInsertVectorEltInMemory()
402 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
412 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt(). in OptimizeFloatStore()
423 SDValue Lo = DAG.getConstant(IntVal.trunc(32), dl, MVT::i32); in OptimizeFloatStore()
424 SDValue Hi = DAG.getConstant(IntVal.lshr(32).trunc(32), dl, MVT::i32); in OptimizeFloatStore()
431 DAG.getConstant(4, dl, Ptr.getValueType())); in OptimizeFloatStore()
543 DAG.getConstant(IncrementSize, dl, in LegalizeStoreOps()
547 DAG.getConstant(RoundWidth, dl, in LegalizeStoreOps()
559 DAG.getConstant(ExtraWidth, dl, in LegalizeStoreOps()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeDAG.cpp289 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), dl, in ExpandConstantFP()
427 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
437 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt(). in OptimizeFloatStore()
448 SDValue Lo = DAG.getConstant(IntVal.trunc(32), dl, MVT::i32); in OptimizeFloatStore()
449 SDValue Hi = DAG.getConstant(IntVal.lshr(32).trunc(32), dl, MVT::i32); in OptimizeFloatStore()
456 DAG.getConstant(4, dl, Ptr.getValueType())); in OptimizeFloatStore()
566 DAG.getConstant(IncrementSize, dl, in LegalizeStoreOps()
570 DAG.getConstant(RoundWidth, dl, in LegalizeStoreOps()
582 DAG.getConstant(ExtraWidth, dl, in LegalizeStoreOps()
590 DAG.getConstant(IncrementSize, dl, in LegalizeStoreOps()
[all …]
DTargetLowering.cpp262 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
373 SDValue NewC = DAG.getConstant(Demanded & C, DL, VT); in ShrinkDemandedConstant()
622 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, VT)); in SimplifyDemandedBits()
700 SDValue ANDC = TLO.DAG.getConstant(~Known.One & NewMask, dl, VT); in SimplifyDemandedBits()
809 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
834 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
853 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, in SimplifyDemandedBits()
903 TLO.DAG.getConstant(Diff, dl, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
972 TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, in SimplifyDemandedBits()
1001 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ExVTBits, dl, in SimplifyDemandedBits()
[all …]
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp694 auto Ops = {DAG.getConstant(0, SDLoc(), Op.getValueType()), Op.getOperand(0)}; in LowerDYNAMIC_STACKALLOC()
770 return DAG.getStore(Chain, DL, DAG.getConstant(*CI, DL, VT), InitPtr, in LowerConstantInitializer()
790 SDValue Offset = DAG.getConstant(SL->getElementOffset(I), DL, PtrVT); in LowerConstantInitializer()
814 SDValue Offset = DAG.getConstant(i * EltSize, DL, PtrVT); in LowerConstantInitializer()
883 return DAG.getConstant(Offset, SDLoc(Op), in LowerGlobalAddress()
1033 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in split64BitValue()
1034 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in split64BitValue()
1046 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in getLoHalf64()
1054 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in getHiHalf64()
1096 DAG.getConstant(Size, SL, PtrVT)); in SplitVectorLoad()
[all …]
DR600ISelLowering.cpp651 DAG.getConstant(0, DL, MVT::i32), // SWZ_X in LowerOperation()
652 DAG.getConstant(1, DL, MVT::i32), // SWZ_Y in LowerOperation()
653 DAG.getConstant(2, DL, MVT::i32), // SWZ_Z in LowerOperation()
654 DAG.getConstant(3, DL, MVT::i32) // SWZ_W in LowerOperation()
719 DAG.getConstant(TextureOp, DL, MVT::i32), in LowerOperation()
721 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
722 DAG.getConstant(1, DL, MVT::i32), in LowerOperation()
723 DAG.getConstant(2, DL, MVT::i32), in LowerOperation()
724 DAG.getConstant(3, DL, MVT::i32), in LowerOperation()
728 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp512 DAG.getConstant(0, DL, MVT::i32), // SWZ_X in LowerOperation()
513 DAG.getConstant(1, DL, MVT::i32), // SWZ_Y in LowerOperation()
514 DAG.getConstant(2, DL, MVT::i32), // SWZ_Z in LowerOperation()
515 DAG.getConstant(3, DL, MVT::i32) // SWZ_W in LowerOperation()
547 DAG.getConstant(TextureOp, DL, MVT::i32), in LowerOperation()
549 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
550 DAG.getConstant(1, DL, MVT::i32), in LowerOperation()
551 DAG.getConstant(2, DL, MVT::i32), in LowerOperation()
552 DAG.getConstant(3, DL, MVT::i32), in LowerOperation()
556 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
[all …]
DAMDGPUISelLowering.cpp1115 auto Ops = {DAG.getConstant(0, SDLoc(), Op.getValueType()), Op.getOperand(0)}; in LowerDYNAMIC_STACKALLOC()
1207 return DAG.getConstant(Offset, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress()
1330 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in split64BitValue()
1331 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in split64BitValue()
1343 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in getLoHalf64()
1351 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in getHiHalf64()
1472 SDValue jq = DAG.getConstant(1, DL, IntVT); in LowerDIVREM24()
1480 DAG.getConstant(BitSize - 2, DL, VT)); in LowerDIVREM24()
1483 jq = DAG.getNode(ISD::OR, DL, VT, jq, DAG.getConstant(1, DL, VT)); in LowerDIVREM24()
1528 jq = DAG.getNode(ISD::SELECT, DL, VT, cv, jq, DAG.getConstant(0, DL, VT)); in LowerDIVREM24()
[all …]
/external/llvm/lib/MC/
DMCValue.cpp20 OS << getConstant(); in print()
36 if (getConstant()) in print()
37 OS << " + " << getConstant(); in print()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCValue.cpp21 OS << getConstant(); in print()
37 if (getConstant()) in print()
38 OS << " + " << getConstant(); in print()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/
DConstantHTML.java101 final ConstantMethodref c = (ConstantMethodref) constant_pool.getConstant(index, in writeConstant()
107 .getConstant(index, Const.CONSTANT_InterfaceMethodref); in writeConstant()
121 final ConstantNameAndType c2 = (ConstantNameAndType) constant_pool.getConstant( in writeConstant()
158 final ConstantFieldref c3 = (ConstantFieldref) constant_pool.getConstant(index, in writeConstant()
186 … final ConstantClass c4 = (ConstantClass) constant_pool.getConstant(index, Const.CONSTANT_Class); in writeConstant()
200 final ConstantString c5 = (ConstantString) constant_pool.getConstant(index, in writeConstant()
208 … final ConstantNameAndType c6 = (ConstantNameAndType) constant_pool.getConstant(index, in writeConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSCCP.cpp116 Constant *getConstant() const { in getConstant() function in __anone384e6410111::LatticeVal
133 assert(getConstant() == V && "Marking constant with different value"); in markConstant()
145 if (V == getConstant()) return false; in markConstant()
159 return dyn_cast<ConstantInt>(getConstant()); in getConstantInt()
167 return dyn_cast<BlockAddress>(getConstant()); in getBlockAddress()
181 return ValueLatticeElement::get(getConstant()); in toValueLattice()
452 return markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue()
453 if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue()
757 OperandVal = IV.getConstant(); in visitPHINode()
767 if (IV.getConstant() != OperandVal) in visitPHINode()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp96 Constant *getConstant() const { in getConstant() function in __anon19af48a90111::LatticeVal
113 assert(getConstant() == V && "Marking constant with different value"); in markConstant()
125 if (V == getConstant()) return false; in markConstant()
139 return dyn_cast<ConstantInt>(getConstant()); in getConstantInt()
371 return markConstant(IV, V, MergeWithV.getConstant()); in mergeInValue()
372 if (IV.getConstant() != MergeWithV.getConstant()) in mergeInValue()
709 OperandVal = IV.getConstant(); in visitPHINode()
719 if (IV.getConstant() != OperandVal) in visitPHINode()
777 Constant *C = ConstantFoldCastOperand(I.getOpcode(), OpSt.getConstant(), in visitCastInst()
865 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp295 SDValue Remaining = DAG.getConstant(Offset - FoldedOffset, DL, MVT::i32); in LowerGlobalAddress()
366 DAG.getConstant(1, dl, MVT::i32)); in LowerBR_JT()
391 DAG.getConstant(LowOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
393 DAG.getConstant(HighOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
395 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
396 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
466 DAG.getConstant(2, DL, MVT::i32)); in LowerLOAD()
473 DAG.getConstant(16, DL, MVT::i32)); in LowerLOAD()
527 DAG.getConstant(16, dl, MVT::i32)); in LowerSTORE()
533 DAG.getConstant(2, dl, MVT::i32)); in LowerSTORE()
[all …]

12345678910>>...12