Home
last modified time | relevance | path

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

123

/external/llvm/lib/IR/
DConstants.cpp56 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNegativeZeroValue()
82 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isZeroValue()
116 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue()
138 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isOneValue()
160 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isMinSignedValue()
182 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNotMinSignedValue()
245 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
262 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
277 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in getAggregateElement()
551 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue()
[all …]
DAutoUpgrade.cpp299 Value *Res = ConstantVector::getSplat(NumElts, Builder.getInt8(0)); in UpgradeX86PSLLDQIntrinsics()
314 Res = Builder.CreateShuffleVector(Res, Op, ConstantVector::get(Idxs)); in UpgradeX86PSLLDQIntrinsics()
336 Value *Res = ConstantVector::getSplat(NumElts, Builder.getInt8(0)); in UpgradeX86PSRLDQIntrinsics()
351 Res = Builder.CreateShuffleVector(Op, Res, ConstantVector::get(Idxs)); in UpgradeX86PSRLDQIntrinsics()
466 Constant *MinusOne = ConstantVector::getSplat(NumElts, Builder.getInt64(-1)); in UpgradeIntrinsicCall()
580 Rep = Builder.CreateShuffleVector(Op0, Op1, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall()
600 Rep = Builder.CreateShuffleVector(Op1, UndefV, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall()
626 Rep = Builder.CreateShuffleVector(Op0, Rep, ConstantVector::get(Idxs2)); in UpgradeIntrinsicCall()
647 Rep = Builder.CreateShuffleVector(Op0, UndefV, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall()
681 Rep = Builder.CreateShuffleVector(Op0, Op0, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall()
DConstantFold.cpp69 return ConstantVector::get(Result); in BitCastConstantVector()
158 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast()
567 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction()
579 return ConstantVector::get(res); in ConstantFoldCastInstruction()
733 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
756 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
827 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
868 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
913 return ConstantVector::get(Result); in ConstantFoldInsertValueInstruction()
1207 return ConstantVector::get(Result); in ConstantFoldBinaryInstruction()
[all …]
DConstantsContext.h363 template <> struct ConstantInfo<ConstantVector> {
364 typedef ConstantAggrKeyType<ConstantVector> ValType;
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp755 ConstantVector *AndMaskVec = dyn_cast<ConstantVector>(AndMask); in optimizeBitExtract()
756 ConstantVector *ShrValVec = dyn_cast<ConstantVector>(ShrVal); in optimizeBitExtract()
786 newMaskConst = ConstantVector::get(maskVals); in optimizeBitExtract()
787 shiftValConst = ConstantVector::get(shiftVals); in optimizeBitExtract()
861 negOneConst = ConstantVector::get(negOneVals); in expandBFI()
903 newMaskConst = ConstantVector::get(newMaskVals); in expandBFM()
904 newShiftConst = ConstantVector::get(newShiftVals); in expandBFM()
/external/llvm/include/llvm/IR/
DConstants.h461 class ConstantVector : public Constant {
462 friend struct ConstantAggrKeyType<ConstantVector>;
463 ConstantVector(const ConstantVector &) = delete;
470 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
504 struct OperandTraits<ConstantVector> :
505 public VariadicOperandTraits<ConstantVector> {
508 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantVector, Constant)
DValue.def71 HANDLE_CONSTANT(ConstantVector)
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp211 return ConstantVector::get(VectorValue); in getRandomValue()
378 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
380 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
458 Constant *Mask = ConstantVector::get(Idxs); in Act()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp524 ConstantVector::get(Mask)); in visitInsertElementInst()
719 ConstantVector::get(MaskValues)); in EvaluateInDifferentElementOrder()
885 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
972 ConstantVector::get(ShuffleMask), in visitShuffleVectorInst()
1174 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts)); in visitShuffleVectorInst()
DInstCombineShifts.cpp328 else if (ConstantVector *CV = dyn_cast<ConstantVector>(Op1)) in FoldShiftByConstant()
439 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
475 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
DInstCombineSimplifyDemanded.cpp926 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
1051 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
1058 if (ConstantVector* CV = dyn_cast<ConstantVector>(I->getOperand(0))) { in SimplifyDemandedVectorElts()
DInstCombineCalls.cpp393 return ConstantVector::get(Args); in SimplifyX86extrq()
449 ConstantAggregateZero::get(ShufTy), ConstantVector::get(ShuffleMask)); in SimplifyX86extrq()
530 ConstantVector::get(ShuffleMask)); in SimplifyX86insertq()
555 return ConstantVector::get(Args); in SimplifyX86insertq()
1383 auto NewSelector = ConstantVector::get(Selectors); in visitCallInst()
DInstCombineMulDivRem.cpp130 return ConstantVector::get(Elts); in getLogBase2Vector()
1449 if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) { in visitSRem()
1477 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
/external/llvm/lib/Analysis/
DConstantFolding.cpp108 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
112 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast()
155 if (!isa<ConstantVector>(C) && // FIXME: Remove ConstantVector. in FoldBitCast()
195 return ConstantVector::get(Result); in FoldBitCast()
230 return ConstantVector::get(Result); in FoldBitCast()
360 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1615 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall()
1816 return ConstantVector::get(Result); in ConstantFoldVectorCall()
DCostModel.cpp129 if (isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) { in getOperandInfo()
/external/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp233 } else if (isa<ConstantVector>(C) || isa<ConstantArray>(C) || in remapConstant()
274 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp158 if (isa<ConstantVector>(C)) in MapValue()
159 return VM[V] = ConstantVector::get(Ops); in MapValue()
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp1070 if ((isa<ConstantVector>(IOp) || isa<ConstantDataVector>(IOp)) && in areInstsCompatible()
1071 (isa<ConstantVector>(JOp) || isa<ConstantDataVector>(JOp))) { in areInstsCompatible()
2387 return ConstantVector::get(Mask); in getReplacementShuffleMask()
2594 ConstantVector::get(Mask), in getReplacementInput()
2617 ConstantVector::get(Mask), in getReplacementInput()
2633 ConstantVector::get(Mask), in getReplacementInput()
2653 new ShuffleVectorInst(I1, I2, ConstantVector::get(Mask), in getReplacementInput()
2687 ConstantVector::get(Mask), in getReplacementInput()
2724 ConstantVector::get(Mask), in getReplacementInput()
2751 ConstantVector::get(Mask), in getReplacementInput()
[all …]
DLoopVectorize.cpp1977 Constant *Cv = ConstantVector::get(Indices); in getStepVector()
2102 ConstantVector::get(ShuffleMask), in reverseVector()
2117 return ConstantVector::get(Mask); in getInterleavedMask()
2128 return ConstantVector::get(Mask); in getStridedMask()
2144 return ConstantVector::get(Mask); in getSequentialMask()
3350 Identity = ConstantVector::getSplat(VF, Iden); in vectorizeLoop()
3445 ConstantVector::get(ShuffleMask), in vectorizeLoop()
5389 } else if (isa<ConstantVector>(Op2) || isa<ConstantDataVector>(Op2)) { in getInstructionCost()
/external/llvm/lib/Target/AMDGPU/
DR600TextureIntrinsicsReplacer.cpp131 Value *SwizzleMask = ConstantVector::get(Mask); in ReplaceCallInst()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp921 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue()
1191 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
/external/llvm/unittests/IR/
DInstructionsTest.cpp308 Constant *C2xi32a = ConstantVector::get(ConstVa); in TEST()
309 Constant *C2xi32b = ConstantVector::get(ConstVb); in TEST()
DConstantsTest.cpp423 Constant *CDV = ConstantVector::get(Vals); in TEST()
431 Constant *CDV = ConstantVector::get(Vals); in TEST()
/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp728 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
729 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1185 if (isa<ConstantVector>(Mask)) { in ScalarizeMaskedLoad()
1187 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in ScalarizeMaskedLoad()
1322 if (isa<ConstantVector>(Mask)) { in ScalarizeMaskedStore()
1324 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in ScalarizeMaskedStore()
1432 bool IsConstMask = isa<ConstantVector>(Mask); in ScalarizeMaskedGather()
1436 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in ScalarizeMaskedGather()
1562 bool IsConstMask = isa<ConstantVector>(Mask); in ScalarizeMaskedScatter()
1566 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in ScalarizeMaskedScatter()
4882 return ConstantVector::getSplat(End, Val); in getConstantVector()
4892 return ConstantVector::get(ConstVec); in getConstantVector()

123