Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp83 return ConstantExpr::getBitCast(ConstantVector::get(V), DestTy); in FoldBitCast()
102 return ConstantExpr::getBitCast(ConstantVector::get(V), DestTy); in FoldBitCast()
173 return ConstantVector::getSplat( in ConstantFoldCastInstruction()
189 return ConstantVector::get(res); in ConstantFoldCastInstruction()
269 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
295 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
443 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
469 return ConstantVector::getSplat(MaskEltCount, Elt); in ConstantFoldShuffleVectorInstruction()
502 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
581 return ConstantVector::getSplat(VTy->getElementCount(), Elt); in ConstantFoldUnaryInstruction()
[all …]
H A DConstants.cpp415 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue()
431 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue()
547 delete static_cast<ConstantVector *>(C); in deleteConstant()
805 return ConstantVector::get(NewC); in replaceUndefsWith()
839 return ConstantVector::get(NewC); in mergeUndefsWith()
890 return ConstantVector::getSplat(VTy->getElementCount(), TrueC); in getTrue()
898 return ConstantVector::getSplat(VTy->getElementCount(), FalseC); in getFalse()
948 return ConstantVector::getSplat(VTy->getElementCount(), C); in get()
967 return ConstantVector::getSplat(VTy->getElementCount(), C); in get()
996 return ConstantVector::getSplat(VTy->getElementCount(), C); in get()
[all …]
H A DReplaceConstant.cpp38 } else if (isa<ConstantVector>(C)) { in expandUser()
H A DConstantsContext.h286 template <> struct ConstantInfo<ConstantVector> {
287 using ValType = ConstantAggrKeyType<ConstantVector>;
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp101 &Ctx](ConstantVector *Vec, in runLowerConstExpr()
133 if (auto *Vec = dyn_cast<ConstantVector>(Op)) { in runLowerConstExpr()
145 if (auto *Vec = dyn_cast<ConstantVector>(C)) in runLowerConstExpr()
235 Constant *ConstVec = ConstantVector::getSplat(VecElemCount, ConstInt); in visitCallScalToVec()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp158 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
167 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C) && in FoldBitCast()
210 assert((isa<ConstantVector>(C) || // FIXME: Remove ConstantVector. in FoldBitCast()
261 return ConstantVector::get(Result); in FoldBitCast()
297 return ConstantVector::get(Result); in FoldBitCast()
513 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1101 if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C)) in ConstantFoldConstantImpl()
1110 if (isa<ConstantVector>(OldC) || isa<ConstantExpr>(OldC)) { in ConstantFoldConstantImpl()
1129 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1130 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DConstant.cpp176 Constant *ConstantVector::get(ArrayRef<Constant *> V) { in get()
183 return Ctx.getOrCreateConstant(llvm::ConstantVector::get(LLVMV)); in get()
186 Constant *ConstantVector::getSplat(ElementCount EC, Constant *Elt) { in getSplat()
189 return Ctx.getOrCreateConstant(llvm::ConstantVector::getSplat(EC, LLVMElt)); in getSplat()
192 Constant *ConstantVector::getSplatValue(bool AllowPoison) const { in getSplatValue()
194 cast<llvm::ConstantVector>(Val)->getSplatValue(AllowPoison)); in getSplatValue()
H A DContext.cpp360 It->second = std::unique_ptr<ConstantVector>( in getOrCreateValueInternal()
361 new ConstantVector(cast<llvm::ConstantVector>(LLVMC), *this)); in getOrCreateValueInternal()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILIntrinsicExpansion.cpp152 ? ConstantVector::getSplat( in expandAbs()
286 Ty->isVectorTy() ? ConstantVector::getSplat( in expandExpIntrinsic()
376 X, ConstantVector::getSplat( in expandAnyOrAllIntrinsic()
380 X, ConstantVector::getSplat( in expandAnyOrAllIntrinsic()
409 Ty->isVectorTy() ? ConstantVector::getSplat( in expandLogIntrinsic()
542 One = ConstantVector::getSplat( in expandStepIntrinsic()
544 Zero = ConstantVector::getSplat( in expandStepIntrinsic()
715 ConstantVector::getSplat(ElementCount::getFixed(VecLen), ShiftAmt); in expandBufferStoreIntrinsic()
H A DDXILDataScalarization.cpp358 if (ConstantVector *ConstVecInit = dyn_cast<ConstantVector>(Init)) { in transformInitializer()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DValue.def93 HANDLE_CONSTANT(ConstantVector)
110 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
H A DConstants.h89 friend class ConstantVector; variable
279 friend class ConstantVector; variable
517 class ConstantVector final : public ConstantAggregate {
518 friend struct ConstantAggrKeyType<ConstantVector>;
521 ConstantVector(VectorType *T, ArrayRef<Constant *> Val, AllocInfo AllocInfo);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedAccessPass.cpp277 if (!isa<ConstantVector>(VPLoad->getMaskParam())) in lowerInterleavedLoad()
512 if (!isa<ConstantVector>(VPStore->getMaskParam())) in lowerInterleavedStore()
590 return ConstantVector::getSplat(LeafValueEC, Splat); in getMask()
605 return ConstantVector::get(LeafMask); in getMask()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValues.def35 DEF_CONST(ConstantVector, ConstantVector)
H A DConstant.h356 return ID == ClassID::ConstantVector || ID == ClassID::ConstantStruct || in classof()
423 class ConstantVector final : public ConstantAggregate {
424 ConstantVector(llvm::ConstantVector *C, Context &Ctx) in ConstantVector() function
425 : ConstantAggregate(ClassID::ConstantVector, C, Ctx) {} in ConstantVector()
445 return From->getSubclassID() == ClassID::ConstantVector; in classof()
H A DValue.h150 friend class ConstantVector; // For `Val`. variable
H A DType.h63 friend class ConstantVector; // For LLVMTy. variable
/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.cpp253 return ConstantVector::get(VectorValue); in getRandomValue()
412 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
415 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
502 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/Transforms/Utils/
H A DFunctionComparator.cpp420 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
421 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp69 static Constant *getSplatValueAllowUndef(const ConstantVector *C) { in getSplatValueAllowUndef()
104 if (auto *CV = dyn_cast<ConstantVector>(C)) { in extractConstantBits()
169 if (auto *CV = dyn_cast<ConstantVector>(C)) { in getSplatableConstant()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp935 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue()
1160 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp199 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1449 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
1690 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts()
1697 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts()
1741 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts()
1837 if (auto *CV = dyn_cast<ConstantVector>(II->getOperand(2))) in SimplifyDemandedVectorElts()

1234