Home
last modified time | relevance | path

Searched refs:EltNo (Results 1 – 23 of 23) 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-7.0/llvm/lib/Analysis/
DVectorUtils.cpp236 Value *llvm::findScalarElement(Value *V, unsigned EltNo) { in findScalarElement() argument
240 if (EltNo >= Width) // Out of range access. in findScalarElement()
244 return C->getAggregateElement(EltNo); in findScalarElement()
254 if (EltNo == IIElt) in findScalarElement()
259 return findScalarElement(III->getOperand(0), EltNo); in findScalarElement()
264 int InEl = SVI->getMaskValue(EltNo); in findScalarElement()
275 if (Constant *Elt = Con->getAggregateElement(EltNo)) in findScalarElement()
277 return findScalarElement(Val, EltNo); in findScalarElement()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCVSXSwapRemoval.cpp842 unsigned EltNo; in handleSpecialSwappables() local
844 EltNo = MI->getOperand(2).getImm(); in handleSpecialSwappables()
846 EltNo = MI->getOperand(1).getImm(); in handleSpecialSwappables()
848 EltNo = (EltNo + NElts / 2) % NElts; in handleSpecialSwappables()
850 MI->getOperand(2).setImm(EltNo); in handleSpecialSwappables()
852 MI->getOperand(1).setImm(EltNo); in handleSpecialSwappables()
DPPCISelLowering.cpp8557 unsigned EltNo = 8; // Start out undef. in LowerVECTOR_SHUFFLE() local
8568 if (EltNo == 8) { in LowerVECTOR_SHUFFLE()
8569 EltNo = ByteSource/4; in LowerVECTOR_SHUFFLE()
8570 } else if (EltNo != ByteSource/4) { in LowerVECTOR_SHUFFLE()
8575 PFIndexes[i] = EltNo; in LowerVECTOR_SHUFFLE()
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DVectorUtils.h72 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-7.0/llvm/include/llvm/ADT/
DSmallVector.h488 size_t EltNo = I-this->begin(); in insert() local
490 I = this->begin()+EltNo; in insert()
518 size_t EltNo = I-this->begin(); in insert() local
520 I = this->begin()+EltNo; in insert()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp261 SDNode *EVE, EVT InVecVT, SDValue EltNo, LoadSDNode *OriginalLoad);
9430 SDValue EltNo = N0->getOperand(1); in visitTRUNCATE() local
9431 if (isa<ConstantSDNode>(EltNo) && isTypeLegal(NVT)) { in visitTRUNCATE()
9432 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in visitTRUNCATE()
14971 SDValue EltNo = N->getOperand(2); in visitINSERT_VECTOR_ELT() local
14983 InVec == InVal.getOperand(0) && EltNo == InVal.getOperand(1)) in visitINSERT_VECTOR_ELT()
14987 auto *IndexC = dyn_cast<ConstantSDNode>(EltNo); in visitINSERT_VECTOR_ELT()
15008 InVec.getOperand(0), InVal, EltNo); in visitINSERT_VECTOR_ELT()
15048 SDNode *EVE, EVT InVecVT, SDValue EltNo, LoadSDNode *OriginalLoad) { in ReplaceExtractVectorEltOfLoadWithNarrowedLoad() argument
15072 if (auto *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo)) { in ReplaceExtractVectorEltOfLoadWithNarrowedLoad()
[all …]
DSelectionDAG.cpp2885 SDValue EltNo = Op.getOperand(1); in computeKnownBits() local
2894 ConstantSDNode *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo); in computeKnownBits()
2911 SDValue EltNo = Op.getOperand(2); in computeKnownBits() local
2913 ConstantSDNode *CEltNo = dyn_cast<ConstantSDNode>(EltNo); in computeKnownBits()
3468 SDValue EltNo = Op.getOperand(2); in ComputeNumSignBits() local
3471 ConstantSDNode *CEltNo = dyn_cast<ConstantSDNode>(EltNo); in ComputeNumSignBits()
3505 SDValue EltNo = Op.getOperand(1); in ComputeNumSignBits() local
3520 ConstantSDNode *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo); in ComputeNumSignBits()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp1891 SDValue EltNo = N->getOperand(2); in PerformDAGCombine() local
1904 if (!isa<ConstantSDNode>(EltNo)) in PerformDAGCombine()
1906 unsigned Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in PerformDAGCombine()
/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp5752 unsigned EltNo = cast<ConstantSDNode>(V.getOperand(1))->getZExtValue(); in ReconstructShuffle() local
5753 Source->MinElt = std::min(Source->MinElt, EltNo); in ReconstructShuffle()
5754 Source->MaxElt = std::max(Source->MaxElt, EltNo); in ReconstructShuffle()
5866 int EltNo = cast<ConstantSDNode>(Entry.getOperand(1))->getSExtValue(); in ReconstructShuffle() local
5880 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMISelLowering.cpp6736 unsigned EltNo = cast<ConstantSDNode>(V.getOperand(1))->getZExtValue(); in ReconstructShuffle() local
6737 Source->MinElt = std::min(Source->MinElt, EltNo); in ReconstructShuffle()
6738 Source->MaxElt = std::max(Source->MaxElt, EltNo); in ReconstructShuffle()
6847 int EltNo = cast<ConstantSDNode>(Entry.getOperand(1))->getSExtValue(); in ReconstructShuffle() local
6861 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp6761 int EltNo = (Offset - StartOffset) >> 2; in LowerAsSplatVectorLoad() local
6768 SmallVector<int, 8> Mask(NumElems, EltNo); in LowerAsSplatVectorLoad()
31306 SDValue EltNo = N->getOperand(1); in XFormVExtractWithShuffleIntoLoad() local
31309 if (!isa<ConstantSDNode>(EltNo)) in XFormVExtractWithShuffleIntoLoad()
31338 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); in XFormVExtractWithShuffleIntoLoad()
31392 EltNo); in XFormVExtractWithShuffleIntoLoad()