Home
last modified time | relevance | path

Searched refs:ZExtInst (Results 1 – 25 of 53) sorted by relevance

123

/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp616 return new ZExtInst(Builder.CreateShl(X, ShAmt), Ty); in visitShl()
723 return new ZExtInst(Cmp, Ty); in visitLShr()
769 return new ZExtInst(NewLShr, Ty); in visitLShr()
779 return new ZExtInst(X, Ty); in visitLShr()
784 return new ZExtInst(NewLShr, Ty); in visitLShr()
793 return new ZExtInst(AShr, Ty); in visitLShr()
H A DInstCombineCasts.cpp847 Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, ZExtInst &CI, in transformZExtICmp()
1089 Instruction *InstCombiner::visitZExt(ZExtInst &CI) { in visitZExt()
1159 return new ZExtInst(And, CI.getType()); in visitZExt()
1195 if (auto *LZExt = dyn_cast<ZExtInst>(LCast)) in visitZExt()
1197 if (auto *RZExt = dyn_cast<ZExtInst>(RCast)) in visitZExt()
1711 return new ZExtInst(SrcI, FITy); in FoldItoFPtoI()
2329 if (isa<TruncInst>(Src) || isa<ZExtInst>(Src)) { in visitBitCast()
H A DInstCombineMulDivRem.cpp688 return new ZExtInst(Builder.CreateICmpEQ(Op1, Op0), Ty); in commonIDivTransforms()
843 return new ZExtInst(NarrowOp, Ty); in narrowUDivURem()
860 return new ZExtInst(NarrowOp, Ty); in narrowUDivURem()
1009 return new ZExtInst(Builder.CreateICmpEQ(Op0, Op1), I.getType()); in visitSDiv()
H A DInstCombineAndOrXor.cpp1324 return new ZExtInst(NewOp, DestTy); in foldLogicCastConstant()
1524 return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty); in narrowMaskedBinOp()
1566 return new ZExtInst(IsZero, I.getType()); in visitAnd()
1637 if (isa<ZExtInst>(Op0LHS)) in visitAnd()
1643 return new ZExtInst(And, I.getType()); in visitAnd()
1770 if (Instruction *Ext = dyn_cast<ZExtInst>(Op0)) in matchBSwap()
1773 if (Instruction *Ext = dyn_cast<ZExtInst>(Op1)) in matchBSwap()
H A DInstCombineInternal.h381 Instruction *visitZExt(ZExtInst &CI);
489 Instruction *transformZExtICmp(ICmpInst *ICI, ZExtInst &CI,
H A DInstCombinePHI.cpp667 if (auto *Zext = dyn_cast<ZExtInst>(V)) { in FoldPHIArgZextsIntoPHI()
681 if (auto *Zext = dyn_cast<ZExtInst>(V)) { in FoldPHIArgZextsIntoPHI()
H A DInstCombineSelect.cpp520 return new ZExtInst(ICmpNeZero, SelType); in foldSelectICmpAndAnd()
1702 return new ZExtInst(CondVal, SelType); in visitSelectInst()
1711 return new ZExtInst(NotCond, SelType); in visitSelectInst()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp114 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef()
H A DNaryReassociate.cpp337 } else if (ZExtInst *ZExt = dyn_cast<ZExtInst>(IndexToSplit)) { in tryReassociateGEPAtIndex()
H A DIndVarSimplify.cpp1427 ZExtInst *User = dyn_cast<ZExtInst>(U.getUser()); in widenWithVariantLoadUse()
1483 ZExtInst *User = dyn_cast<ZExtInst>(U.getUser()); in widenWithVariantLoadUseCodegen()
1542 (isa<ZExtInst>(DU.NarrowUse) && canWidenByZExt())) { in widenIVUse()
H A DSeparateConstOffsetFromGEP.cpp597 } else if (isa<ZExtInst>(V)) { in find()
659 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp177 auto *ZextGroupSize = dyn_cast<ZExtInst>(U); in processUse()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h139 void visitZExtInst(ZExtInst &I);
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp116 return new ZExtInst(V, IntTy, "", InstPt); in translate()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h635 if (const auto* Cast = dyn_cast<ZExtInst>(Val)) { in minRequiredElementSize()
824 if (isa<SExtInst>(CI) || isa<ZExtInst>(CI) || isa<FPExtInst>(CI)) in getUserCost()
/freebsd-12.1/contrib/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp242 bool IsExtInst = (isa<ZExtInst>(I) || isa<SExtInst>(I)); in getBestTruncatedType()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DInstructions.cpp2579 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore); in Create()
2601 case ZExt: return new ZExtInst (S, Ty, Name, InsertAtEnd); in Create()
3140 ZExtInst::ZExtInst( in ZExtInst() function in ZExtInst
3146 ZExtInst::ZExtInst( in ZExtInst() function in ZExtInst
3877 ZExtInst *ZExtInst::cloneImpl() const { in cloneImpl()
3878 return new ZExtInst(getOperand(0), getType()); in cloneImpl()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMCodeGenPrepare.cpp264 if (auto *ZExt = dyn_cast<ZExtInst>(V)) in isSink()
706 if (NewInsts.count(Src) && isa<ZExtInst>(V) && isa<TruncInst>(Src)) { in Cleanup()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DInstVisitor.h180 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);} in visitZExtInst()
H A DInstruction.def185 HANDLE_CAST_INST(38, ZExt , ZExtInst ) // Zero extend integers
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp312 assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) && in isIntExtFree()
316 bool IsZExt = isa<ZExtInst>(I); in isIntExtFree()
714 if (const auto *ZE = dyn_cast<ZExtInst>(I)) { in computeAddress()
798 if (const auto *ZE = dyn_cast<ZExtInst>(I)) { in computeAddress()
858 if (const auto *ZE = dyn_cast<ZExtInst>(U)) { in computeAddress()
1978 if (const auto *ZE = dyn_cast<ZExtInst>(I->use_begin()->getUser())) { in selectLoad()
4490 bool IsZExt = isa<ZExtInst>(I); in optimizeIntExtLoad()
4528 assert((isa<ZExtInst>(I) || isa<SExtInst>(I)) && in selectIntExt()
4548 bool IsZExt = isa<ZExtInst>(I); in selectIntExt()
4647 if (const auto *ZExt = dyn_cast<ZExtInst>(Src0)) { in selectMul()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp904 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
998 isa<ZExtInst>(OtherOp))) in getMemoryOpCost()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DVectorUtils.cpp350 if (TTI && (isa<ZExtInst>(&I) || isa<SExtInst>(&I)) && in computeMinimumValueSizes()
396 if (isa<SExtInst>(I) || isa<ZExtInst>(I) || isa<LoadInst>(I) || in computeMinimumValueSizes()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1727 ZExtInst *ExtVal = dyn_cast<ZExtInst>(CI->getArgOperand(0)); in optimizeCallInst()
3569 if (isa<ZExtInst>(Inst)) in canGetThrough()
3652 else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd))) in canGetThrough()
3665 assert((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) && in getAction()
3685 isa<ZExtInst>(ExtOpnd)) in getAction()
3705 if (isa<ZExtInst>(SExtOpnd)) { in promoteOperandForTruncAndAnyExt()
4897 if ((IsSExt && !isa<SExtInst>(UI)) || (!IsSExt && !isa<ZExtInst>(UI))) in hasSameExtUse()
6687 if (isa<ZExtInst>(I) || isa<SExtInst>(I)) { in optimizeInst()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp951 const ZExtInst *ZExt = cast<ZExtInst>(I); in selectZExt()

123