Home
last modified time | relevance | path

Searched refs:ConstantVector (Results 1 – 25 of 104) sorted by relevance

12345

/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp44 static Constant *BitCastConstantVector(ConstantVector *CV, in BitCastConstantVector()
70 return ConstantVector::get(Result); in BitCastConstantVector()
144 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in FoldBitCast()
152 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast()
551 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in ConstantFoldCastInstruction()
561 return ConstantVector::get(res); in ConstantFoldCastInstruction()
699 if (ConstantVector* CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
704 ConstantVector *CP1 = dyn_cast<ConstantVector>(V1); in ConstantFoldSelectInstruction()
705 ConstantVector *CP2 = dyn_cast<ConstantVector>(V2); in ConstantFoldSelectInstruction()
727 if (Valid) return ConstantVector::get(Res); in ConstantFoldSelectInstruction()
[all …]
DConstants.cpp75 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue()
125 C = ConstantVector::get(std::vector<Constant *>(VTy->getNumElements(), C)); in getIntegerValue()
145 return cast<ConstantVector>(ConstantVector::get(Elts)); in getAllOnesValue()
281 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) { in getVectorElements()
390 return ConstantVector::get(Splat); in getTrue()
403 return ConstantVector::get(Splat); in getFalse()
427 return ConstantVector::get(SmallVector<Constant*, in get()
453 return ConstantVector::get( in get()
496 return ConstantVector::get( in get()
511 return ConstantVector::get( in get()
[all …]
DLLVMContextImpl.h152 VectorType, ConstantVector> VectorConstantsTy;
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp23 if (ConstantVector *C = dyn_cast<ConstantVector>(V)) { in CheapToScalarize()
66 const ConstantVector *CP = cast<ConstantVector>(SVI->getOperand(2)); in getShuffleMask()
89 if (ConstantVector *CP = dyn_cast<ConstantVector>(V)) in FindScalarElement()
132 if (ConstantVector *C = dyn_cast<ConstantVector>(EI.getOperand(0))) { in visitExtractElementInst()
429 return new ShuffleVectorInst(LHS, RHS, ConstantVector::get(Mask)); in visitInsertElementInst()
500 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
568 ConstantVector::get(Elts)); in visitShuffleVectorInst()
DInstCombineMulDivRem.cpp267 if (ConstantVector *Op1V = dyn_cast<ConstantVector>(Op1C)) { in visitFMul()
687 if (ConstantVector *RHSV = dyn_cast<ConstantVector>(Op1)) { in visitSRem()
707 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
DInstCombineSimplifyDemanded.cpp825 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) { in SimplifyDemandedVectorElts()
842 Constant *NewCP = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
864 return ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
988 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
/external/swiftshader/third_party/LLVM/include/llvm/
DConstants.h459 class ConstantVector : public Constant {
460 friend struct ConstantCreator<ConstantVector, VectorType,
462 ConstantVector(const ConstantVector &); // DO NOT IMPLEMENT
464 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
493 static inline bool classof(const ConstantVector *) { return true; }
500 struct OperandTraits<ConstantVector> :
501 public VariadicOperandTraits<ConstantVector> {
504 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantVector, Constant)
/external/llvm/lib/IR/
DConstants.cpp55 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNegativeZeroValue()
81 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isZeroValue()
115 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue()
137 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isOneValue()
159 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isMinSignedValue()
181 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNotMinSignedValue()
244 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
261 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
530 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue()
542 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse()
[all …]
DConstantFold.cpp67 return ConstantVector::get(Result); in BitCastConstantVector()
156 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast()
566 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction()
578 return ConstantVector::get(res); in ConstantFoldCastInstruction()
732 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
755 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
826 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
867 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
912 return ConstantVector::get(Result); in ConstantFoldInsertValueInstruction()
1220 return ConstantVector::get(Result); in ConstantFoldBinaryInstruction()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/
Dfetch_jit.cpp248 Constant* promoteMask = ConstantVector::get(pMask); in JitLoadVertices()
354 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 255.0… in JitLoadVertices()
358 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 65535… in JitLoadVertices()
370 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 128.0… in JitLoadVertices()
374 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 32768… in JitLoadVertices()
486 Constant* insertMask = ConstantVector::get(iMask); in JitLoadVertices()
493 Value* x0y0x1y1 = VSHUFFLE(elements[0], elements[1], ConstantVector::get(v01Mask)); in JitLoadVertices()
494 Value* x2y2x3y3 = VSHUFFLE(elements[2], elements[3], ConstantVector::get(v01Mask)); in JitLoadVertices()
495 Value* z0w0z1w1 = VSHUFFLE(elements[0], elements[1], ConstantVector::get(v23Mask)); in JitLoadVertices()
496 Value* z2w3z2w3 = VSHUFFLE(elements[2], elements[3], ConstantVector::get(v23Mask)); in JitLoadVertices()
[all …]
Dstreamout_jit.cpp106 return ConstantVector::get(indices); in PackMask()
125 return ConstantVector::get(indices); in ToMask()
Dbuilder_misc.cpp196 return ConstantVector::getSplat(mVWidth, cast<ConstantInt>(C(i))); in VIMMED1()
201 return ConstantVector::getSplat(mVWidth, cast<ConstantInt>(C(i))); in VIMMED1()
206 return ConstantVector::getSplat(mVWidth, cast<ConstantFP>(C(i))); in VIMMED1()
211 return ConstantVector::getSplat(mVWidth, cast<ConstantInt>(C(i))); in VIMMED1()
1601 return VSHUFFLE(a, VUNDEF_I(), ConstantVector::get(idx)); in VEXTRACTI128()
1618 Value *inter = VSHUFFLE(b, VUNDEF_I(), ConstantVector::get(idx)); in VINSERTI128()
1627 return VSHUFFLE(a, inter, ConstantVector::get(idx2)); in VINSERTI128()
/external/llvm/include/llvm/IR/
DValue.def71 HANDLE_CONSTANT(ConstantVector)
95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DValue.def71 HANDLE_CONSTANT(ConstantVector)
95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp63 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); in FoldBitCast()
67 ConstantVector *CV = dyn_cast<ConstantVector>(C); in FoldBitCast()
111 CV = dyn_cast<ConstantVector>(C); in FoldBitCast()
176 return ConstantVector::get(Result); in FoldBitCast()
331 if (ConstantVector *CV = dyn_cast<ConstantVector>(C)) { in ReadDataFromGlobal()
1020 if (ConstantVector *CP = dyn_cast<ConstantVector>(C)) in ConstantFoldLoadThroughGEPConstantExpr()
1303 if (ConstantVector *Op = dyn_cast<ConstantVector>(Operands[0])) { in ConstantFoldCall()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h100 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match()
146 if (const ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match()
166 if (const ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match()
600 if (ConstantVector *CV = dyn_cast<ConstantVector>(RHS)) in matchIfNot()
/external/swiftshader/third_party/LLVM/
DOnlyX86.patch129 - if (ConstantVector *Mask = dyn_cast<ConstantVector>(II->getArgOperand(2))) {
176 + // if (ConstantVector *Mask = dyn_cast<ConstantVector>(II->getArgOperand(2))) {
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DValueMapper.cpp146 if (isa<ConstantVector>(C)) in MapValue()
147 return VM[V] = ConstantVector::get(Ops); in MapValue()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineFunction.cpp671 if (const ConstantVector *AV = dyn_cast<ConstantVector>(A)) in CanShareConstantPoolEntry()
672 if (const ConstantVector *BV = dyn_cast<ConstantVector>(B)) { in CanShareConstantPoolEntry()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp210 return ConstantVector::get(VectorValue); in getRandomValue()
377 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
379 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
457 Constant *Mask = ConstantVector::get(Idxs); in Act()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp417 ConstantVector::get(ExtendMask)); in replaceExtractElements()
613 ConstantVector::get(Mask)); in visitInsertElementInst()
808 ConstantVector::get(MaskValues)); in EvaluateInDifferentElementOrder()
974 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
1061 ConstantVector::get(ShuffleMask), in visitShuffleVectorInst()
1263 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts)); in visitShuffleVectorInst()
DInstCombineShifts.cpp329 else if (ConstantVector *CV = dyn_cast<ConstantVector>(Op1)) in FoldShiftByConstant()
440 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
476 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
DInstCombineCalls.cpp78 return ConstantVector::get(BoolVec); in getNegativeIsTrueBoolVec()
413 return ConstantVector::get(ConstantVec); in simplifyX86varShift()
428 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift()
544 return ConstantVector::get(Args); in simplifyX86extrq()
600 ConstantAggregateZero::get(ShufTy), ConstantVector::get(ShuffleMask)); in simplifyX86extrq()
681 ConstantVector::get(ShuffleMask)); in simplifyX86insertq()
706 return ConstantVector::get(Args); in simplifyX86insertq()
766 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86pshufb()
818 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86vpermilvar()
854 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, Size)); in simplifyX86vpermv()
/external/llvm/lib/Analysis/
DConstantFolding.cpp113 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
117 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast()
160 if (!isa<ConstantVector>(C) && // FIXME: Remove ConstantVector. in FoldBitCast()
200 return ConstantVector::get(Result); in FoldBitCast()
235 return ConstantVector::get(Result); in FoldBitCast()
367 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1669 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall()
1889 return ConstantVector::get(NewElements); in ConstantFoldVectorCall()
1909 return ConstantVector::get(Result); in ConstantFoldVectorCall()
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DAsmPrinter.h30 class ConstantVector; variable

12345