Home
last modified time | relevance | path

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

12345

/netbsd-src/external/apache2/llvm/dist/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.cpp106 Cast->getOpcode() == Instruction::ZExt) && in tryMAddReplacement()
197 if (auto *ZExt = dyn_cast<ZExtInst>(Op)) in trySADReplacement() local
198 if (cast<VectorType>(ZExt->getOperand(0)->getType()) in trySADReplacement()
201 return ZExt->getOperand(0); in trySADReplacement()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTypePromotion.cpp242 return Call->hasRetAttr(Attribute::AttrKind::ZExt); in isSource()
266 if (auto *ZExt = dyn_cast<ZExtInst>(V)) in isSink() local
267 return GreaterThanTypeSize(ZExt); in isSink()
490 Value *ZExt = Builder.CreateZExt(V, ExtTy); in ExtendSources() local
491 if (auto *I = dyn_cast<Instruction>(ZExt)) { in ExtendSources()
499 ReplaceAllUsersOfWith(V, ZExt); in ExtendSources()
621 auto ZExt = cast<ZExtInst>(V); in Cleanup() local
622 if (ZExt->getDestTy() != ExtTy) in Cleanup()
625 Value *Src = ZExt->getOperand(0); in Cleanup()
626 if (ZExt->getSrcTy() == ZExt->getDestTy()) { in Cleanup()
[all …]
H A DAnalysis.cpp571 if (CallerAttrs.contains(Attribute::ZExt)) { in attributesPermitTailCall()
572 if (!CalleeAttrs.contains(Attribute::ZExt)) in attributesPermitTailCall()
576 CallerAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall()
577 CalleeAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall()
599 CalleeAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp139 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef() local
140 V = ZExt->getOperand(0); in handlePhiDef()
141 Operations.push_back(ZExt); in handlePhiDef()
171 case Instruction::ZExt: in handlePhiDef()
H A DSCCP.cpp176 auto *ZExt = new ZExtInst(ExtOp, Inst.getType(), "", &Inst); in simplifyInstsInBlock() local
177 InsertedValues.insert(ZExt); in simplifyInstsInBlock()
178 Inst.replaceAllUsesWith(ZExt); in simplifyInstsInBlock()
H A DNaryReassociate.cpp361 } else if (ZExtInst *ZExt = dyn_cast<ZExtInst>(IndexToSplit)) { in tryReassociateGEPAtIndex() local
363 if (isKnownNonNegative(ZExt->getOperand(0), *DL, 0, AC, GEP, DT)) in tryReassociateGEPAtIndex()
364 IndexToSplit = ZExt->getOperand(0); in tryReassociateGEPAtIndex()
H A DSpeculativeExecution.cpp227 case Instruction::ZExt: in ComputeSpeculationCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp1307 Attribute::ZExt); in initializeRuntimeFunctions()
1308 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions()
1309 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initializeRuntimeFunctions()
1320 Attribute::ZExt); in initializeRuntimeFunctions()
1321 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions()
1322 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initializeRuntimeFunctions()
1333 Attribute::ZExt); in initializeRuntimeFunctions()
1344 Attribute::ZExt); in initializeRuntimeFunctions()
1355 Attribute::ZExt); in initializeRuntimeFunctions()
1363 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions()
[all …]
H A DSanitizerCoverage.cpp429 SanCovTraceCmpZeroExtAL.addParamAttribute(*C, 0, Attribute::ZExt); in instrumentModule()
431 SanCovTraceCmpZeroExtAL.addParamAttribute(*C, 1, Attribute::ZExt); in instrumentModule()
456 AL = AL.addParamAttribute(*C, 0, Attribute::ZExt); in instrumentModule()
809 C = ConstantExpr::getCast(CastInst::ZExt, It.getCaseValue(), Int64Ty); in InjectTraceForSwitch()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp53 case Instruction::ZExt: in getRelevantOperands()
117 case Instruction::ZExt: in buildTruncExpressionDag()
323 case Instruction::ZExt: in ReduceExpressionDag()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp843 else if (Attrs.hasParamAttribute(I, Attribute::ZExt)) in selectCall()
991 const auto *ZExt = cast<ZExtInst>(I); in selectZExt() local
993 const Value *Op = ZExt->getOperand(0); in selectZExt()
995 MVT::SimpleValueType To = getLegalType(getSimpleType(ZExt->getType())); in selectZExt()
1003 updateValueMap(ZExt, Reg); in selectZExt()
1372 else if (FuncInfo.Fn->getAttributes().hasAttribute(0, Attribute::ZExt)) in selectRet()
1402 case Instruction::ZExt: in fastSelectInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DReplaceConstant.cpp52 case Instruction::ZExt: in createReplacementInstr()
H A DConstantFold.cpp315 case Instruction::ZExt: { in ExtractConstantBytes()
554 if (opc == Instruction::ZExt || opc == Instruction::SExt || in ConstantFoldCastInstruction()
728 case Instruction::ZExt: in ConstantFoldCastInstruction()
1288 if (CE1->getOpcode() == Instruction::ZExt) { in ConstantFoldBinaryInstruction()
1364 if (CE1->getOpcode() == Instruction::ZExt) // Top bits known zero. in ConstantFoldBinaryInstruction()
1814 case Instruction::ZExt: in evaluateICmpRelation()
1823 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation()
2287 (CE1->getOpcode() == Instruction::ZExt && in ConstantFoldCompareInstruction()
H A DInstructions.cpp2652 case Instruction::ZExt: in isIntegerCast()
2695 case Instruction::ZExt: in isNoopCast()
2872 return Instruction::ZExt; in isEliminableCastPair()
2952 case ZExt: return new ZExtInst (S, Ty, Name, InsertBefore); in Create()
2974 case ZExt: return new ZExtInst (S, Ty, Name, InsertAtEnd); in Create()
2995 return Create(Instruction::ZExt, S, Ty, Name, InsertBefore); in CreateZExtOrBitCast()
3003 return Create(Instruction::ZExt, S, Ty, Name, InsertAtEnd); in CreateZExtOrBitCast()
3122 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
3136 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
3261 return ZExt; // unsigned -> ZEXT in getCastOpcode()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonBitTracker.h62 enum { SExt, ZExt }; enumerator
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp170 case Instruction::ZExt: in getIntImmCostInst()
714 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost()
744 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt) && in getCastInstrCost()
754 if (Opcode == Instruction::ZExt) in getCastInstrCost()
781 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h373 return Signed ? Attribute::SExt : Attribute::ZExt;
384 return Signed ? Attribute::SExt : Attribute::ZExt;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsCallLowering.cpp157 case CCValAssign::LocInfo::ZExt: in assignValueToReg()
194 VA.getLocInfo() == CCValAssign::ZExt || in assignValueToAddress()
298 case CCValAssign::ZExt: { in extendRegister()
356 return CCValAssign::LocInfo::ZExt; in determineLocInfo()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DCallingConvLower.h38 ZExt, // The value is zero extended in the location. enumerator
157 return (HTP == AExt || HTP == SExt || HTP == ZExt); in isExtInLoc()
H A DFastISel.h114 RetZExt = Call.hasRetAttr(Attribute::ZExt); in setCallee()
138 RetZExt = Call.hasRetAttr(Attribute::ZExt);
H A DBasicTTIImpl.h891 case Instruction::ZExt:
905 ((Opcode == Instruction::ZExt) ? ISD::ZEXTLOAD : ISD::SEXTLOAD);
943 if (Opcode == Instruction::ZExt)
1734 IID == Intrinsic::smul_fix ? Instruction::SExt : Instruction::ZExt; in getTypeBasedIntrinsicInstrCost()
1803 IID == Intrinsic::smul_fix ? Instruction::SExt : Instruction::ZExt; in getTypeBasedIntrinsicInstrCost()
2142 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getExtendedAddReductionCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp303 Builder.CreateCast(Instruction::ZExt, ShortQV, getSlowType()); in createFastBB()
305 Builder.CreateCast(Instruction::ZExt, ShortRV, getSlowType()); in createFastBB()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp285 if (Inst->getOpcode() == Instruction::ZExt || in avoidSpeculation()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64CallingConvention.cpp178 Info = UseHigh ? CCValAssign::AExtUpper : CCValAssign::ZExt; in CC_AArch64_Custom_Block()

12345