Home
last modified time | relevance | path

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

12

/external/clang/lib/StaticAnalyzer/Checkers/
DObjCContainersChecker.cpp131 SVal IdxVal = State->getSVal(IdxExpr, C.getLocationContext()); in checkPreStmt() local
132 if (IdxVal.isUnknownOrUndef()) in checkPreStmt()
134 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>(); in checkPreStmt()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DObjCContainersChecker.cpp133 SVal IdxVal = C.getSVal(IdxExpr); in checkPreStmt() local
134 if (IdxVal.isUnknownOrUndef()) in checkPreStmt()
136 DefinedSVal Idx = IdxVal.castAs<DefinedSVal>(); in checkPreStmt()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DInstrOrderFile.cpp145 Value *IdxVal = updateB.CreateAtomicRMW( in generateCodeSequence() local
150 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DInstrOrderFile.cpp146 Value *IdxVal = updateB.CreateAtomicRMW( in generateCodeSequence() local
151 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp839 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in SplitVecRes_EXTRACT_SUBVECTOR() local
841 DAG.getConstant(IdxVal + LoVT.getVectorNumElements(), dl, in SplitVecRes_EXTRACT_SUBVECTOR()
865 unsigned IdxVal = ConstIdx->getZExtValue(); in SplitVecRes_INSERT_SUBVECTOR() local
866 if ((IdxVal == 0) && (IdxVal + SubElems <= VecElems / 2)) { in SplitVecRes_INSERT_SUBVECTOR()
986 unsigned IdxVal = CIdx->getZExtValue(); in SplitVecRes_INSERT_VECTOR_ELT() local
988 if (IdxVal < LoNumElts) in SplitVecRes_INSERT_VECTOR_ELT()
994 DAG.getConstant(IdxVal - LoNumElts, dl, in SplitVecRes_INSERT_VECTOR_ELT()
1602 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in SplitVecOp_EXTRACT_SUBVECTOR() local
1604 if (IdxVal < LoElts) { in SplitVecOp_EXTRACT_SUBVECTOR()
1605 assert(IdxVal + SubVT.getVectorNumElements() <= LoElts && in SplitVecOp_EXTRACT_SUBVECTOR()
[all …]
DLegalizeFloatTypes.cpp1962 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in PromoteFloatRes_EXTRACT_VECTOR_ELT() local
1983 if (IdxVal < LoElts) in PromoteFloatRes_EXTRACT_VECTOR_ELT()
1987 DAG.getConstant(IdxVal - LoElts, DL, in PromoteFloatRes_EXTRACT_VECTOR_ELT()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp1537 Optional<int64_t> IdxVal = getConstantVRegVal(MI.getOperand(2).getReg(), MRI); in legalizeExtractVectorElt() local
1538 if (!IdxVal) // Dynamic case will be selected to register indexing. in legalizeExtractVectorElt()
1550 if (IdxVal.getValue() < VecTy.getNumElements()) in legalizeExtractVectorElt()
1551 B.buildExtract(Dst, Vec, IdxVal.getValue() * EltTy.getSizeInBits()); in legalizeExtractVectorElt()
1566 Optional<int64_t> IdxVal = getConstantVRegVal(MI.getOperand(3).getReg(), MRI); in legalizeInsertVectorElt() local
1567 if (!IdxVal) // Dynamic case will be selected to register indexing. in legalizeInsertVectorElt()
1580 if (IdxVal.getValue() < VecTy.getNumElements()) in legalizeInsertVectorElt()
1581 B.buildInsert(Dst, Vec, Ins, IdxVal.getValue() * EltTy.getSizeInBits()); in legalizeInsertVectorElt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp1118 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in SplitVecRes_EXTRACT_SUBVECTOR() local
1120 DAG.getConstant(IdxVal + LoVT.getVectorNumElements(), dl, in SplitVecRes_EXTRACT_SUBVECTOR()
1143 unsigned IdxVal = ConstIdx->getZExtValue(); in SplitVecRes_INSERT_SUBVECTOR() local
1144 if ((IdxVal == 0) && (IdxVal + SubElems <= VecElems / 2)) { in SplitVecRes_INSERT_SUBVECTOR()
1414 unsigned IdxVal = CIdx->getZExtValue(); in SplitVecRes_INSERT_VECTOR_ELT() local
1416 if (IdxVal < LoNumElts) in SplitVecRes_INSERT_VECTOR_ELT()
1422 DAG.getConstant(IdxVal - LoNumElts, dl, in SplitVecRes_INSERT_VECTOR_ELT()
2155 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in SplitVecOp_EXTRACT_SUBVECTOR() local
2157 if (IdxVal < LoElts) { in SplitVecOp_EXTRACT_SUBVECTOR()
2158 assert(IdxVal + SubVT.getVectorNumElements() <= LoElts && in SplitVecOp_EXTRACT_SUBVECTOR()
[all …]
DLegalizeFloatTypes.cpp2205 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in PromoteFloatRes_EXTRACT_VECTOR_ELT() local
2226 if (IdxVal < LoElts) in PromoteFloatRes_EXTRACT_VECTOR_ELT()
2230 DAG.getConstant(IdxVal - LoElts, DL, in PromoteFloatRes_EXTRACT_VECTOR_ELT()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp1216 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in SplitVecRes_EXTRACT_SUBVECTOR() local
1219 DAG.getVectorIdxConstant(IdxVal + LoVT.getVectorNumElements(), dl)); in SplitVecRes_EXTRACT_SUBVECTOR()
1240 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in SplitVecRes_INSERT_SUBVECTOR() local
1241 if ((IdxVal == 0) && (IdxVal + SubElems <= VecElems / 2)) { in SplitVecRes_INSERT_SUBVECTOR()
1520 unsigned IdxVal = CIdx->getZExtValue(); in SplitVecRes_INSERT_VECTOR_ELT() local
1522 if (IdxVal < LoNumElts) { in SplitVecRes_INSERT_VECTOR_ELT()
1528 DAG.getVectorIdxConstant(IdxVal - LoNumElts, dl)); in SplitVecRes_INSERT_VECTOR_ELT()
2297 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); in SplitVecOp_EXTRACT_SUBVECTOR() local
2299 if (IdxVal < LoElts) { in SplitVecOp_EXTRACT_SUBVECTOR()
2300 assert(IdxVal + SubVT.getVectorMinNumElements() <= LoElts && in SplitVecOp_EXTRACT_SUBVECTOR()
[all …]
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp4416 static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG, in extractSubVector() argument
4436 IdxVal &= ~(ElemsPerChunk - 1); in extractSubVector()
4441 dl, ResultVT, makeArrayRef(Vec->op_begin() + IdxVal, ElemsPerChunk)); in extractSubVector()
4443 SDValue VecIdx = DAG.getIntPtrConstant(IdxVal, dl); in extractSubVector()
4453 static SDValue extract128BitVector(SDValue Vec, unsigned IdxVal, in extract128BitVector() argument
4457 return extractSubVector(Vec, IdxVal, DAG, dl, 128); in extract128BitVector()
4461 static SDValue extract256BitVector(SDValue Vec, unsigned IdxVal, in extract256BitVector() argument
4464 return extractSubVector(Vec, IdxVal, DAG, dl, 256); in extract256BitVector()
4467 static SDValue insertSubVector(SDValue Result, SDValue Vec, unsigned IdxVal, in insertSubVector() argument
4485 IdxVal &= ~(ElemsPerChunk - 1); in insertSubVector()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp2090 Optional<ValueAndVReg> IdxVal = getConstantVRegValWithLookThrough( in legalizeExtractVectorElt() local
2092 if (!IdxVal) // Dynamic case will be selected to register indexing. in legalizeExtractVectorElt()
2102 if (IdxVal->Value < VecTy.getNumElements()) in legalizeExtractVectorElt()
2103 B.buildExtract(Dst, Vec, IdxVal->Value * EltTy.getSizeInBits()); in legalizeExtractVectorElt()
2121 Optional<ValueAndVReg> IdxVal = getConstantVRegValWithLookThrough( in legalizeInsertVectorElt() local
2123 if (!IdxVal) // Dynamic case will be selected to register indexing. in legalizeInsertVectorElt()
2134 if (IdxVal->Value < VecTy.getNumElements()) in legalizeInsertVectorElt()
2135 B.buildInsert(Dst, Vec, Ins, IdxVal->Value * EltTy.getSizeInBits()); in legalizeInsertVectorElt()
/external/llvm-project/clang/lib/CodeGen/
DCGStmtOpenMP.cpp4546 llvm::Value *IdxVal = EmitLoadOfScalar(IdxLVal, IVExpr->getExprLoc()); in EmitOMPScanDirective() local
4547 IdxVal = Builder.CreateIntCast(IdxVal, SizeTy, /*isSigned=*/false); in EmitOMPScanDirective()
4556 RValue::get(IdxVal)); in EmitOMPScanDirective()
4578 llvm::Value *IdxVal = EmitLoadOfScalar(IdxLVal, IVExpr->getExprLoc()); in EmitOMPScanDirective() local
4579 IdxVal = Builder.CreateIntCast(IdxVal, SizeTy, /*isSigned=*/false); in EmitOMPScanDirective()
4584 llvm::Value *Cmp = Builder.CreateIsNull(IdxVal); in EmitOMPScanDirective()
4588 IdxVal = Builder.CreateNUWSub(IdxVal, llvm::ConstantInt::get(SizeTy, 1)); in EmitOMPScanDirective()
4598 RValue::get(IdxVal)); in EmitOMPScanDirective()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DLegalizerHelper.cpp3170 int64_t IdxVal; in clampDynamicVectorIndex() local
3171 if (mi_match(IdxReg, *B.getMRI(), m_ICst(IdxVal))) in clampDynamicVectorIndex()
3671 int64_t IdxVal; in fewerElementsVectorExtractInsertVectorElt() local
3672 if (mi_match(Idx, MRI, m_ICst(IdxVal))) { in fewerElementsVectorExtractInsertVectorElt()
3674 if (IdxVal >= VecTy.getNumElements()) { in fewerElementsVectorExtractInsertVectorElt()
3690 int64_t PartIdx = IdxVal / NewNumElts; in fewerElementsVectorExtractInsertVectorElt()
3692 MIRBuilder.buildConstant(IdxTy, IdxVal - NewNumElts * PartIdx); in fewerElementsVectorExtractInsertVectorElt()
5665 int64_t IdxVal; in lowerExtractInsertVectorElt() local
5666 if (mi_match(Idx, MRI, m_ICst(IdxVal))) { in lowerExtractInsertVectorElt()
5667 int64_t Offset = IdxVal * EltBytes; in lowerExtractInsertVectorElt()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp264 uint64_t IdxVal = Idx->getZExtValue(); in FoldCmpLoadFromIndexedGlobal() local
265 if ((unsigned)IdxVal != IdxVal) return nullptr; // Too large array index. in FoldCmpLoadFromIndexedGlobal()
268 EltTy = STy->getElementType(IdxVal); in FoldCmpLoadFromIndexedGlobal()
270 if (IdxVal >= ATy->getNumElements()) return nullptr; in FoldCmpLoadFromIndexedGlobal()
276 LaterIndices.push_back(IdxVal); in FoldCmpLoadFromIndexedGlobal()
/external/llvm-project/llvm/lib/Target/X86/
DX86ISelLowering.cpp5810 static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG, in extractSubVector() argument
5824 IdxVal &= ~(ElemsPerChunk - 1); in extractSubVector()
5829 Vec->ops().slice(IdxVal, ElemsPerChunk)); in extractSubVector()
5831 SDValue VecIdx = DAG.getIntPtrConstant(IdxVal, dl); in extractSubVector()
5841 static SDValue extract128BitVector(SDValue Vec, unsigned IdxVal, in extract128BitVector() argument
5845 return extractSubVector(Vec, IdxVal, DAG, dl, 128); in extract128BitVector()
5849 static SDValue extract256BitVector(SDValue Vec, unsigned IdxVal, in extract256BitVector() argument
5852 return extractSubVector(Vec, IdxVal, DAG, dl, 256); in extract256BitVector()
5855 static SDValue insertSubVector(SDValue Result, SDValue Vec, unsigned IdxVal, in insertSubVector() argument
5873 IdxVal &= ~(ElemsPerChunk - 1); in insertSubVector()
[all …]
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp404 ConstantInt *IdxVal = dyn_cast<ConstantInt>(GEPI.getOperand()); in IsUserOfGlobalSafeForSRA() local
405 if (!IdxVal || IdxVal->getZExtValue() >= NumElements) in IsUserOfGlobalSafeForSRA()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp5619 static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG, in extractSubVector() argument
5633 IdxVal &= ~(ElemsPerChunk - 1); in extractSubVector()
5638 Vec->ops().slice(IdxVal, ElemsPerChunk)); in extractSubVector()
5640 SDValue VecIdx = DAG.getIntPtrConstant(IdxVal, dl); in extractSubVector()
5650 static SDValue extract128BitVector(SDValue Vec, unsigned IdxVal, in extract128BitVector() argument
5654 return extractSubVector(Vec, IdxVal, DAG, dl, 128); in extract128BitVector()
5658 static SDValue extract256BitVector(SDValue Vec, unsigned IdxVal, in extract256BitVector() argument
5661 return extractSubVector(Vec, IdxVal, DAG, dl, 256); in extract256BitVector()
5664 static SDValue insertSubVector(SDValue Result, SDValue Vec, unsigned IdxVal, in insertSubVector() argument
5682 IdxVal &= ~(ElemsPerChunk - 1); in insertSubVector()
[all …]
/external/llvm-project/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp392 ConstantInt *IdxVal = dyn_cast<ConstantInt>(GEPI.getOperand()); in isSafeSROAGEP() local
393 if (!IdxVal || (GEPI.isBoundedSequential() && in isSafeSROAGEP()
394 IdxVal->getZExtValue() >= GEPI.getSequentialNumElements())) in isSafeSROAGEP()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp387 ConstantInt *IdxVal = dyn_cast<ConstantInt>(GEPI.getOperand()); in isSafeSROAGEP() local
388 if (!IdxVal || (GEPI.isBoundedSequential() && in isSafeSROAGEP()
389 IdxVal->getZExtValue() >= GEPI.getSequentialNumElements())) in isSafeSROAGEP()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp179 uint64_t IdxVal = Idx->getZExtValue(); in foldCmpLoadFromIndexedGlobal() local
180 if ((unsigned)IdxVal != IdxVal) return nullptr; // Too large array index. in foldCmpLoadFromIndexedGlobal()
183 EltTy = STy->getElementType(IdxVal); in foldCmpLoadFromIndexedGlobal()
185 if (IdxVal >= ATy->getNumElements()) return nullptr; in foldCmpLoadFromIndexedGlobal()
191 LaterIndices.push_back(IdxVal); in foldCmpLoadFromIndexedGlobal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp178 uint64_t IdxVal = Idx->getZExtValue(); in foldCmpLoadFromIndexedGlobal() local
179 if ((unsigned)IdxVal != IdxVal) return nullptr; // Too large array index. in foldCmpLoadFromIndexedGlobal()
182 EltTy = STy->getElementType(IdxVal); in foldCmpLoadFromIndexedGlobal()
184 if (IdxVal >= ATy->getNumElements()) return nullptr; in foldCmpLoadFromIndexedGlobal()
190 LaterIndices.push_back(IdxVal); in foldCmpLoadFromIndexedGlobal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantFold.cpp849 uint64_t IdxVal = CIdx->getZExtValue(); in ConstantFoldInsertElementInstruction() local
851 if (i == IdxVal) { in ConstantFoldInsertElementInstruction()
/external/llvm/lib/IR/
DConstantFold.cpp815 uint64_t IdxVal = CIdx->getZExtValue(); in ConstantFoldInsertElementInstruction() local
817 if (i == IdxVal) { in ConstantFoldInsertElementInstruction()
/external/llvm-project/llvm/lib/IR/
DConstantFold.cpp924 uint64_t IdxVal = CIdx->getZExtValue(); in ConstantFoldInsertElementInstruction() local
926 if (i == IdxVal) { in ConstantFoldInsertElementInstruction()

12