Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp85 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 DConstants.cpp412 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 DReplaceConstant.cpp38 } else if (isa<ConstantVector>(C)) { in expandUser()
H A DConstantsContext.h275 template <> struct ConstantInfo<ConstantVector> {
276 using ValType = ConstantAggrKeyType<ConstantVector>;
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILIntrinsicExpansion.cpp59 ? 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 DSPIRVRegularizer.cpp108 &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 DSPIRVGlobalRegistry.cpp451 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 DValue.def89 HANDLE_CONSTANT(ConstantVector)
108 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
H A DConstants.h83 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 DConstantFolding.cpp150 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 DVectorUtils.cpp907 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 DDifferenceEngine.cpp582 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 Dllvm-stress.cpp255 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 DOpDescriptor.cpp47 Cs.push_back(ConstantVector::getSplat(EC, Elt)); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp70 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 DFunctionComparator.cpp404 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
405 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
H A DValueMapper.cpp525 if (isa<ConstantVector>(C)) in mapValue()
526 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
H A DEvaluator.cpp210 return ConstantVector::get(Consts); in toConstant()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp936 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 DNVPTXGenericToNVVM.cpp200 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerBufferFatPointers.cpp628 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 DInstCombineSimplifyDemanded.cpp1445 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 DInstCombiner.h333 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp1011 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 DX86LegalizerInfo.cpp630 Constant *ConstVal = ConstantVector::get(CstIdxs); in legalizeBuildVector()

123