| /openbsd-src/gnu/llvm/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 | 299 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector() 368 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Constants.cpp | 398 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue() 414 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue() 516 delete static_cast<ConstantVector *>(C); in deleteConstant() 776 return ConstantVector::get(NewC); in replaceUndefsWith() 810 return ConstantVector::get(NewC); in mergeUndefsWith() 857 return ConstantVector::getSplat(VTy->getElementCount(), TrueC); in getTrue() 865 return ConstantVector::getSplat(VTy->getElementCount(), FalseC); in getFalse() 892 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 916 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() 945 return ConstantVector::getSplat(VTy->getElementCount(), C); in get() [all …]
|
| H A D | ConstantFold.cpp | 63 return ConstantVector::getSplat(DstTy->getElementCount(), in BitCastConstantVector() 76 return ConstantVector::get(Result); in BitCastConstantVector() 157 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast() 404 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction() 412 return ConstantVector::getSplat( in ConstantFoldCastInstruction() 425 return ConstantVector::get(res); in ConstantFoldCastInstruction() 528 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction() 554 return ConstantVector::get(Result); in ConstantFoldSelectInstruction() 713 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction() 740 return ConstantVector::getSplat(MaskEltCount, Elt); in ConstantFoldShuffleVectorInstruction() [all …]
|
| H A D | ConstantsContext.h | 334 template <> struct ConstantInfo<ConstantVector> { 335 using ValType = ConstantAggrKeyType<ConstantVector>;
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceOperands.cpp | 116 return ConstantVector::getSplat(VT->getElementCount(), C); in reduceOperandsOneDeltaPass() 162 return ConstantVector::getSplat(VT->getElementCount(), in reduceOperandsNaNDeltaPass()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Value.def | 88 HANDLE_CONSTANT(ConstantVector) 107 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
|
| H A D | Constants.h | 493 class ConstantVector final : public ConstantAggregate { 494 friend struct ConstantAggrKeyType<ConstantVector>; 497 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
|
| /openbsd-src/gnu/llvm/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() 242 return ConstantVector::get(Result); in FoldBitCast() 288 return ConstantVector::get(Result); in FoldBitCast() 502 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal() 1124 if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C)) in ConstantFoldConstantImpl() 1133 if (isa<ConstantVector>(OldC) || isa<ConstantExpr>(OldC)) { in ConstantFoldConstantImpl() 1152 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl() 1153 return ConstantVector::get(Ops); in ConstantFoldConstantImpl() [all …]
|
| H A D | Local.cpp | 58 OpC = ConstantVector::getSplat( in emitGEPOffset()
|
| H A D | VectorUtils.cpp | 953 return ConstantVector::get(Mask); in createBitMaskForGaps() 1132 if (auto *CV = dyn_cast<ConstantVector>(Mask)) in possiblyDemandedEltsInMask()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-diff/lib/ |
| H A D | DifferenceEngine.cpp | 584 if (isa<ConstantVector>(L)) { in equivalentAsOperands() 585 const ConstantVector *CVL = cast<ConstantVector>(L); in equivalentAsOperands() 586 const ConstantVector *CVR = cast<ConstantVector>(R); in equivalentAsOperands()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 255 return ConstantVector::get(VectorValue); in getRandomValue() 427 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act() 430 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act() 518 Constant *Mask = ConstantVector::get(Idxs); in Act()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | FunctionComparator.cpp | 344 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants() 345 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
|
| H A D | ValueMapper.cpp | 523 if (isa<ConstantVector>(C)) in mapValue() 524 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
|
| H A D | Evaluator.cpp | 210 return ConstantVector::get(Consts); in toConstant()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 1287 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts() 1528 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts() 1535 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts() 1579 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts() 1680 if (auto *CV = dyn_cast<ConstantVector>(II->getOperand(2))) in SimplifyDemandedVectorElts()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 918 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue() 1138 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXGenericToNVVM.cpp | 215 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 412 return ConstantVector::get(ConstantVec); in simplifyX86varShift() 427 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift() 626 return ConstantVector::get(Args); in simplifyX86extrq() 783 return ConstantVector::get(Args); in simplifyX86insertq()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 364 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemProfiler.cpp | 377 if (auto *Vector = dyn_cast<ConstantVector>(Mask)) { in instrumentMaskedLoadOrStore()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | EarlyCSE.cpp | 907 auto *Vec0 = dyn_cast<ConstantVector>(Mask0); in isNonTargetIntrinsicMatch() 908 auto *Vec1 = dyn_cast<ConstantVector>(Mask1); in isNonTargetIntrinsicMatch()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ExpandVectorPredication.cpp | 211 return ConstantVector::get(ConstElems); in createStepVector()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinter.cpp | 3171 const ConstantVector *CV, AsmPrinter &AP, in emitGlobalConstantVector() 3186 ConstantExpr::getBitCast(const_cast<ConstantVector *>(CV), IntT), DL)); in emitGlobalConstantVector() 3503 if (const ConstantVector *V = dyn_cast<ConstantVector>(CV)) in emitGlobalConstantImpl()
|