/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 570 static bool isShuffleEquivalentToSelect(ShuffleVectorInst &Shuf) { in isShuffleEquivalentToSelect() argument 571 int MaskSize = Shuf.getMask()->getType()->getVectorNumElements(); in isShuffleEquivalentToSelect() 572 int VecSize = Shuf.getOperand(0)->getType()->getVectorNumElements(); in isShuffleEquivalentToSelect() 581 int Elt = Shuf.getMaskValue(i); in isShuffleEquivalentToSelect() 690 if (auto *Shuf = dyn_cast<ShuffleVectorInst>(InsElt.getOperand(0))) { in foldConstantInsEltIntoShuffle() local 695 if (!match(Shuf->getOperand(1), m_Constant(ShufConstVec)) || in foldConstantInsEltIntoShuffle() 705 if (!isShuffleEquivalentToSelect(*Shuf)) in foldConstantInsEltIntoShuffle() 716 Constant *Mask = Shuf->getMask(); in foldConstantInsEltIntoShuffle() 723 Type *Int32Ty = Type::getInt32Ty(Shuf->getContext()); in foldConstantInsEltIntoShuffle() 734 return new ShuffleVectorInst(Shuf->getOperand(0), in foldConstantInsEltIntoShuffle() [all …]
|
D | InstCombineCasts.cpp | 625 auto *Shuf = dyn_cast<ShuffleVectorInst>(Trunc.getOperand(0)); in shrinkSplatShuffle() local 626 if (Shuf && Shuf->hasOneUse() && isa<UndefValue>(Shuf->getOperand(1)) && in shrinkSplatShuffle() 627 Shuf->getMask()->getSplatValue() && in shrinkSplatShuffle() 628 Shuf->getType() == Shuf->getOperand(0)->getType()) { in shrinkSplatShuffle() 631 Value *NarrowOp = Builder.CreateTrunc(Shuf->getOperand(0), Trunc.getType()); in shrinkSplatShuffle() 632 return new ShuffleVectorInst(NarrowOp, NarrowUndef, Shuf->getMask()); in shrinkSplatShuffle()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULowerKernelArguments.cpp | 212 Value *Shuf = Builder.CreateShuffleVector(Load, UndefValue::get(V4Ty), in runOnFunction() local 215 Arg.replaceAllUsesWith(Shuf); in runOnFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 1586 Value *Shuf = Builder.CreateShuffleVector( in getShuffleReduction() local 1593 TmpVec, Shuf, "bin.rdx")); in getShuffleReduction() 1598 Shuf); in getShuffleReduction()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 1868 Value *Shuf = Builder.CreateVectorSplat(VF, V, "broadcast"); in getBroadcastInstrs() local 1870 return Shuf; in getBroadcastInstrs() 3648 Value *Shuf = Builder.CreateShuffleVector( in vectorizeLoop() local 3655 (Instruction::BinaryOps)Op, TmpVec, Shuf, "bin.rdx")); in vectorizeLoop() 3658 TmpVec, Shuf); in vectorizeLoop()
|
D | SLPVectorizer.cpp | 4184 Value *Shuf = Builder.CreateShuffleVector( in emitReduction() local 4186 TmpVec = createBinOp(Builder, ReductionOpcode, TmpVec, Shuf, "bin.rdx"); in emitReduction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 14961 SDValue Shuf = DAG.getVectorShuffle(ShufVT, DL, DestVecBC, PaddedSubV, Mask); in combineInsertEltToShuffle() local 14964 AddToWorklist(Shuf.getNode()); in combineInsertEltToShuffle() 14965 return DAG.getBitcast(VT, Shuf); in combineInsertEltToShuffle() 14992 if (SDValue Shuf = combineInsertEltToShuffle(N, Elt)) in visitINSERT_VECTOR_ELT() local 14993 return Shuf; in visitINSERT_VECTOR_ELT() 16874 static SDValue replaceShuffleOfInsert(ShuffleVectorSDNode *Shuf, in replaceShuffleOfInsert() argument 16878 ArrayRef<int> Mask = Shuf->getMask(); in replaceShuffleOfInsert() 16880 SDValue Op0 = Shuf->getOperand(0); in replaceShuffleOfInsert() 16881 SDValue Op1 = Shuf->getOperand(1); in replaceShuffleOfInsert() 16918 SDValue NewInsIndex = DAG.getConstant(ShufOp0Index, SDLoc(Shuf), in replaceShuffleOfInsert() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 1768 Value *Shuf = Builder.CreateVectorSplat(VF, V, "broadcast"); in getBroadcastInstrs() local 1770 return Shuf; in getBroadcastInstrs()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 7213 SDValue Shuf = DAG.getVectorShuffle(RVT, dl, LHS, Zero, &Indices[0]); in XformToShuffleWithZero() local 7214 return DAG.getNode(ISD::BITCAST, dl, VT, Shuf); in XformToShuffleWithZero()
|
/external/llvm/test/CodeGen/X86/ |
D | vector-sext.ll | 4277 %Shuf = shufflevector <16 x i8> %A, <16 x i8> undef, <2 x i32> <i32 0, i32 1> 4278 %Ex = sext <2 x i8> %Shuf to <2 x i16>
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | vector-sext.ll | 4830 %Shuf = shufflevector <16 x i8> %A, <16 x i8> undef, <2 x i32> <i32 0, i32 1> 4831 %Ex = sext <2 x i8> %Shuf to <2 x i16>
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelLowering.cpp | 7761 SDValue Shuf = DAG.getVectorShuffle(MVT::v2f64, dl, Sub, in LowerUINT_TO_FP_i64() local 7763 SDValue Add = DAG.getNode(ISD::FADD, dl, MVT::v2f64, Shuf, Sub); in LowerUINT_TO_FP_i64()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 15533 SDValue Shuf = DAG.getVectorShuffle(MVT::v4i32, dl, Result, Result, Mask); in LowerVSETCC() local 15534 Result = DAG.getNode(ISD::AND, dl, MVT::v4i32, Result, Shuf); in LowerVSETCC()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 18632 SDValue Shuf = DAG.getVectorShuffle(MVT::v4i32, dl, Result, Result, Mask); in LowerVSETCC() local 18633 Result = DAG.getNode(ISD::AND, dl, MVT::v4i32, Result, Shuf); in LowerVSETCC()
|