Home
last modified time | relevance | path

Searched refs:IdxTy (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrOrderFile.cpp66 Type *IdxTy = Type::getInt32Ty(Ctx); in createOrderFileData() local
78 BufferIdx = new GlobalVariable(M, IdxTy, false, GlobalValue::LinkOnceODRLinkage, in createOrderFileData()
79 Constant::getNullValue(IdxTy), IndexName); in createOrderFileData()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelperVectorOps.cpp364 LLT IdxTy = MRI.getType(Extract->getIndexReg()); in matchExtractVectorElementWithShuffleVector() local
369 {TargetOpcode::G_EXTRACT_VECTOR_ELT, {DstTy, NewVectorTy, IdxTy}}) || in matchExtractVectorElementWithShuffleVector()
370 !isConstantLegalOrBeforeLegalizer({IdxTy})) in matchExtractVectorElementWithShuffleVector()
375 auto Idx = B.buildConstant(IdxTy, SrcIdx); in matchExtractVectorElementWithShuffleVector()
H A DLegalizerHelper.cpp3209 LLT IdxTy = B.getMRI()->getType(Idx); in getBitcastWiderVectorElementOffset() local
3213 IdxTy, ~(APInt::getAllOnes(IdxTy.getSizeInBits()) << Log2EltRatio)); in getBitcastWiderVectorElementOffset()
3214 auto OffsetIdx = B.buildAnd(IdxTy, Idx, OffsetMask); in getBitcastWiderVectorElementOffset()
3215 return B.buildShl(IdxTy, OffsetIdx, in getBitcastWiderVectorElementOffset()
3216 B.buildConstant(IdxTy, Log2_32(OldEltSize))).getReg(0); in getBitcastWiderVectorElementOffset()
3231 auto [Dst, DstTy, SrcVec, SrcVecTy, Idx, IdxTy] = MI.getFirst3RegLLTs(); in bitcastExtractVectorElt()
3261 auto NewEltsPerOldEltK = MIRBuilder.buildConstant(IdxTy, NewEltsPerOldElt); in bitcastExtractVectorElt()
3264 auto NewBaseIdx = MIRBuilder.buildMul(IdxTy, Idx, NewEltsPerOldEltK); in bitcastExtractVectorElt()
3267 auto IdxOffset = MIRBuilder.buildConstant(IdxTy, I); in bitcastExtractVectorElt()
3268 auto TmpIdx = MIRBuilder.buildAdd(IdxTy, NewBaseIdx, IdxOffset); in bitcastExtractVectorElt()
[all …]
H A DIRTranslator.cpp1641 LLT IdxTy = MRI->getType(IdxReg); in translateGetElementPtr() local
1642 if (IdxTy != OffsetTy) { in translateGetElementPtr()
1643 if (!IdxTy.isVector() && WantSplatVector) { in translateGetElementPtr()
1645 .buildSplatBuildVector(OffsetTy.changeElementType(IdxTy), in translateGetElementPtr()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DReplaceConstant.cpp39 Type *IdxTy = Type::getInt32Ty(C->getContext()); in expandUser() local
42 V = InsertElementInst::Create(V, Op, ConstantInt::get(IdxTy, Idx), "", in expandUser()
H A DConstants.cpp1489 Type *IdxTy = Type::getInt64Ty(VTy->getContext()); in getSplat() local
1493 V = ConstantExpr::getInsertElement(PoisonV, V, ConstantInt::get(IdxTy, 0)); in getSplat()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp421 LLT IdxTy = MRI.getType(Insert.getIndexReg()); in applyNonConstInsert() local
439 auto Mask = Builder.buildConstant(IdxTy, VecTy.getNumElements() - 1); in applyNonConstInsert()
440 Register And = Builder.buildAnd(IdxTy, Offset, Mask).getReg(0); in applyNonConstInsert()
441 auto EltSize = Builder.buildConstant(IdxTy, EltTy.getSizeInBytes()); in applyNonConstInsert()
442 Register Mul = Builder.buildMul(IdxTy, And, EltSize).getReg(0); in applyNonConstInsert()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp403 VectorType *IdxTy = getVRGatherIndexType(LT.second, *ST, Tp->getContext()); in getShuffleCost() local
404 InstructionCost IndexCost = getConstantPoolLoadCost(IdxTy, CostKind); in getShuffleCost()
420 VectorType *IdxTy = getVRGatherIndexType(LT.second, *ST, C); in getShuffleCost() local
422 InstructionCost IndexCost = getConstantPoolLoadCost(IdxTy, CostKind); in getShuffleCost()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp484 const QualType IdxTy = SVB.getArrayIndexType(); in checkInit() local
487 SVB.makeIntVal(Ctx.getTypeSizeInChars(ElemTy).getQuantity(), IdxTy) in checkInit()
510 IdxTy) in checkInit()
514 const NonLoc One = SVB.makeIntVal(1, IdxTy).castAs<NonLoc>(); in checkInit()
515 SVal LastIdx = SVB.evalBinOpNN(State, BO_Sub, *Offset, One, IdxTy); in checkInit()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfUnit.cpp1568 DIE *IdxTy = getIndexTyDie(); in constructArrayTypeDIE() local
1576 constructSubrangeDIE(Buffer, cast<DISubrange>(Element), IdxTy); in constructArrayTypeDIE()
1579 IdxTy); in constructArrayTypeDIE()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp691 Type *IdxTy = in optimizeForVFAndUF() local
693 const SCEV *TripCount = createTripCountSCEV(IdxTy, PSE); in optimizeForVFAndUF()
H A DLoopVectorize.cpp928 const SCEV *createTripCountSCEV(Type *IdxTy, PredicatedScalarEvolution &PSE, in createTripCountSCEV() argument
934 return SE.getTripCountFromExitCount(BackedgeTakenCount, IdxTy, OrigLoop); in createTripCountSCEV()
2316 Type *IdxTy = Cost->Legal->getWidestInductionType(); in isIndvarOverflowCheckKnownFalse() local
2317 APInt MaxUIntTripCount = cast<IntegerType>(IdxTy)->getMask(); in isIndvarOverflowCheckKnownFalse()
7633 Type *IdxTy = Legal->getWidestInductionType(); in createEpilogueVectorizedLoopSkeleton() local
7634 PHINode *EPResumeVal = PHINode::Create(IdxTy, 2, "vec.epilog.resume.val"); in createEpilogueVectorizedLoopSkeleton()
7637 EPResumeVal->addIncoming(ConstantInt::get(IdxTy, 0), in createEpilogueVectorizedLoopSkeleton()
8349 static void addCanonicalIVRecipes(VPlan &Plan, Type *IdxTy, bool HasNUW, in addCanonicalIVRecipes() argument
8351 Value *StartIdx = ConstantInt::get(IdxTy, 0); in addCanonicalIVRecipes()
H A DVPlanRecipes.cpp2527 auto *IdxTy = Builder.getInt32Ty(); in execute() local
2528 auto *One = ConstantInt::get(IdxTy, 1); in execute()
2531 auto *RuntimeVF = getRuntimeVF(Builder, IdxTy, State.VF); in execute()
H A DVPlan.h86 const SCEV *createTripCountSCEV(Type *IdxTy, PredicatedScalarEvolution &PSE,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1856 LLT IdxTy = MRI->getType(MI->getOperand(2).getReg()); in verifyPreISelGenericInstruction() local
1869 if (IdxTy.getSizeInBits() != in verifyPreISelGenericInstruction()
1881 LLT IdxTy = MRI->getType(MI->getOperand(3).getReg()); in verifyPreISelGenericInstruction() local
1899 if (IdxTy.getSizeInBits() != in verifyPreISelGenericInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1094 auto *IdxTy = Type::getInt64Ty(II.getContext()); in instCombineSVEDup() local
1096 II.getArgOperand(0), II.getArgOperand(2), ConstantInt::get(IdxTy, 0)); in instCombineSVEDup()
1243 auto *IdxTy = Type::getInt64Ty(II.getContext()); in instCombineSVELast() local
1244 auto *Extract = ExtractElementInst::Create(Vec, ConstantInt::get(IdxTy, 0)); in instCombineSVELast()
1279 auto *IdxTy = Type::getInt64Ty(II.getContext()); in instCombineSVELast() local
1280 auto *Extract = ExtractElementInst::Create(Vec, ConstantInt::get(IdxTy, Idx)); in instCombineSVELast()
H A DAArch64ISelLowering.cpp15839 Type *IdxTy = GTI.getIndexedType(); in isExtFreeImpl() local
15844 if (IdxTy->isScalableTy()) in isExtFreeImpl()
15847 llvm::countr_zero(DL.getTypeStoreSizeInBits(IdxTy).getFixedValue()) - in isExtFreeImpl()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopAccessAnalysis.cpp251 Type *IdxTy = DL.getIndexType(PtrExpr->getType()); in getStartAndEndForAccess() local
252 const SCEV *EltSizeSCEV = SE->getStoreSizeOfExpr(IdxTy, AccessTy); in getStartAndEndForAccess()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1707 Type *IdxTy = Type::getInt32Ty(BC->getContext()); in materializeValue() local
1710 Value *Idx = ConstantInt::get(IdxTy, Pair.index()); in materializeValue()
3479 Type *IdxTy = getTypeByID(IdxTyID); in parseConstants() local
3480 if (!IdxTy) in parseConstants()
3499 Type *IdxTy = getTypeByID(IdxTyID); in parseConstants() local
3500 if (!IdxTy) in parseConstants()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp1770 const LLT IdxTy = Query.Types[IdxTypeIdx]; in AMDGPULegalizerInfo() local
1785 IdxTy.getSizeInBits() == 32 && in AMDGPULegalizerInfo()
5546 LLT IdxTy = LLT::scalar(DstTy.getSizeInBits()); in getImplicitArgPtr() local
5554 B.buildPtrAdd(DstReg, KernargPtrReg, B.buildConstant(IdxTy, Offset).getReg(0)); in getImplicitArgPtr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp4176 QualType IdxTy = E->getIdx()->getType(); in EmitArraySubscriptExpr() local
4177 bool IdxSigned = IdxTy->isSignedIntegerOrEnumerationType(); in EmitArraySubscriptExpr()
4181 EmitBoundsCheck(E, E->getBase(), Idx, IdxTy, Accessed); in EmitArraySubscriptExpr()
H A DCGExprScalar.cpp1985 QualType IdxTy = E->getIdx()->getType(); in VisitArraySubscriptExpr() local
1988 CGF.EmitBoundsCheck(E, E->getBase(), Idx, IdxTy, /*Accessed*/true); in VisitArraySubscriptExpr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp4330 MVT IdxTy = MVT::getIntegerVT(IdxSize); in visitGetElementPtr() local
4353 Offs, dl, EVT::getVectorVT(Context, IdxTy, VectorElementCount)); in visitGetElementPtr()
4355 OffsVal = DAG.getConstant(Offs, dl, IdxTy); in visitGetElementPtr()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstrNEON.td6667 ValueType Ty, Operand IdxTy>
6668 : NVDupLane<op19_16, 0, (outs DPR:$Vd), (ins DPR:$Vm, IdxTy:$lane),
6673 ValueType ResTy, ValueType OpTy, Operand IdxTy>
6674 : NVDupLane<op19_16, 1, (outs QPR:$Vd), (ins DPR:$Vm, IdxTy:$lane),