/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 85 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast() 162 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction() 173 return ConstantVector::getSplat( in ConstantFoldCastInstruction() 187 return ConstantVector::get(res); in ConstantFoldCastInstruction() 274 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction() 300 return ConstantVector::get(Result); in ConstantFoldSelectInstruction() 448 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction() 475 return ConstantVector::getSplat(MaskEltCount, Elt); in ConstantFoldShuffleVectorInstruction() 508 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction() 589 return ConstantVector::getSplat(VTy->getElementCount(), Elt); in ConstantFoldUnaryInstruction() [all …]
|
H A D | Constants.cpp | 412 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue() 428 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue() 530 delete static_cast<ConstantVector *>(C); in deleteConstant() 789 return ConstantVector::get(NewC); in replaceUndefsWith() 823 return ConstantVector::get(NewC); in mergeUndefsWith() 872 return ConstantVector::getSplat(VTy->getElementCount(), TrueC); in getTrue() 880 return ConstantVector::getSplat(VTy->getElementCount(), FalseC); in getFalse() 930 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 946 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 975 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() [all …]
|
H A D | ReplaceConstant.cpp | 38 } else if (isa<ConstantVector>(C)) { in expandUser()
|
H A D | ConstantsContext.h | 275 template <> struct ConstantInfo<ConstantVector> { 276 using ValType = ConstantAggrKeyType<ConstantVector>;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILIntrinsicExpansion.cpp | 59 ? ConstantVector::getSplat( in expandAbs() 110 Ty->isVectorTy() ? ConstantVector::getSplat( in expandExpIntrinsic() 142 X, ConstantVector::getSplat( in expandAnyIntrinsic() 146 X, ConstantVector::getSplat( in expandAnyIntrinsic() 182 Ty->isVectorTy() ? ConstantVector::getSplat( in expandLogIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVRegularizer.cpp | 108 &Ctx](ConstantVector *Vec, in runLowerConstExpr() 139 if (auto *Vec = dyn_cast<ConstantVector>(Op)) { in runLowerConstExpr() 151 if (auto *Vec = dyn_cast<ConstantVector>(C)) in runLowerConstExpr() 240 Constant *ConstVec = ConstantVector::getSplat(VecElemCount, ConstInt); in visitCallScalToVec()
|
H A D | SPIRVGlobalRegistry.cpp | 451 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateConstVector() 470 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateConstVector() 549 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Value.def | 89 HANDLE_CONSTANT(ConstantVector) 108 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
|
H A D | Constants.h | 83 friend class ConstantVector; variable 271 friend class ConstantVector; variable 508 class ConstantVector final : public ConstantAggregate { 509 friend struct ConstantAggrKeyType<ConstantVector>; 512 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 150 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast() 154 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast() 197 if (!isa<ConstantVector>(C) && // FIXME: Remove ConstantVector. in FoldBitCast() 248 return ConstantVector::get(Result); in FoldBitCast() 284 return ConstantVector::get(Result); in FoldBitCast() 496 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal() 1078 if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C)) in ConstantFoldConstantImpl() 1087 if (isa<ConstantVector>(OldC) || isa<ConstantExpr>(OldC)) { in ConstantFoldConstantImpl() 1106 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl() 1107 return ConstantVector::get(Ops); in ConstantFoldConstantImpl() [all …]
|
H A D | VectorUtils.cpp | 907 return ConstantVector::get(Mask); in createBitMaskForGaps() 1111 if (auto *CV = dyn_cast<ConstantVector>(Mask)) in possiblyDemandedEltsInMask()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/ |
H A D | DifferenceEngine.cpp | 582 if (isa<ConstantVector>(L)) { in equivalentAsOperands() 583 const ConstantVector *CVL = cast<ConstantVector>(L); in equivalentAsOperands() 584 const ConstantVector *CVR = cast<ConstantVector>(R); in equivalentAsOperands()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 255 return ConstantVector::get(VectorValue); in getRandomValue() 423 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act() 426 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act() 514 Constant *Mask = ConstantVector::get(Idxs); in Act()
|
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | OpDescriptor.cpp | 47 Cs.push_back(ConstantVector::getSplat(EC, Elt)); in makeConstantsWithType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FixupVectorConstants.cpp | 70 static Constant *getSplatValueAllowUndef(const ConstantVector *C) { in getSplatValueAllowUndef() 97 if (auto *CV = dyn_cast<ConstantVector>(C)) { in extractConstantBits() 162 if (auto *CV = dyn_cast<ConstantVector>(C)) { in getSplatableConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FunctionComparator.cpp | 404 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants() 405 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
|
H A D | ValueMapper.cpp | 525 if (isa<ConstantVector>(C)) in mapValue() 526 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
|
H A D | Evaluator.cpp | 210 return ConstantVector::get(Consts); in toConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 936 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue() 1164 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXGenericToNVVM.cpp | 200 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerBufferFatPointers.cpp | 628 if (auto *VC = dyn_cast<ConstantVector>(C)) { in materializeBufferFatPtrConst() 635 return ConstantStruct::get(NewTy, {ConstantVector::getSplat(EC, Rsrc), in materializeBufferFatPtrConst() 636 ConstantVector::getSplat(EC, Off)}); in materializeBufferFatPtrConst() 648 Constant *RsrcVec = ConstantVector::get(Rsrcs); in materializeBufferFatPtrConst() 649 Constant *OffVec = ConstantVector::get(Offs); in materializeBufferFatPtrConst()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 1445 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts() 1686 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts() 1693 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts() 1737 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts() 1838 if (auto *CV = dyn_cast<ConstantVector>(II->getOperand(2))) in SimplifyDemandedVectorElts()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
H A D | InstCombiner.h | 333 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | EarlyCSE.cpp | 1011 auto *Vec0 = dyn_cast<ConstantVector>(Mask0); in isNonTargetIntrinsicMatch() 1012 auto *Vec1 = dyn_cast<ConstantVector>(Mask1); in isNonTargetIntrinsicMatch()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/ |
H A D | X86LegalizerInfo.cpp | 630 Constant *ConstVal = ConstantVector::get(CstIdxs); in legalizeBuildVector()
|