Home
last modified time | relevance | path

Searched refs:CIdx (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h149 auto *CIdx = dyn_cast<Constant>(Idx); in FoldExtractElement() local
150 if (CVec && CIdx) in FoldExtractElement()
151 return ConstantExpr::getExtractElement(CVec, CIdx); in FoldExtractElement()
159 auto *CIdx = dyn_cast<Constant>(Idx); in FoldInsertElement() local
160 if (CVec && CNewElt && CIdx) in FoldInsertElement()
161 return ConstantExpr::getInsertElement(CVec, CNewElt, CIdx); in FoldInsertElement()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h160 auto *CIdx = dyn_cast<Constant>(Idx); in FoldExtractElement() local
161 if (CVec && CIdx) in FoldExtractElement()
162 return Fold(ConstantExpr::getExtractElement(CVec, CIdx)); in FoldExtractElement()
170 auto *CIdx = dyn_cast<Constant>(Idx); in FoldInsertElement() local
171 if (CVec && CNewElt && CIdx) in FoldInsertElement()
172 return Fold(ConstantExpr::getInsertElement(CVec, CNewElt, CIdx)); in FoldInsertElement()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp353 auto *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldExtractElementInstruction() local
354 if (!CIdx) in ConstantFoldExtractElementInstruction()
359 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction()
383 APSInt(CIdx->getValue()))) { in ConstantFoldExtractElementInstruction()
386 return ConstantExpr::getExtractElement(CE->getOperand(0), CIdx); in ConstantFoldExtractElementInstruction()
392 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction()
396 if (CIdx->getValue().ult(ValVTy->getElementCount().getKnownMinValue())) { in ConstantFoldExtractElementInstruction()
415 ConstantInt *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldInsertElementInstruction() local
416 if (!CIdx) return nullptr; in ConstantFoldInsertElementInstruction()
426 if (CIdx->uge(NumElts)) in ConstantFoldInsertElementInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp207 int CIdx = (PS1 == BB) ? 0 : 1; in FlattenParallelAndOr() local
210 Idx = CIdx; in FlattenParallelAndOr()
211 else if (CIdx != Idx) in FlattenParallelAndOr()
/freebsd/contrib/llvm-project/clang/include/clang-c/
H A DIndex.h647 CXIndex CIdx, const char *source_filename, int num_clang_command_line_args,
658 clang_createTranslationUnit(CXIndex CIdx, const char *ast_filename);
669 clang_createTranslationUnit2(CXIndex CIdx, const char *ast_filename,
849 CXIndex CIdx, const char *source_filename,
899 CXIndex CIdx, const char *source_filename,
910 CXIndex CIdx, const char *source_filename,
6595 CINDEX_LINKAGE CXIndexAction clang_IndexAction_create(CXIndex CIdx);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelValueTracking.cpp1597 auto CIdx = getIConstantVRegVal(Idx, MRI); in computeKnownFPClass() local
1604 if (CIdx && CIdx->ult(NumElts)) in computeKnownFPClass()
1605 DemandedVecElts = APInt::getOneBitSet(NumElts, CIdx->getZExtValue()); in computeKnownFPClass()
1623 auto CIdx = getIConstantVRegVal(Idx, MRI); in computeKnownFPClass() local
1629 if (CIdx && CIdx->ult(NumElts)) { in computeKnownFPClass()
1630 DemandedVecElts.clearBit(CIdx->getZExtValue()); in computeKnownFPClass()
1631 NeedsElt = DemandedElts[CIdx->getZExtValue()]; in computeKnownFPClass()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp2080 auto *CIdx = dyn_cast<ConstantInt>(I->getOperand(2)); in computeKnownBitsFromOperator() local
2085 if (CIdx && CIdx->getValue().ult(NumElts)) { in computeKnownBitsFromOperator()
2086 DemandedVecElts.clearBit(CIdx->getZExtValue()); in computeKnownBitsFromOperator()
2087 NeedsElt = DemandedElts[CIdx->getZExtValue()]; in computeKnownBitsFromOperator()
2110 auto *CIdx = dyn_cast<ConstantInt>(Idx); in computeKnownBitsFromOperator() local
2118 if (CIdx && CIdx->getValue().ult(NumElts)) in computeKnownBitsFromOperator()
2119 DemandedVecElts = APInt::getOneBitSet(NumElts, CIdx->getZExtValue()); in computeKnownBitsFromOperator()
3205 auto *CIdx = dyn_cast<ConstantInt>(I->getOperand(2)); in isKnownNonZeroFromOperator() local
3211 if (CIdx && CIdx->getValue().ult(NumElts)) { in isKnownNonZeroFromOperator()
3212 DemandedVecElts.clearBit(CIdx->getZExtValue()); in isKnownNonZeroFromOperator()
[all …]
H A DBasicAliasAnalysis.cpp679 if (const ConstantInt *CIdx = dyn_cast<ConstantInt>(Index)) { in DecomposeGEPExpression() local
680 if (CIdx->isZero()) in DecomposeGEPExpression()
691 CIdx->getValue().sextOrTrunc(IndexSize); in DecomposeGEPExpression()
H A DInstructionSimplify.cpp5259 if (auto *CIdx = dyn_cast<Constant>(Idx)) in simplifyExtractElementInst() local
5260 return ConstantExpr::getExtractElement(CVec, CIdx); in simplifyExtractElementInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInlineSpiller.cpp1415 SlotIndex CIdx = LIS.getInstructionIndex(*CurrentSpill); in rmRedundantSpills() local
1416 MachineInstr *SpillToRm = (CIdx > PIdx) ? CurrentSpill : PrevSpill; in rmRedundantSpills()
1417 MachineInstr *SpillToKeep = (CIdx > PIdx) ? PrevSpill : CurrentSpill; in rmRedundantSpills()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp925 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyMultipleUseDemandedBits() local
927 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements()) && in SimplifyMultipleUseDemandedBits()
928 !DemandedElts[CIdx->getZExtValue()]) in SimplifyMultipleUseDemandedBits()
1275 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyDemandedBits() local
1281 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements())) { in SimplifyDemandedBits()
1282 unsigned Idx = CIdx->getZExtValue(); in SimplifyDemandedBits()
2718 if (auto *CIdx = dyn_cast<ConstantSDNode>(Idx)) in SimplifyDemandedBits() local
2719 if (CIdx->getAPIntValue().ult(NumSrcElts)) in SimplifyDemandedBits()
2720 DemandedSrcElts = APInt::getOneBitSet(NumSrcElts, CIdx->getZExtValue()); in SimplifyDemandedBits()
3523 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyDemandedVectorElts() local
[all …]
H A DLegalizeVectorTypes.cpp1989 if (ConstantSDNode *CIdx = dyn_cast<ConstantSDNode>(Idx)) { in SplitVecRes_INSERT_VECTOR_ELT() local
1990 unsigned IdxVal = CIdx->getZExtValue(); in SplitVecRes_INSERT_VECTOR_ELT()
H A DDAGCombiner.cpp22449 if (auto *CIdx = dyn_cast<ConstantSDNode>(Idx)) { in replaceStoreOfInsertLoad() local
22450 unsigned COffset = CIdx->getSExtValue() * EltVT.getSizeInBits() / 8; in replaceStoreOfInsertLoad()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp23003 unsigned CIdx = Idx->getZExtValue(); in matchScalarReduction() local
23004 if (M->second[CIdx]) in matchScalarReduction()
23006 M->second.setBit(CIdx); in matchScalarReduction()
44665 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in SimplifyDemandedBitsForTargetNode() local
44669 if (CIdx && CIdx->getAPIntValue().ult(NumVecElts)) { in SimplifyDemandedBitsForTargetNode()
44670 unsigned Idx = CIdx->getZExtValue(); in SimplifyDemandedBitsForTargetNode()
44704 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyDemandedBitsForTargetNode() local
44707 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements())) { in SimplifyDemandedBitsForTargetNode()
44708 unsigned Idx = CIdx->getZExtValue(); in SimplifyDemandedBitsForTargetNode()
44963 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyMultipleUseDemandedBitsForTargetNode() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp687 const ConstantInt *CIdx = cast<ConstantInt>(Idx); in getIntrinsicInstrCost() local
689 VecLK.first == TargetLoweringBase::TypeLegal && CIdx->isZero()) in getIntrinsicInstrCost()
H A DAArch64ISelLowering.cpp14210 auto *CIdx = dyn_cast<ConstantSDNode>(Idx128); in LowerDUPQLane() local
14211 if (CIdx && (CIdx->getZExtValue() <= 3)) { in LowerDUPQLane()
14212 SDValue CI = DAG.getTargetConstant(CIdx->getZExtValue(), DL, MVT::i64); in LowerDUPQLane()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp3717 auto *CIdx = dyn_cast<ConstantSDNode>(Idx); in matchSplatAsGather() local
3718 if (!CIdx || CIdx->getZExtValue() >= VT.getVectorMinNumElements()) in matchSplatAsGather()