Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/unittests/IR/
H A DInstructionsTest.cpp474 Constant *C2xi32a = ConstantVector::get(ConstVa); in TEST()
475 Constant *C2xi32b = ConstantVector::get(ConstVb); in TEST()
1029 Constant *Select = ConstantVector::get({CU, C1, C5}); in TEST()
1037 Constant *Reverse = ConstantVector::get({C3, C2, C1, CU}); in TEST()
1061 Constant *Transpose = ConstantVector::get({C0, C4, C2, C6}); in TEST()
1089 Constant *V0 = ConstantVector::get({C0, C1, C2, C3}); in TEST()
1090 Constant *V1 = ConstantVector::get({C3, C2, C1, C0}); in TEST()
1249 Value *Op = ConstantVector::getNullValue(OpVFTy); in TEST()
1341 Constant *Splat0 = ConstantVector::get({C0, C0, C0, C0}); in TEST()
1342 Constant *Splat1 = ConstantVector::get({C1, C1, C1, C1 ,C1}); in TEST()
[all …]
H A DConstantsTest.cpp455 Constant *CV = ConstantVector::get(Vals); in TEST()
466 Constant *CV = ConstantVector::get(Vals); in TEST()
623 Constant *V1 = ConstantVector::get({C1, C2}); in TEST()
629 Constant *V2 = ConstantVector::get({C1, CU}); in TEST()
635 Constant *V3 = ConstantVector::get({C1, CP}); in TEST()
641 Constant *V4 = ConstantVector::get({CU, CP}); in TEST()
692 Constant *CP00U = ConstantVector::get({CP0, CP0, CPU}); in TEST()
713 Constant *CUU = ConstantVector::get({CU, CU}); in TEST()
714 Constant *CPP = ConstantVector::get({CP, CP}); in TEST()
715 Constant *CUP = ConstantVector::get({CU, CP}); in TEST()
[all …]
H A DPatternMatch.cpp941 auto *IdxVec = ConstantVector::get(VecElemIdxs); in TEST_F()
1034 EXPECT_TRUE(match(ConstantVector::get({U, P}), m_Undef())); in TEST_F()
1035 EXPECT_TRUE(match(ConstantVector::get({P, U}), m_Undef())); in TEST_F()
1068 Constant *VectorZeroUndef = ConstantVector::get(Elems); in TEST_F()
1134 Constant *VectorInfUndef = ConstantVector::get( in TEST_F()
1530 Constant *CSplatU32Max = ConstantVector::getSplat(EC, CU32Max); in TEST_F()
1554 Constant *CSplatF32NaN = ConstantVector::getSplat(EC, CF32NaN); in TEST_F()
1556 Constant *CSplatF32Pi = ConstantVector::getSplat(EC, CF32Pi); in TEST_F()
1584 ConstantVector::get({CU32Undef, CU32Max, CU32Undef}); in TEST_F()
1602 ConstantVector::get({CF32Undef, CF32NaN, CF32Undef}); in TEST_F()
[all …]
H A DVerifierTest.cpp60 Constant *CV = ConstantVector::getSplat(ElementCount::getFixed(2), CI); in TEST()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp86 return ConstantVector::getSplat(VT->getElementCount(), in reduceOperandsOneDeltaPass()
89 return ConstantVector::getSplat( in reduceOperandsOneDeltaPass()
128 return ConstantVector::getSplat(VT->getElementCount(), in reduceOperandsNaNDeltaPass()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp390 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue()
406 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue()
508 delete static_cast<ConstantVector *>(C); in deleteConstant()
768 return ConstantVector::get(NewC); in replaceUndefsWith()
802 return ConstantVector::get(NewC); in mergeUndefsWith()
1341 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V) in ConstantVector() function in ConstantVector
1348 Constant *ConstantVector::get(ArrayRef<Constant*> V) { in get()
1621 void ConstantVector::destroyConstantImpl() { in destroyConstantImpl()
1631 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in getSplatValue()
2509 Idx = ConstantVector::getSplat(EltCount, Idx); in getGetElementPtr()
[all …]
H A DConstantFold.cpp76 return ConstantVector::get(Result); in BitCastConstantVector()
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()
772 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
865 return ConstantVector::get(Result); in ConstantFoldUnaryInstruction()
1252 return ConstantVector::get(Result); in ConstantFoldBinaryInstruction()
1682 return ConstantVector::getSplat( in ConstantFoldCompareInstruction()
[all …]
H A DConstantsContext.h336 template <> struct ConstantInfo<ConstantVector> {
337 using ValType = ConstantAggrKeyType<ConstantVector>;
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DValue.def88 HANDLE_CONSTANT(ConstantVector)
106 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
H A DConstants.h494 class ConstantVector final : public ConstantAggregate {
495 friend struct ConstantAggrKeyType<ConstantVector>;
498 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
/llvm-project-15.0.7/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp464 if (isa<ConstantVector>(L)) { in equivalentAsOperands()
465 const ConstantVector *CVL = cast<ConstantVector>(L); in equivalentAsOperands()
466 const ConstantVector *CVR = cast<ConstantVector>(R); in equivalentAsOperands()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp242 return ConstantVector::get(Result); in FoldBitCast()
288 return ConstantVector::get(Result); in FoldBitCast()
502 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1153 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1154 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
2390 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall1()
2755 if ((isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall2()
3104 return ConstantVector::get(NewElements); in ConstantFoldFixedVectorCall()
3121 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
3140 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp254 return ConstantVector::get(VectorValue); in getRandomValue()
421 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
424 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
511 Constant *Mask = ConstantVector::get(Idxs); in Act()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/
H A DLocal.h65 OpC = ConstantVector::getSplat(
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp344 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
345 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
H A DValueMapper.cpp524 if (isa<ConstantVector>(C)) in mapValue()
525 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DVectorUtilsTest.cpp90 Constant *NonSplatC = ConstantVector::get({ScalarC, OtherScalarC}); in TEST_F()
101 Constant *SplatWithUndefC = ConstantVector::get({ScalarC, UndefScalar}); in TEST_F()
H A DValueTrackingTest.cpp1024 Constant *V1 = ConstantVector::get({C1, C2}); in TEST_F()
1030 Constant *V2 = ConstantVector::get({C1, CU}); in TEST_F()
1036 Constant *V3 = ConstantVector::get({C1, CP}); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1223 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
1464 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts()
1471 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts()
1515 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts()
1616 if (auto *CV = dyn_cast<ConstantVector>(II->getOperand(2))) in SimplifyDemandedVectorElts()
/llvm-project-15.0.7/llvm/unittests/FuzzMutate/
H A DOperationsTest.cpp95 Constant *v8i8 = ConstantVector::getSplat(ElementCount::getFixed(8), i8); in TEST()
96 Constant *v4f16 = ConstantVector::getSplat(ElementCount::getFixed(4), f16); in TEST()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp918 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue()
1138 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp215 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp411 return ConstantVector::get(ConstantVec); in simplifyX86varShift()
426 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift()
625 return ConstantVector::get(Args); in simplifyX86extrq()
782 return ConstantVector::get(Args); in simplifyX86insertq()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h363 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DModuleTranslation.cpp161 return llvm::ConstantVector::get(nested); in buildSequentialConstant()
343 return llvm::ConstantVector::getSplat( in getLLVMConstant()

123