Home
last modified time | relevance | path

Searched refs:IndexC (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/clang-tools-extra/unittests/clang-doc/
DGeneratorTest.cpp52 Index IndexC; in TEST() local
53 IndexC.Name = "C"; in TEST()
54 IndexB.Children.emplace_back(std::move(IndexC)); in TEST()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp345 auto *IndexC = dyn_cast<ConstantInt>(Index); in visitExtractElementInst() local
346 if (IndexC) { in visitExtractElementInst()
352 if (!EC.isScalable() && IndexC->getValue().uge(NumElts)) in visitExtractElementInst()
364 DemandedElts.setBit(IndexC->getZExtValue()); in visitExtractElementInst()
398 if (match(SrcVec, m_UnOp(UO)) && cheapToScalarize(SrcVec, IndexC)) { in visitExtractElementInst()
406 if (match(SrcVec, m_BinOp(BO)) && cheapToScalarize(SrcVec, IndexC)) { in visitExtractElementInst()
417 cheapToScalarize(SrcVec, IndexC)) { in visitExtractElementInst()
431 if (isa<Constant>(IE->getOperand(2)) && IndexC) in visitExtractElementInst()
1852 uint64_t IndexC; in canonicalizeInsertSplat() local
1856 m_ConstantInt(IndexC)))) || in canonicalizeInsertSplat()
[all …]
DInstructionCombining.cpp1818 SmallVector<Value *, 4> IndexC(GEP.idx_begin(), GEP.idx_end()); in foldSelectGEP() local
1820 Value *NewTrueC = IsInBounds ? Builder.CreateInBoundsGEP(TrueC, IndexC) in foldSelectGEP()
1821 : Builder.CreateGEP(TrueC, IndexC); in foldSelectGEP()
1822 Value *NewFalseC = IsInBounds ? Builder.CreateInBoundsGEP(FalseC, IndexC) in foldSelectGEP()
1823 : Builder.CreateGEP(FalseC, IndexC); in foldSelectGEP()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp328 auto *IndexC = dyn_cast<ConstantInt>(Index); in visitExtractElementInst() local
329 if (IndexC) { in visitExtractElementInst()
333 if (!IndexC->getValue().ule(NumElts)) in visitExtractElementInst()
343 DemandedElts.setBit(IndexC->getZExtValue()); in visitExtractElementInst()
377 if (match(SrcVec, m_BinOp(BO)) && cheapToScalarize(SrcVec, IndexC)) { in visitExtractElementInst()
388 cheapToScalarize(SrcVec, IndexC)) { in visitExtractElementInst()
402 if (isa<Constant>(IE->getOperand(2)) && IndexC) { in visitExtractElementInst()
1516 uint64_t IndexC; in canonicalizeInsertSplat() local
1520 m_ConstantInt(IndexC)))) || in canonicalizeInsertSplat()
1521 !match(Op1, m_Undef()) || match(Mask, m_ZeroInt()) || IndexC == 0) in canonicalizeInsertSplat()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp16859 if (auto *IndexC = dyn_cast<ConstantSDNode>(EltNo)) in visitINSERT_VECTOR_ELT() local
16860 if (IndexC->getZExtValue() >= VT.getVectorNumElements()) in visitINSERT_VECTOR_ELT()
16869 auto *IndexC = dyn_cast<ConstantSDNode>(EltNo); in visitINSERT_VECTOR_ELT() local
16870 if (!IndexC) { in visitINSERT_VECTOR_ELT()
16881 unsigned Elt = IndexC->getZExtValue(); in visitINSERT_VECTOR_ELT()
17029 auto *IndexC = dyn_cast<ConstantSDNode>(Index); in scalarizeExtractedBinop() local
17030 if (!IndexC || !TLI.isBinOp(Vec.getOpcode()) || !Vec.hasOneUse() || in scalarizeExtractedBinop()
17090 auto *IndexC = dyn_cast<ConstantSDNode>(Index); in visitEXTRACT_VECTOR_ELT() local
17092 if (IndexC && IndexC->getAPIntValue().uge(NumElts)) in visitEXTRACT_VECTOR_ELT()
17096 if (IndexC && VecOp.getOpcode() == ISD::BUILD_VECTOR && in visitEXTRACT_VECTOR_ELT()
[all …]
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp17970 auto *IndexC = dyn_cast<ConstantSDNode>(EltNo); in visitINSERT_VECTOR_ELT() local
17973 if (IndexC && VT.isFixedLengthVector() && in visitINSERT_VECTOR_ELT()
17974 IndexC->getZExtValue() >= VT.getVectorNumElements()) in visitINSERT_VECTOR_ELT()
17983 if (!IndexC) { in visitINSERT_VECTOR_ELT()
18003 unsigned Elt = IndexC->getZExtValue(); in visitINSERT_VECTOR_ELT()
18159 auto *IndexC = dyn_cast<ConstantSDNode>(Index); in scalarizeExtractedBinop() local
18160 if (!IndexC || !TLI.isBinOp(Vec.getOpcode()) || !Vec.hasOneUse() || in scalarizeExtractedBinop()
18224 auto *IndexC = dyn_cast<ConstantSDNode>(Index); in visitEXTRACT_VECTOR_ELT() local
18225 if (IndexC && VecVT.isFixedLengthVector() && in visitEXTRACT_VECTOR_ELT()
18226 IndexC->getAPIntValue().uge(VecVT.getVectorNumElements())) in visitEXTRACT_VECTOR_ELT()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp4469 ConstantInt *IndexC; in SimplifyShuffleVectorInst() local
4471 m_ConstantInt(IndexC)))) { in SimplifyShuffleVectorInst()
4473 int InsertIndex = IndexC->getZExtValue(); in SimplifyShuffleVectorInst()
/external/llvm-project/llvm/lib/Analysis/
DInstructionSimplify.cpp4638 ConstantInt *IndexC; in SimplifyShuffleVectorInst() local
4640 m_ConstantInt(IndexC)))) { in SimplifyShuffleVectorInst()
4642 int InsertIndex = IndexC->getZExtValue(); in SimplifyShuffleVectorInst()