Home
last modified time | relevance | path

Searched refs:IdxVal (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DObjCContainersChecker.cpp125 SVal IdxVal = C.getSVal(IdxExpr); in checkPreStmt() local
126 if (IdxVal.isUnknownOrUndef()) in checkPreStmt()
128 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>(); in checkPreStmt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrOrderFile.cpp134 Value *IdxVal = updateB.CreateAtomicRMW( in generateCodeSequence() local
139 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorTypes.cpp1583 uint64_t IdxVal = Idx->getAsZExtVal(); in SplitVecRes_EXTRACT_SUBVECTOR() local
1586 DAG.getVectorIdxConstant(IdxVal + LoVT.getVectorMinNumElements(), dl)); in SplitVecRes_EXTRACT_SUBVECTOR()
1607 unsigned IdxVal = Idx->getAsZExtVal(); in SplitVecRes_INSERT_SUBVECTOR() local
1608 if (IdxVal + SubElems <= LoElems) { in SplitVecRes_INSERT_SUBVECTOR()
1616 IdxVal >= LoElems && IdxVal + SubElems <= VecElems) { in SplitVecRes_INSERT_SUBVECTOR()
1618 DAG.getVectorIdxConstant(IdxVal - LoElems, dl)); in SplitVecRes_INSERT_SUBVECTOR()
1910 unsigned IdxVal = CIdx->getZExtValue(); in SplitVecRes_INSERT_VECTOR_ELT() local
1912 if (IdxVal < LoNumElts) { in SplitVecRes_INSERT_VECTOR_ELT()
1918 DAG.getVectorIdxConstant(IdxVal - LoNumElts, dl)); in SplitVecRes_INSERT_VECTOR_ELT()
3466 uint64_t IdxVal = Idx->getAsZExtVal(); in SplitVecOp_INSERT_SUBVECTOR() local
[all …]
H A DLegalizeFloatTypes.cpp2727 uint64_t IdxVal = Idx->getAsZExtVal(); in PromoteFloatRes_EXTRACT_VECTOR_ELT() local
2748 if (IdxVal < LoElts) in PromoteFloatRes_EXTRACT_VECTOR_ELT()
2752 DAG.getConstant(IdxVal - LoElts, DL, in PromoteFloatRes_EXTRACT_VECTOR_ELT()
H A DLegalizeIntegerTypes.cpp5744 uint64_t IdxVal = BaseIdx->getAsZExtVal(); in PromoteIntRes_EXTRACT_SUBVECTOR() local
5747 DAG.getConstant(alignDown(IdxVal, NElts), dl, in PromoteIntRes_EXTRACT_SUBVECTOR()
5751 DAG.getConstant(IdxVal % NElts, dl, BaseIdx.getValueType())); in PromoteIntRes_EXTRACT_SUBVECTOR()
H A DSelectionDAGBuilder.cpp7666 unsigned IdxVal = in visitIntrinsicCall() local
7669 GlobalValue::dropLLVMManglingEscape(Fn->getName()), IdxVal); in visitIntrinsicCall()
H A DDAGCombiner.cpp24919 unsigned IdxVal = (ExtIdx * NVT.getScalarSizeInBits()) / EltSize; in visitEXTRACT_SUBVECTOR() local
24922 SDValue Src = V->getOperand(IdxVal); in visitEXTRACT_SUBVECTOR()
24930 DAG.getBuildVector(ExtractVT, DL, V->ops().slice(IdxVal, NumElems)); in visitEXTRACT_SUBVECTOR()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp4146 int64_t IdxVal; in clampVectorIndex() local
4147 if (mi_match(IdxReg, *B.getMRI(), m_ICst(IdxVal))) { in clampVectorIndex()
4148 if (IdxVal < VecTy.getNumElements()) in clampVectorIndex()
4559 int64_t IdxVal; in fewerElementsVectorExtractInsertVectorElt() local
4562 IdxVal = MaybeCst->Value.getSExtValue(); in fewerElementsVectorExtractInsertVectorElt()
4564 if (IdxVal >= VecTy.getNumElements()) { in fewerElementsVectorExtractInsertVectorElt()
4580 int64_t PartIdx = IdxVal / NewNumElts; in fewerElementsVectorExtractInsertVectorElt()
4582 MIRBuilder.buildConstant(IdxTy, IdxVal - NewNumElts * PartIdx); in fewerElementsVectorExtractInsertVectorElt()
7540 int64_t IdxVal; in lowerExtractInsertVectorElt() local
7541 if (mi_match(Idx, MRI, m_ICst(IdxVal)) && IdxVal <= NumElts) { in lowerExtractInsertVectorElt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp437 uint64_t IdxVal = CIdx->getZExtValue(); in ConstantFoldInsertElementInstruction() local
439 if (i == IdxVal) { in ConstantFoldInsertElementInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp3914 static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG, in extractSubVector() argument
3928 IdxVal &= ~(ElemsPerChunk - 1); in extractSubVector()
3933 Vec->ops().slice(IdxVal, ElemsPerChunk)); in extractSubVector()
3937 Vec.getOperand(1).getValueType().getVectorNumElements() <= IdxVal && in extractSubVector()
3941 SDValue VecIdx = DAG.getIntPtrConstant(IdxVal, dl); in extractSubVector()
3951 static SDValue extract128BitVector(SDValue Vec, unsigned IdxVal, in extract128BitVector() argument
3955 return extractSubVector(Vec, IdxVal, DAG, dl, 128); in extract128BitVector()
3959 static SDValue extract256BitVector(SDValue Vec, unsigned IdxVal, in extract256BitVector() argument
3962 return extractSubVector(Vec, IdxVal, DAG, dl, 256); in extract256BitVector()
3965 static SDValue insertSubVector(SDValue Result, SDValue Vec, unsigned IdxVal, in insertSubVector() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp5585 llvm::Value *IdxVal = EmitLoadOfScalar(IdxLVal, IVExpr->getExprLoc()); in EmitOMPScanDirective() local
5586 IdxVal = Builder.CreateIntCast(IdxVal, SizeTy, /*isSigned=*/false); in EmitOMPScanDirective()
5595 RValue::get(IdxVal)); in EmitOMPScanDirective()
5616 llvm::Value *IdxVal = EmitLoadOfScalar(IdxLVal, IVExpr->getExprLoc()); in EmitOMPScanDirective() local
5617 IdxVal = Builder.CreateIntCast(IdxVal, SizeTy, /*isSigned=*/false); in EmitOMPScanDirective()
5622 llvm::Value *Cmp = Builder.CreateIsNull(IdxVal); in EmitOMPScanDirective()
5626 IdxVal = Builder.CreateNUWSub(IdxVal, llvm::ConstantInt::get(SizeTy, 1)); in EmitOMPScanDirective()
5636 RValue::get(IdxVal)); in EmitOMPScanDirective()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2696 static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG, in extractSubVector() argument
2710 IdxVal &= ~(ElemsPerChunk - 1); in extractSubVector()
2715 Vec->ops().slice(IdxVal, ElemsPerChunk)); in extractSubVector()
2717 SDValue VecIdx = DAG.getIntPtrConstant(IdxVal, DL); in extractSubVector()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp148 uint64_t IdxVal = Idx->getZExtValue(); in foldCmpLoadFromIndexedGlobal() local
149 if ((unsigned)IdxVal != IdxVal) in foldCmpLoadFromIndexedGlobal()
153 EltTy = STy->getElementType(IdxVal); in foldCmpLoadFromIndexedGlobal()
155 if (IdxVal >= ATy->getNumElements()) in foldCmpLoadFromIndexedGlobal()
162 LaterIndices.push_back(IdxVal); in foldCmpLoadFromIndexedGlobal()
H A DInstCombineVectorOps.cpp510 uint64_t IdxVal = IndexC ? IndexC->getZExtValue() : 0; in visitExtractElementInst() local
511 if (IndexC && IdxVal < EC.getKnownMinValue() && GEP->hasOneUse()) { in visitExtractElementInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp2739 const uint64_t IdxVal = MaybeIdxVal->Value.getZExtValue(); in legalizeExtractVectorElt() local
2741 if (IdxVal < VecTy.getNumElements()) { in legalizeExtractVectorElt()
2743 B.buildCopy(Dst, Unmerge.getReg(IdxVal)); in legalizeExtractVectorElt()
2794 const uint64_t IdxVal = MaybeIdxVal->Value.getZExtValue(); in legalizeInsertVectorElt() local
2797 if (IdxVal < NumElts) { in legalizeInsertVectorElt()
2803 SrcRegs[IdxVal] = MI.getOperand(2).getReg(); in legalizeInsertVectorElt()
H A DSIISelLowering.cpp7156 unsigned IdxVal = Idx->getAsZExtVal(); in lowerINSERT_SUBVECTOR() local
7159 if (EltVT.getScalarSizeInBits() == 16 && IdxVal % 2 == 0) { in lowerINSERT_SUBVECTOR()
7182 DAG.getConstant(IdxVal / 2 + I, SL, MVT::i32)); in lowerINSERT_SUBVECTOR()
7192 DAG.getConstant(IdxVal + I, SL, MVT::i32)); in lowerINSERT_SUBVECTOR()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp10654 int64_t IdxVal = Idx.getSExtValue(); in LowerVECTOR_SPLICE() local
10666 if (Ty.isScalableVector() && IdxVal < 0 && in LowerVECTOR_SPLICE()
10667 (PredPattern = getSVEPredPatternFromNumElements(std::abs(IdxVal))) != in LowerVECTOR_SPLICE()
10683 if (IdxVal >= 0 && (IdxVal * BlockSize / 8) < 256) in LowerVECTOR_SPLICE()
19557 uint64_t IdxVal = N->getConstantOperandVal(2); in performInsertSubvectorCombine() local
19568 if (IdxVal == 0 && Vec.isUndef()) in performInsertSubvectorCombine()
19574 (IdxVal != 0 && IdxVal != NumSubElts)) in performInsertSubvectorCombine()
19581 if (IdxVal == 0) { in performInsertSubvectorCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp15653 uint64_t IdxVal = N->getConstantOperandVal(2); in PerformInsertSubvectorCombine() local
15664 if (IdxVal == 0 && Vec.isUndef()) in PerformInsertSubvectorCombine()
15670 (IdxVal != 0 && IdxVal != NumSubElts)) in PerformInsertSubvectorCombine()
15678 if (IdxVal == 0) { in PerformInsertSubvectorCombine()