Home
last modified time | relevance | path

Searched refs:EltNo (Results 1 – 20 of 20) sorted by relevance

/external/llvm/lib/Analysis/
DVectorUtils.cpp234 Value *llvm::findScalarElement(Value *V, unsigned EltNo) { in findScalarElement() argument
238 if (EltNo >= Width) // Out of range access. in findScalarElement()
242 return C->getAggregateElement(EltNo); in findScalarElement()
252 if (EltNo == IIElt) in findScalarElement()
257 return findScalarElement(III->getOperand(0), EltNo); in findScalarElement()
262 int InEl = SVI->getMaskValue(EltNo); in findScalarElement()
273 if (Constant *Elt = Con->getAggregateElement(EltNo)) in findScalarElement()
275 return findScalarElement(Val, EltNo); in findScalarElement()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp78 static Value *FindScalarElement(Value *V, unsigned EltNo) { in FindScalarElement() argument
82 if (EltNo >= Width) // Out of range access. in FindScalarElement()
90 return CP->getOperand(EltNo); in FindScalarElement()
100 if (EltNo == IIElt) in FindScalarElement()
105 return FindScalarElement(III->getOperand(0), EltNo); in FindScalarElement()
111 int InEl = getShuffleMask(SVI)[EltNo]; in FindScalarElement()
/external/llvm/lib/Target/PowerPC/
DPPCVSXSwapRemoval.cpp832 unsigned EltNo; in handleSpecialSwappables() local
834 EltNo = MI->getOperand(2).getImm(); in handleSpecialSwappables()
836 EltNo = MI->getOperand(1).getImm(); in handleSpecialSwappables()
838 EltNo = (EltNo + NElts / 2) % NElts; in handleSpecialSwappables()
840 MI->getOperand(2).setImm(EltNo); in handleSpecialSwappables()
842 MI->getOperand(1).setImm(EltNo); in handleSpecialSwappables()
DPPCISelLowering.cpp7568 unsigned EltNo = 8; // Start out undef. in LowerVECTOR_SHUFFLE() local
7579 if (EltNo == 8) { in LowerVECTOR_SHUFFLE()
7580 EltNo = ByteSource/4; in LowerVECTOR_SHUFFLE()
7581 } else if (EltNo != ByteSource/4) { in LowerVECTOR_SHUFFLE()
7586 PFIndexes[i] = EltNo; in LowerVECTOR_SHUFFLE()
/external/llvm/include/llvm/Analysis/
DVectorUtils.h71 Value *findScalarElement(Value *V, unsigned EltNo);
/external/clang/include/clang/AST/
DASTVector.h231 size_t EltNo = I-this->begin(); in insert() local
233 I = this->begin()+EltNo; in insert()
/external/llvm/include/llvm/ADT/
DSmallVector.h471 size_t EltNo = I-this->begin(); in insert() local
473 I = this->begin()+EltNo; in insert()
501 size_t EltNo = I-this->begin(); in insert() local
503 I = this->begin()+EltNo; in insert()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallVector.h474 size_t EltNo = I-this->begin(); in insert() local
476 I = this->begin()+EltNo; in insert()
504 size_t EltNo = I-this->begin(); in insert() local
506 I = this->begin()+EltNo; in insert()
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSmallVector.h423 size_t EltNo = I-this->begin(); in insert() local
425 I = this->begin()+EltNo; in insert()
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUISelLowering.cpp2001 int EltNo = (int) C->getZExtValue(); in LowerEXTRACT_VECTOR_ELT() local
2004 if (VT == MVT::i8 && EltNo >= 16) in LowerEXTRACT_VECTOR_ELT()
2006 else if (VT == MVT::i16 && EltNo >= 8) in LowerEXTRACT_VECTOR_ELT()
2008 else if (VT == MVT::i32 && EltNo >= 4) in LowerEXTRACT_VECTOR_ELT()
2010 else if (VT == MVT::i64 && EltNo >= 2) in LowerEXTRACT_VECTOR_ELT()
2013 if (EltNo == 0 && (VT == MVT::i32 || VT == MVT::i64)) { in LowerEXTRACT_VECTOR_ELT()
2020 int elt_byte = EltNo * VT.getSizeInBits() / 8; in LowerEXTRACT_VECTOR_ELT()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelLowering.cpp4408 static SDValue PromoteSplati8i16(SDValue V, SelectionDAG &DAG, int &EltNo) { in PromoteSplati8i16() argument
4414 if (EltNo < NumElems/2) { in PromoteSplati8i16()
4418 EltNo -= NumElems/2; in PromoteSplati8i16()
4426 static SDValue getLegalSplat(SelectionDAG &DAG, SDValue V, int EltNo) { in getLegalSplat() argument
4434 int SplatMask[4] = { EltNo, EltNo, EltNo, EltNo }; in getLegalSplat()
4441 int SplatMask[8] = { EltNo, EltNo, EltNo, EltNo, in getLegalSplat()
4442 EltNo+4, EltNo+4, EltNo+4, EltNo+4 }; in getLegalSplat()
4458 int EltNo = SV->getSplatIndex(); in PromoteSplat() local
4468 unsigned Idx = (EltNo > NumElems/2) ? NumElems/2 : 0; in PromoteSplat()
4471 EltNo -= NumElems/2; in PromoteSplat()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp205 SDNode *EVE, EVT InVecVT, SDValue EltNo, LoadSDNode *OriginalLoad);
7127 SDValue EltNo = N0->getOperand(1); in visitTRUNCATE() local
7128 if (isa<ConstantSDNode>(EltNo) && isTypeLegal(NVT)) { in visitTRUNCATE()
7129 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in visitTRUNCATE()
12184 SDValue EltNo = N->getOperand(2); in visitINSERT_VECTOR_ELT() local
12198 if (!isa<ConstantSDNode>(EltNo)) in visitINSERT_VECTOR_ELT()
12200 unsigned Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in visitINSERT_VECTOR_ELT()
12216 InVec.getOperand(0), InVal, EltNo); in visitINSERT_VECTOR_ELT()
12256 SDNode *EVE, EVT InVecVT, SDValue EltNo, LoadSDNode *OriginalLoad) { in ReplaceExtractVectorEltOfLoadWithNarrowedLoad() argument
12275 if (auto *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo)) { in ReplaceExtractVectorEltOfLoadWithNarrowedLoad()
[all …]
/external/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp1999 SDValue EltNo = N->getOperand(2); in PerformDAGCombine() local
2013 if (!isa<ConstantSDNode>(EltNo)) in PerformDAGCombine()
2015 unsigned Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in PerformDAGCombine()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp836 static Constant *GetVectorElement(Constant *C, unsigned EltNo) { in GetVectorElement() argument
838 return CV->getOperand(EltNo); in GetVectorElement()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCISelLowering.cpp4245 unsigned EltNo = 8; // Start out undef. in LowerVECTOR_SHUFFLE() local
4256 if (EltNo == 8) { in LowerVECTOR_SHUFFLE()
4257 EltNo = ByteSource/4; in LowerVECTOR_SHUFFLE()
4258 } else if (EltNo != ByteSource/4) { in LowerVECTOR_SHUFFLE()
4263 PFIndexes[i] = EltNo; in LowerVECTOR_SHUFFLE()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelLowering.cpp4074 unsigned EltNo = cast<ConstantSDNode>(V.getOperand(1))->getZExtValue(); in ReconstructShuffle() local
4078 if (MinElts[j] > EltNo) in ReconstructShuffle()
4079 MinElts[j] = EltNo; in ReconstructShuffle()
4080 if (MaxElts[j] < EltNo) in ReconstructShuffle()
4081 MaxElts[j] = EltNo; in ReconstructShuffle()
4090 MinElts.push_back(EltNo); in ReconstructShuffle()
4091 MaxElts.push_back(EltNo); in ReconstructShuffle()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp6774 SDValue EltNo = N->getOperand(2); in visitINSERT_VECTOR_ELT() local
6788 if (!isa<ConstantSDNode>(EltNo)) in visitINSERT_VECTOR_ELT()
6790 unsigned Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in visitINSERT_VECTOR_ELT()
6847 SDValue EltNo = N->getOperand(1); in visitEXTRACT_VECTOR_ELT() local
6849 if (isa<ConstantSDNode>(EltNo)) { in visitEXTRACT_VECTOR_ELT()
6850 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in visitEXTRACT_VECTOR_ELT()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp4976 unsigned EltNo = cast<ConstantSDNode>(V.getOperand(1))->getZExtValue(); in ReconstructShuffle() local
4977 Source->MinElt = std::min(Source->MinElt, EltNo); in ReconstructShuffle()
4978 Source->MaxElt = std::max(Source->MaxElt, EltNo); in ReconstructShuffle()
5088 int EltNo = cast<ConstantSDNode>(Entry.getOperand(1))->getSExtValue(); in ReconstructShuffle() local
5102 int ExtractBase = EltNo * Src->WindowScale + Src->WindowBase; in ReconstructShuffle()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp5908 unsigned EltNo = cast<ConstantSDNode>(V.getOperand(1))->getZExtValue(); in ReconstructShuffle() local
5909 Source->MinElt = std::min(Source->MinElt, EltNo); in ReconstructShuffle()
5910 Source->MaxElt = std::max(Source->MaxElt, EltNo); in ReconstructShuffle()
6020 int EltNo = cast<ConstantSDNode>(Entry.getOperand(1))->getSExtValue(); in ReconstructShuffle() local
6034 int ExtractBase = EltNo * Src->WindowScale + Src->WindowBase; in ReconstructShuffle()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp5541 int EltNo = (Offset - StartOffset) >> 2; in LowerAsSplatVectorLoad() local
5549 SmallVector<int, 8> Mask(NumElems, EltNo); in LowerAsSplatVectorLoad()
26157 SDValue EltNo = N->getOperand(1); in XFormVExtractWithShuffleIntoLoad() local
26160 if (!isa<ConstantSDNode>(EltNo)) in XFormVExtractWithShuffleIntoLoad()
26194 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in XFormVExtractWithShuffleIntoLoad()
26248 EltNo); in XFormVExtractWithShuffleIntoLoad()