/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantFolder.h | 148 auto *CIdx = dyn_cast<Constant>(Idx); in FoldExtractElement() local 149 if (CVec && CIdx) in FoldExtractElement() 150 return ConstantExpr::getExtractElement(CVec, CIdx); in FoldExtractElement() 158 auto *CIdx = dyn_cast<Constant>(Idx); in FoldInsertElement() local 159 if (CVec && CNewElt && CIdx) in FoldInsertElement() 160 return ConstantExpr::getInsertElement(CVec, CNewElt, CIdx); in FoldInsertElement()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetFolder.h | 159 auto *CIdx = dyn_cast<Constant>(Idx); in FoldExtractElement() local 160 if (CVec && CIdx) in FoldExtractElement() 161 return Fold(ConstantExpr::getExtractElement(CVec, CIdx)); in FoldExtractElement() 169 auto *CIdx = dyn_cast<Constant>(Idx); in FoldInsertElement() local 170 if (CVec && CNewElt && CIdx) in FoldInsertElement() 171 return Fold(ConstantExpr::getInsertElement(CVec, CNewElt, CIdx)); in FoldInsertElement()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 358 auto *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldExtractElementInstruction() local 359 if (!CIdx) in ConstantFoldExtractElementInstruction() 364 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction() 388 APSInt(CIdx->getValue()))) { in ConstantFoldExtractElementInstruction() 391 return ConstantExpr::getExtractElement(CE->getOperand(0), CIdx); in ConstantFoldExtractElementInstruction() 397 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction() 401 if (CIdx->getValue().ult(ValVTy->getElementCount().getKnownMinValue())) { in ConstantFoldExtractElementInstruction() 420 ConstantInt *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldInsertElementInstruction() local 421 if (!CIdx) return nullptr; in ConstantFoldInsertElementInstruction() 431 if (CIdx->uge(NumElts)) in ConstantFoldInsertElementInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FlattenCFG.cpp | 207 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 D | Index.h | 647 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, 6426 CINDEX_LINKAGE CXIndexAction clang_IndexAction_create(CXIndex CIdx);
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 1907 auto *CIdx = dyn_cast<ConstantInt>(I->getOperand(2)); in computeKnownBitsFromOperator() local 1912 if (CIdx && CIdx->getValue().ult(NumElts)) { in computeKnownBitsFromOperator() 1913 DemandedVecElts.clearBit(CIdx->getZExtValue()); in computeKnownBitsFromOperator() 1914 NeedsElt = DemandedElts[CIdx->getZExtValue()]; in computeKnownBitsFromOperator() 1937 auto *CIdx = dyn_cast<ConstantInt>(Idx); in computeKnownBitsFromOperator() local 1945 if (CIdx && CIdx->getValue().ult(NumElts)) in computeKnownBitsFromOperator() 1946 DemandedVecElts = APInt::getOneBitSet(NumElts, CIdx->getZExtValue()); in computeKnownBitsFromOperator() 2978 auto *CIdx = dyn_cast<ConstantInt>(I->getOperand(2)); in isKnownNonZeroFromOperator() local 2984 if (CIdx && CIdx->getValue().ult(NumElts)) { in isKnownNonZeroFromOperator() 2985 DemandedVecElts.clearBit(CIdx->getZExtValue()); in isKnownNonZeroFromOperator() [all …]
|
H A D | BasicAliasAnalysis.cpp | 670 if (const ConstantInt *CIdx = dyn_cast<ConstantInt>(Index)) { in DecomposeGEPExpression() local 671 if (CIdx->isZero()) in DecomposeGEPExpression() 682 CIdx->getValue().sextOrTrunc(MaxIndexSize); in DecomposeGEPExpression()
|
H A D | InstructionSimplify.cpp | 5229 if (auto *CIdx = dyn_cast<Constant>(Idx)) in simplifyExtractElementInst() local 5230 return ConstantExpr::getExtractElement(CVec, CIdx); in simplifyExtractElementInst()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | InlineSpiller.cpp | 1388 SlotIndex CIdx = LIS.getInstructionIndex(*CurrentSpill); in rmRedundantSpills() local 1389 MachineInstr *SpillToRm = (CIdx > PIdx) ? CurrentSpill : PrevSpill; in rmRedundantSpills() 1390 MachineInstr *SpillToKeep = (CIdx > PIdx) ? PrevSpill : CurrentSpill; in rmRedundantSpills()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 870 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyMultipleUseDemandedBits() local 872 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements()) && in SimplifyMultipleUseDemandedBits() 873 !DemandedElts[CIdx->getZExtValue()]) in SimplifyMultipleUseDemandedBits() 1220 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyDemandedBits() local 1226 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements())) { in SimplifyDemandedBits() 1227 unsigned Idx = CIdx->getZExtValue(); in SimplifyDemandedBits() 2650 if (auto *CIdx = dyn_cast<ConstantSDNode>(Idx)) in SimplifyDemandedBits() local 2651 if (CIdx->getAPIntValue().ult(NumSrcElts)) in SimplifyDemandedBits() 2652 DemandedSrcElts = APInt::getOneBitSet(NumSrcElts, CIdx->getZExtValue()); in SimplifyDemandedBits() 3382 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyDemandedVectorElts() local [all …]
|
H A D | LegalizeVectorTypes.cpp | 1913 if (ConstantSDNode *CIdx = dyn_cast<ConstantSDNode>(Idx)) { in SplitVecRes_INSERT_VECTOR_ELT() 1914 unsigned IdxVal = CIdx->getZExtValue(); in SplitVecRes_INSERT_VECTOR_ELT() 1909 if (ConstantSDNode *CIdx = dyn_cast<ConstantSDNode>(Idx)) { SplitVecRes_INSERT_VECTOR_ELT() local
|
H A D | DAGCombiner.cpp | 21392 if (auto *CIdx = dyn_cast<ConstantSDNode>(Idx)) { in replaceStoreOfInsertLoad() local 21393 unsigned COffset = CIdx->getSExtValue() * EltVT.getSizeInBits() / 8; in replaceStoreOfInsertLoad()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 648 const ConstantInt *CIdx = cast<ConstantInt>(Idx); in getIntrinsicInstrCost() local 650 VecLK.first == TargetLoweringBase::TypeLegal && CIdx->isZero()) in getIntrinsicInstrCost()
|
H A D | AArch64ISelLowering.cpp | 13360 auto *CIdx = dyn_cast<ConstantSDNode>(Idx128); in LowerDUPQLane() local 13361 if (CIdx && (CIdx->getZExtValue() <= 3)) { in LowerDUPQLane() 13362 SDValue CI = DAG.getTargetConstant(CIdx->getZExtValue(), DL, MVT::i64); in LowerDUPQLane()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 22267 unsigned CIdx = Idx->getZExtValue(); in matchScalarReduction() local 22268 if (M->second[CIdx]) in matchScalarReduction() 22270 M->second.setBit(CIdx); in matchScalarReduction() 42877 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in SimplifyDemandedBitsForTargetNode() local 42881 if (CIdx && CIdx->getAPIntValue().ult(NumVecElts)) { in SimplifyDemandedBitsForTargetNode() 42882 unsigned Idx = CIdx->getZExtValue(); in SimplifyDemandedBitsForTargetNode() 42916 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyDemandedBitsForTargetNode() local 42919 if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements())) { in SimplifyDemandedBitsForTargetNode() 42920 unsigned Idx = CIdx->getZExtValue(); in SimplifyDemandedBitsForTargetNode() 43175 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2)); in SimplifyMultipleUseDemandedBitsForTargetNode() local [all …]
|