Home
last modified time | relevance | path

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

123

/freebsd-14.2/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.cpp324 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
394 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp233 return ConstantVector::getSplat( in ConstantFoldCastInstruction()
247 return ConstantVector::get(res); in ConstantFoldCastInstruction()
342 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
368 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
516 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
575 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
669 return ConstantVector::get(Result); in ConstantFoldUnaryInstruction()
1015 return ConstantVector::get(Result); in ConstantFoldBinaryInstruction()
1285 return ConstantVector::getSplat( in ConstantFoldCompareInstruction()
1309 return ConstantVector::get(ResElts); in ConstantFoldCompareInstruction()
[all …]
H A DConstants.cpp398 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue()
414 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue()
516 delete static_cast<ConstantVector *>(C); in deleteConstant()
774 return ConstantVector::get(NewC); in replaceUndefsWith()
808 return ConstantVector::get(NewC); in mergeUndefsWith()
1335 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V) in ConstantVector() function in ConstantVector
1342 Constant *ConstantVector::get(ArrayRef<Constant*> V) { in get()
1611 void ConstantVector::destroyConstantImpl() { in destroyConstantImpl()
1621 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in getSplatValue()
2305 Idx = ConstantVector::getSplat(EltCount, Idx); in getGetElementPtr()
[all …]
H A DReplaceConstant.cpp36 } else if (isa<ConstantVector>(C)) { in expandUser()
H A DConstantsContext.h303 template <> struct ConstantInfo<ConstantVector> {
304 using ValType = ConstantAggrKeyType<ConstantVector>;
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DValue.def88 HANDLE_CONSTANT(ConstantVector)
107 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
H A DConstants.h492 class ConstantVector final : public ConstantAggregate {
493 friend struct ConstantAggrKeyType<ConstantVector>;
496 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp248 return ConstantVector::get(Result); in FoldBitCast()
284 return ConstantVector::get(Result); in FoldBitCast()
496 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1123 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1124 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
2483 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall1()
2871 if ((isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall2()
3220 return ConstantVector::get(NewElements); in ConstantFoldFixedVectorCall()
3237 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
3256 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
[all …]
H A DVectorUtils.cpp848 return ConstantVector::get(Mask); in createBitMaskForGaps()
1052 if (auto *CV = dyn_cast<ConstantVector>(Mask)) in possiblyDemandedEltsInMask()
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp42 Cs.push_back(ConstantVector::getSplat(EC, Elt)); in makeConstantsWithType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp76 if (auto *CV = dyn_cast<ConstantVector>(C)) { in extractConstantBits()
122 if (auto *CV = dyn_cast<ConstantVector>(C)) { in getSplatableConstant()
H A DX86InstCombineIntrinsic.cpp412 return ConstantVector::get(ConstantVec); in simplifyX86varShift()
427 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift()
1694 return ConstantVector::get(Args); in simplifyX86extrq()
1851 return ConstantVector::get(Args); in simplifyX86insertq()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp392 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
393 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-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1389 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
1630 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts()
1637 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts()
1681 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts()
1782 if (auto *CV = dyn_cast<ConstantVector>(II->getOperand(2))) in SimplifyDemandedVectorElts()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp200 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h371 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp918 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in canEmitInitWithFewStoresAfterBZero()
956 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in emitStoresForInitAfterBZero()
1340 return llvm::ConstantVector::get(Values); in replaceUndef()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp392 if (auto *Vector = dyn_cast<ConstantVector>(Mask)) { in instrumentMaskedLoadOrStore()

123