Home
last modified time | relevance | path

Searched refs:ZExt (Results 1 – 25 of 130) sorted by relevance

123456

/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVCodeGenPrepare.cpp61 bool RISCVCodeGenPrepare::visitZExtInst(ZExtInst &ZExt) { in visitZExtInst() argument
65 Value *Src = ZExt.getOperand(0); in visitZExtInst()
68 if (!ZExt.getType()->isIntegerTy(64) || !Src->getType()->isIntegerTy(32)) in visitZExtInst()
75 Constant::getNullValue(Src->getType()), &ZExt, in visitZExtInst()
77 auto *SExt = new SExtInst(Src, ZExt.getType(), "", &ZExt); in visitZExtInst()
78 SExt->takeName(&ZExt); in visitZExtInst()
79 SExt->setDebugLoc(ZExt.getDebugLoc()); in visitZExtInst()
81 ZExt.replaceAllUsesWith(SExt); in visitZExtInst()
82 ZExt.eraseFromParent(); in visitZExtInst()
91 auto *SExt = new SExtInst(Src, ZExt.getType(), "", &ZExt); in visitZExtInst()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86FixupSetCC.cpp81 MachineInstr *ZExt = nullptr; in runOnMachineFunction() local
84 ZExt = &Use; in runOnMachineFunction()
86 if (!ZExt) in runOnMachineFunction()
104 if (!MRI->constrainRegClass(ZExt->getOperand(0).getReg(), RC)) { in runOnMachineFunction()
120 BuildMI(*ZExt->getParent(), ZExt, ZExt->getDebugLoc(), in runOnMachineFunction()
121 TII->get(X86::INSERT_SUBREG), ZExt->getOperand(0).getReg()) in runOnMachineFunction()
125 ToErase.push_back(ZExt); in runOnMachineFunction()
H A DX86PartialReduction.cpp85 Cast->getOpcode() == Instruction::ZExt) && in matchVPDPBUSDPattern()
152 Cast->getOpcode() == Instruction::ZExt) && in tryMAddReplacement()
248 if (auto *ZExt = dyn_cast<ZExtInst>(Op)) in trySADReplacement() local
249 if (cast<VectorType>(ZExt->getOperand(0)->getType()) in trySADReplacement()
252 return ZExt->getOperand(0); in trySADReplacement()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DTypePromotion.cpp241 return Call->hasRetAttr(Attribute::AttrKind::ZExt); in isSource()
265 if (auto *ZExt = dyn_cast<ZExtInst>(V)) in isSink() local
266 return GreaterThanTypeSize(ZExt); in isSink()
446 Value *ZExt = Builder.CreateZExt(V, ExtTy); in ExtendSources() local
447 if (auto *I = dyn_cast<Instruction>(ZExt)) { in ExtendSources()
455 ReplaceAllUsersOfWith(V, ZExt); in ExtendSources()
570 if (auto ZExt = dyn_cast<ZExtInst>(I)) in TruncateSinks() local
571 if (ZExt->getType()->getScalarSizeInBits() >= PromotedWidth) in TruncateSinks()
593 auto ZExt = cast<ZExtInst>(V); in Cleanup() local
594 if (ZExt->getDestTy() != ExtTy) in Cleanup()
[all …]
H A DAnalysis.cpp591 if (CallerAttrs.contains(Attribute::ZExt)) { in attributesPermitTailCall()
592 if (!CalleeAttrs.contains(Attribute::ZExt)) in attributesPermitTailCall()
596 CallerAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall()
597 CalleeAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall()
619 CalleeAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp153 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef() local
154 V = ZExt->getOperand(0); in handlePhiDef()
155 Operations.push_back(ZExt); in handlePhiDef()
185 case Instruction::ZExt: in handlePhiDef()
H A DNaryReassociate.cpp365 } else if (ZExtInst *ZExt = dyn_cast<ZExtInst>(IndexToSplit)) { in tryReassociateGEPAtIndex() local
367 if (isKnownNonNegative(ZExt->getOperand(0), *DL, 0, AC, GEP, DT)) in tryReassociateGEPAtIndex()
368 IndexToSplit = ZExt->getOperand(0); in tryReassociateGEPAtIndex()
H A DSpeculativeExecution.cpp227 case Instruction::ZExt: in ComputeSpeculationCost()
H A DCorrelatedValuePropagation.cpp1047 auto *ZExt = CastInst::CreateZExtOrBitCast(Base, SDI->getType(), "", SDI); in processSExt() local
1048 ZExt->takeName(SDI); in processSExt()
1049 ZExt->setDebugLoc(SDI->getDebugLoc()); in processSExt()
1050 SDI->replaceAllUsesWith(ZExt); in processSExt()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp1052 CI->addParamAttr(0, Attribute::ZExt); in addConditionalCallbacksIfEnabled()
1091 CB->addParamAttr(0, Attribute::ZExt); in addReachesFunctionCallbacksIfEnabled()
1326 AL = AL.addRetAttribute(C, Attribute::ZExt); in initializeRuntimeFunctions()
1335 AL = AL.addRetAttribute(C, Attribute::ZExt); in initializeRuntimeFunctions()
1345 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions()
1346 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initializeRuntimeFunctions()
1356 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions()
1357 AL = AL.addRetAttribute(M.getContext(), Attribute::ZExt); in initializeRuntimeFunctions()
1363 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions()
1364 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initializeRuntimeFunctions()
[all …]
H A DSanitizerCoverage.cpp421 SanCovTraceCmpZeroExtAL.addParamAttribute(*C, 0, Attribute::ZExt); in instrumentModule()
423 SanCovTraceCmpZeroExtAL.addParamAttribute(*C, 1, Attribute::ZExt); in instrumentModule()
470 AL = AL.addParamAttribute(*C, 0, Attribute::ZExt); in instrumentModule()
845 C = ConstantExpr::getCast(CastInst::ZExt, It.getCaseValue(), Int64Ty); in InjectTraceForSwitch()
/openbsd-src/gnu/llvm/llvm/include/llvm/Frontend/OpenMP/
H A DOMPKinds.def603 __OMP_ATTRS_SET(ZExt, AttributeSet(EnumAttr(ZExt)))
607 ? AttributeSet(EnumAttr(ZExt))
647 __OMP_RTL_ATTRS(__kmpc_get_hardware_thread_id_in_block, GetterAttrs, ZExt,
665 __OMP_RTL_ATTRS(__kmpc_get_hardware_num_blocks, GetterAttrs, ZExt, ParamAttrs())
666 __OMP_RTL_ATTRS(__kmpc_get_hardware_num_threads_in_block, GetterAttrs, ZExt, ParamAttrs())
667 __OMP_RTL_ATTRS(__kmpc_get_warp_size, GetterAttrs, ZExt, ParamAttrs())
720 ParamAttrs(ReadOnlyPtrAttrs, SExt, AttributeSet(), ZExt))
787 ParamAttrs(ReadOnlyPtrAttrs, SExt, SExt, ArgPtrAttrs, ZExt,
788 ZExt, SExt, SExt))
798 ParamAttrs(ReadOnlyPtrAttrs, SExt, SExt, ZExt, ZExt, SExt, SExt))
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonBitTracker.h62 enum { SExt, ZExt }; enumerator
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp206 case Instruction::ZExt: in getIntImmCostInst()
753 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost()
783 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt) && in getCastInstrCost()
793 if (Opcode == Instruction::ZExt) in getCastInstrCost()
820 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost()
823 if (Opcode == Instruction::ZExt) in getCastInstrCost()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp52 case Instruction::ZExt: in getRelevantOperands()
129 case Instruction::ZExt: in buildTruncExpressionGraph()
395 case Instruction::ZExt: in ReduceExpressionGraph()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp844 else if (Attrs.hasParamAttr(I, Attribute::ZExt)) in selectCall()
993 const auto *ZExt = cast<ZExtInst>(I); in selectZExt() local
995 const Value *Op = ZExt->getOperand(0); in selectZExt()
997 MVT::SimpleValueType To = getLegalType(getSimpleType(ZExt->getType())); in selectZExt()
1005 updateValueMap(ZExt, Reg); in selectZExt()
1374 else if (FuncInfo.Fn->getAttributes().hasRetAttr(Attribute::ZExt)) in selectRet()
1404 case Instruction::ZExt: in fastSelectInstruction()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DCallingConvLower.h36 ZExt, // The value is zero extended in the location. enumerator
134 return (HTP == AExt || HTP == SExt || HTP == ZExt); in isExtInLoc()
H A DFastISel.h115 RetZExt = Call.hasRetAttr(Attribute::ZExt); in setCallee()
139 RetZExt = Call.hasRetAttr(Attribute::ZExt);
H A DBasicTTIImpl.h1030 case Instruction::ZExt:
1044 ((Opcode == Instruction::ZExt) ? ISD::ZEXTLOAD : ISD::SEXTLOAD);
1082 if (Opcode == Instruction::ZExt)
1973 IID == Intrinsic::smul_fix ? Instruction::SExt : Instruction::ZExt; in getTypeBasedIntrinsicInstrCost()
2039 unsigned ExtOp = IsSigned ? Instruction::SExt : Instruction::ZExt; in getTypeBasedIntrinsicInstrCost()
2418 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getExtendedReductionCost()
2434 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getMulAccReductionCost()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp301 Builder.CreateCast(Instruction::ZExt, ShortQV, getSlowType()); in createFastBB()
303 Builder.CreateCast(Instruction::ZExt, ShortRV, getSlowType()); in createFastBB()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h431 return Signed ? Attribute::SExt : Attribute::ZExt;
461 return Signed ? Attribute::SExt : Attribute::ZExt; in getExtAttrForI32Return()
/openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp78 Attribute::ZExt}, in isValidForDXIL()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantFold.cpp314 case Instruction::ZExt: { in ExtractConstantBytes()
359 if (opc == Instruction::ZExt || opc == Instruction::SExt || in ConstantFoldCastInstruction()
480 case Instruction::ZExt: in ConstantFoldCastInstruction()
1042 if (CE1->getOpcode() == Instruction::ZExt) { in ConstantFoldBinaryInstruction()
1118 if (CE1->getOpcode() == Instruction::ZExt) // Top bits known zero. in ConstantFoldBinaryInstruction()
1520 case Instruction::ZExt: in evaluateICmpRelation()
1529 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation()
1891 (CE1->getOpcode() == Instruction::ZExt && in ConstantFoldCompareInstruction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp207 case Instruction::ZExt: in visitImpl()
249 case Instruction::ZExt: { in visitImpl()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64CallingConvention.cpp178 Info = UseHigh ? CCValAssign::AExtUpper : CCValAssign::ZExt; in CC_AArch64_Custom_Block()

123456