/external/llvm/lib/IR/ |
D | Constants.cpp | 98 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue() 120 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isOneValue() 142 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isMinSignedValue() 164 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNotMinSignedValue() 225 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue() 242 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue() 257 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in getAggregateElement() 541 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue() 553 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse() 576 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() [all …]
|
D | AutoUpgrade.cpp | 357 Value *Res = ConstantVector::getSplat(NumElts, Builder.getInt8(0)); in UpgradeX86PSLLDQIntrinsics() 372 Res = Builder.CreateShuffleVector(Res, Op, ConstantVector::get(Idxs)); in UpgradeX86PSLLDQIntrinsics() 394 Value *Res = ConstantVector::getSplat(NumElts, Builder.getInt8(0)); in UpgradeX86PSRLDQIntrinsics() 409 Res = Builder.CreateShuffleVector(Op, Res, ConstantVector::get(Idxs)); in UpgradeX86PSRLDQIntrinsics() 606 Rep = Builder.CreateShuffleVector(Op0, Op1, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall() 626 Rep = Builder.CreateShuffleVector(Op1, UndefV, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall() 652 Rep = Builder.CreateShuffleVector(Op0, Rep, ConstantVector::get(Idxs2)); in UpgradeIntrinsicCall() 673 Rep = Builder.CreateShuffleVector(Op0, UndefV, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall() 707 Rep = Builder.CreateShuffleVector(Op0, Op0, ConstantVector::get(Idxs)); in UpgradeIntrinsicCall()
|
D | ConstantFold.cpp | 69 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() 821 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction() 862 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction() 907 return ConstantVector::get(Result); in ConstantFoldInsertValueInstruction() 1201 return ConstantVector::get(Result); in ConstantFoldBinaryInstruction() [all …]
|
D | ConstantsContext.h | 336 template <> struct ConstantInfo<ConstantVector> { 337 typedef ConstantAggrKeyType<ConstantVector> ValType;
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILPeepholeOptimizer.cpp | 755 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/ |
D | Constants.h | 443 class ConstantVector : public Constant { 444 friend struct ConstantAggrKeyType<ConstantVector>; 445 ConstantVector(const ConstantVector &) = delete; 447 ConstantVector(VectorType *T, ArrayRef<Constant *> Val); 484 struct OperandTraits<ConstantVector> : 485 public VariadicOperandTraits<ConstantVector> { 488 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantVector, Constant)
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 108 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() 361 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal() 1563 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall() 1761 return ConstantVector::get(Result); in ConstantFoldVectorCall()
|
D | CostModel.cpp | 129 if (isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) { in getOperandInfo()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 190 return ConstantVector::get(VectorValue); in getRandomValue() 370 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act() 372 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act() 450 Constant *Mask = ConstantVector::get(Idxs); in Act()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 328 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()
|
D | InstCombineVectorOps.cpp | 573 ConstantVector::get(Mask)); in visitInsertElementInst() 768 ConstantVector::get(MaskValues)); in EvaluateInDifferentElementOrder() 934 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst() 1021 ConstantVector::get(ShuffleMask), in visitShuffleVectorInst() 1223 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts)); in visitShuffleVectorInst()
|
D | InstCombineSimplifyDemanded.cpp | 1010 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts() 1135 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts() 1142 if (ConstantVector* CV = dyn_cast<ConstantVector>(I->getOperand(0))) { in SimplifyDemandedVectorElts()
|
D | InstCombineMulDivRem.cpp | 123 return ConstantVector::get(Elts); in getLogBase2Vector() 1439 if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) { in visitSRem() 1467 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXGenericToNVVM.cpp | 235 } else if (isa<ConstantVector>(C) || isa<ConstantArray>(C) || in remapConstant() 276 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 136 if (isa<ConstantVector>(C)) in MapValue() 137 return VM[V] = ConstantVector::get(Ops); in MapValue()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | BBVectorize.cpp | 1062 if ((isa<ConstantVector>(IOp) || isa<ConstantDataVector>(IOp)) && in areInstsCompatible() 1063 (isa<ConstantVector>(JOp) || isa<ConstantDataVector>(JOp))) { in areInstsCompatible() 2373 return ConstantVector::get(Mask); in getReplacementShuffleMask() 2580 ConstantVector::get(Mask), in getReplacementInput() 2603 ConstantVector::get(Mask), in getReplacementInput() 2619 ConstantVector::get(Mask), in getReplacementInput() 2639 new ShuffleVectorInst(I1, I2, ConstantVector::get(Mask), in getReplacementInput() 2673 ConstantVector::get(Mask), in getReplacementInput() 2710 ConstantVector::get(Mask), in getReplacementInput() 2737 ConstantVector::get(Mask), in getReplacementInput() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 575 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants() 576 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
|
/external/llvm/lib/Target/R600/ |
D | R600TextureIntrinsicsReplacer.cpp | 131 Value *SwizzleMask = ConstantVector::get(Mask); in ReplaceCallInst()
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 899 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue() 1169 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
|
/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 308 Constant *C2xi32a = ConstantVector::get(ConstVa); in TEST() 309 Constant *C2xi32b = ConstantVector::get(ConstVb); in TEST()
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 1907 Value* SV = llvm::ConstantVector::getSplat(nElts, C); in EmitNeonSplat() 1931 return llvm::ConstantVector::getSplat(VTy->getNumElements(), C); in EmitNeonShiftVector() 1951 return llvm::ConstantVector::getSplat(VTy->getNumElements(), Zero); in EmitNeonRShiftImm() 2772 ShiftAmt = ConstantVector::getSplat(VTy->getNumElements(), ShiftAmt); in EmitCommonNeonBuiltinExpr() 2907 Value *SV = llvm::ConstantVector::get(Indices); in EmitCommonNeonBuiltinExpr() 3091 ShiftAmt = ConstantVector::getSplat(VTy->getNumElements(), ShiftAmt); in EmitCommonNeonBuiltinExpr() 3111 SV = llvm::ConstantVector::get(Indices); in EmitCommonNeonBuiltinExpr() 3139 SV = llvm::ConstantVector::get(Indices); in EmitCommonNeonBuiltinExpr() 3159 SV = llvm::ConstantVector::get(Indices); in EmitCommonNeonBuiltinExpr() 3215 Value *SV = llvm::ConstantVector::get(Indices); in packTBLDVectorList() [all …]
|
D | CGExpr.cpp | 1155 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitLoadOfScalar() 1267 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitStoreOfScalar() 1413 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitLoadOfExtVectorElementLValue() 1653 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitStoreThroughExtVectorComponentLValue() 1666 llvm::Value *ExtMaskV = llvm::ConstantVector::get(ExtMask); in EmitStoreThroughExtVectorComponentLValue() 1685 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitStoreThroughExtVectorComponentLValue() 2570 return llvm::ConstantVector::get(CElts); in GenerateConstantVector() 2622 llvm::Constant *CV = llvm::ConstantVector::get(CElts); in EmitExtVectorElementExpr()
|
D | CGExprScalar.cpp | 998 Value* CV = llvm::ConstantVector::get(concat); in VisitShuffleVectorExpr() 1012 Value *MaskBits = llvm::ConstantVector::getSplat(MTy->getNumElements(), in VisitShuffleVectorExpr() 1048 Value *SV = llvm::ConstantVector::get(indices); in VisitShuffleVectorExpr() 1238 llvm::Constant *Mask = llvm::ConstantVector::get(Args); in VisitInitListExpr() 1291 llvm::Constant *Mask = llvm::ConstantVector::get(Args); in VisitInitListExpr() 1307 llvm::Constant *Mask = llvm::ConstantVector::get(Args); in VisitInitListExpr() 3433 llvm::Constant *Mask = llvm::ConstantVector::get(Args); in VisitAsTypeExpr()
|
/external/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 383 } else if (auto *CV = dyn_cast<ConstantVector>(C)) { in DecodeVPERMILPMask()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinter.cpp | 1938 static void emitGlobalConstantVector(const ConstantVector *CV, AsmPrinter &AP) { in emitGlobalConstantVector() 2235 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV)) in emitGlobalConstantImpl()
|