Home
last modified time | relevance | path

Searched refs:SExtInst (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp78 if (isa<SExtInst>(U)) { in runOnFunction()
80 SExtInst* SI = new SExtInst(&Arg, Use->getType()); in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVCodeGenPrepare.cpp75 auto *SExt = new SExtInst(Src, ZExt->getType(), "", ZExt); in optimizeZExt()
89 auto *SExt = new SExtInst(Src, ZExt->getType(), "", ZExt); in optimizeZExt()
118 if (!LHS || (!isa<SExtInst>(LHS) && !isa<ZExtInst>(LHS))) in optimizeAndExt()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DBDCE.cpp114 if (SExtInst *SE = dyn_cast<SExtInst>(&I)) { in bitTrackingDCE()
H A DLoopFlatten.cpp217 (isa<SExtInst>(MatchedItCount) || isa<ZExtInst>(MatchedItCount))) { in matchLinearIVUser()
220 MatchedItCount = isa<SExtInst>(MatchedItCount) in matchLinearIVUser()
221 ? dyn_cast<SExtInst>(MatchedItCount)->getOperand(0) in matchLinearIVUser()
239 (isa<SExtInst>(InnerTripCount) || isa<ZExtInst>(InnerTripCount))) in checkInnerInductionPhiUsers()
342 if ((!isa<ZExtInst>(TripCountInst) && !isa<SExtInst>(TripCountInst)) || in verifyTripCount()
H A DLowerExpectIntrinsic.cpp146 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) { in handlePhiDef()
H A DSeparateConstOffsetFromGEP.cpp625 } else if (isa<SExtInst>(V)) { in find()
690 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain()
1219 Instruction *NewSExt = new SExtInst(Dom, I->getType(), "", I); in reuniteExts()
1231 Instruction *NewSExt = new SExtInst(Dom, I->getType(), "", I); in reuniteExts()
H A DNaryReassociate.cpp363 if (SExtInst *SExt = dyn_cast<SExtInst>(IndexToSplit)) { in tryReassociateGEPAtIndex()
H A DCorrelatedValuePropagation.cpp973 static bool processSExt(SExtInst *SDI, LazyValueInfo *LVI) { in processSExt()
1120 BBChanged |= processSExt(cast<SExtInst>(&II), LVI); in runImpl()
H A DLoopRerollPass.cpp561 isa<SExtInst>(UUser)) in isLoopControlIV()
1197 if (isa<SExtInst>(UUser)) { in validate()
H A DSCCP.cpp171 } else if (isa<SExtInst>(&Inst)) { in simplifyInstsInBlock()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp104 if (auto *SExt = dyn_cast<SExtInst>(V)) { in InsertMuls()
328 if (auto *SExt = dyn_cast<SExtInst>(V)) { in IsNarrowSequence()
356 !Ld->hasOneUse() || !isa<SExtInst>(Ld->user_back())) in RecordMemoryOps()
740 Instruction *BaseSExt = dyn_cast<SExtInst>(Base->user_back()); in CreateWideLoad()
741 Instruction *OffsetSExt = dyn_cast<SExtInst>(Offset->user_back()); in CreateWideLoad()
H A DMVELaneInterleavingPass.cpp340 bool Sext = isa<SExtInst>(I); in tryInterleave()
/llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp279 bool IsExtInst = (isa<ZExtInst>(I) || isa<SExtInst>(I)); in getBestTruncatedType()
520 assert((isa<SExtInst>(I.first) || isa<ZExtInst>(I.first)) && in ReduceExpressionGraph()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h139 void visitSExtInst(SExtInst &I);
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp1391 return new SExtInst(X, Ty); in visitAShr()
1430 return new SExtInst(NewSh, Ty); in visitAShr()
1436 return new SExtInst(Builder.CreateIsNotNull(X), Ty); in visitAShr()
1441 return new SExtInst(Builder.CreateICmpSLT(X, Y), Ty); in visitAShr()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstVisitor.h178 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);} in visitSExtInst()
H A DInstruction.def186 HANDLE_CAST_INST(40, SExt , SExtInst ) // Sign extend integers
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstructions.cpp3192 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
3214 case SExt: return new SExtInst (S, Ty, Name, InsertAtEnd); in Create()
3692 SExtInst::SExtInst( in SExtInst() function in SExtInst
3698 SExtInst::SExtInst( in SExtInst() function in SExtInst
4712 SExtInst *SExtInst::cloneImpl() const { in cloneImpl()
4713 return new SExtInst(getOperand(0), getType()); in cloneImpl()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp78 if (isa<SExtInst>(LHS)) in matchVPDPBUSDPattern()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1034 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
1135 (isa<TruncInst>(OtherOp) || isa<SExtInst>(OtherOp) || in getMemoryOpCost()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp584 Ext = new SExtInst(Op1, IVTy, "sext", ICI); in eliminateTrunc()
1585 User = dyn_cast<SExtInst>(User); in widenWithVariantUse()
1745 if ((isa<SExtInst>(DU.NarrowUse) && canWidenBySExt()) || in widenIVUse()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVectorUtils.cpp635 if (TTI && (isa<ZExtInst>(&I) || isa<SExtInst>(&I)) && in computeMinimumValueSizes()
680 if (isa<SExtInst>(I) || isa<ZExtInst>(I) || isa<LoadInst>(I) || in computeMinimumValueSizes()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp502 if (!isa<SExtInst>(OpA) && !isa<ZExtInst>(OpA)) in lookThroughComplexAddresses()
505 bool Signed = isa<SExtInst>(OpA); in lookThroughComplexAddresses()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp299 assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) && in isIntExtFree()
732 } else if (const auto *SE = dyn_cast<SExtInst>(I)) { in computeAddress()
814 } else if (const auto *SE = dyn_cast<SExtInst>(I)) { in computeAddress()
871 } else if (const auto *SE = dyn_cast<SExtInst>(U)) { in computeAddress()
1964 } else if (const auto *SE = dyn_cast<SExtInst>(I->use_begin()->getUser())) { in selectLoad()
4486 assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) && in selectIntExt()
4601 } else if (const auto *SExt = dyn_cast<SExtInst>(Src0)) { in selectMul()
4665 } else if (const auto *SExt = dyn_cast<SExtInst>(Op0)) { in selectShift()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4190 if (IsSExt && isa<SExtInst>(Inst)) in canGetThrough()
4267 else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd))) in canGetThrough()
4280 assert((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) && in getAction()
4284 bool IsSExt = isa<SExtInst>(Ext); in getAction()
4299 if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) || in getAction()
5681 bool IsSExt = isa<SExtInst>(FirstUser); in hasSameExtUse()
5685 if ((IsSExt && !isa<SExtInst>(UI)) || (!IsSExt && !isa<ZExtInst>(UI))) in hasSameExtUse()
5833 if (RemovedInsts.count(Inst) || !isa<SExtInst>(Inst) || in mergeSExts()
7925 if (isa<ZExtInst>(I) || isa<SExtInst>(I)) { in optimizeInst()

12