| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVCodeGenPrepare.cpp | 63 Value *Src = ZExt->getOperand(0); in optimizeZExt() 75 auto *SExt = new SExtInst(Src, ZExt->getType(), "", ZExt); in optimizeZExt() 76 SExt->takeName(ZExt); in optimizeZExt() 77 SExt->setDebugLoc(ZExt->getDebugLoc()); in optimizeZExt() 79 ZExt->replaceAllUsesWith(SExt); in optimizeZExt() 80 ZExt->eraseFromParent(); in optimizeZExt() 89 auto *SExt = new SExtInst(Src, ZExt->getType(), "", ZExt); in optimizeZExt() 90 SExt->takeName(ZExt); in optimizeZExt() 93 ZExt->replaceAllUsesWith(SExt); in optimizeZExt() 94 ZExt->eraseFromParent(); in optimizeZExt() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86FixupSetCC.cpp | 81 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 D | X86PartialReduction.cpp | 85 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()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | TypePromotion.cpp | 254 if (auto *ZExt = dyn_cast<ZExtInst>(V)) in isSink() local 255 return GreaterThanTypeSize(ZExt); in isSink() 435 Value *ZExt = Builder.CreateZExt(V, ExtTy); in ExtendSources() local 444 ReplaceAllUsersOfWith(V, ZExt); in ExtendSources() 554 if (auto ZExt = dyn_cast<ZExtInst>(I)) in TruncateSinks() local 577 auto ZExt = cast<ZExtInst>(V); in Cleanup() local 578 if (ZExt->getDestTy() != ExtTy) in Cleanup() 581 Value *Src = ZExt->getOperand(0); in Cleanup() 582 if (ZExt->getSrcTy() == ZExt->getDestTy()) { in Cleanup() 585 ReplaceAllUsersOfWith(ZExt, Src); in Cleanup() [all …]
|
| H A D | Analysis.cpp | 590 if (CallerAttrs.contains(Attribute::ZExt)) { in attributesPermitTailCall() 591 if (!CalleeAttrs.contains(Attribute::ZExt)) in attributesPermitTailCall() 595 CallerAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall() 596 CalleeAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall() 618 CalleeAttrs.removeAttribute(Attribute::ZExt); in attributesPermitTailCall()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | AttributesTest.cpp | 28 AttributeList ASs[] = {AttributeList::get(C, 1, Attribute::ZExt), in TEST() 49 EXPECT_FALSE(ByVal < Attribute::get(C, Attribute::ZExt)); in TEST() 53 AttributeList ASs[] = {AttributeList::get(C, 2, Attribute::ZExt), in TEST() 214 AttributeList AL1 = AttributeList::get(C1, 1, Attribute::ZExt); in TEST() 215 AttributeList AL2 = AttributeList::get(C2, 1, Attribute::ZExt); in TEST() 250 AL.addParamAttribute(C, 5, Attribute::ZExt).print(OS); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | ThreadSanitizer.cpp | 269 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initialize() 277 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initialize() 278 AL = AL.addParamAttribute(M.getContext(), 2, Attribute::ZExt); in initialize() 306 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initialize() 307 AL = AL.addParamAttribute(M.getContext(), 2, Attribute::ZExt); in initialize() 317 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initialize() 318 AL = AL.addParamAttribute(M.getContext(), 2, Attribute::ZExt); in initialize() 319 AL = AL.addParamAttribute(M.getContext(), 3, Attribute::ZExt); in initialize() 320 AL = AL.addParamAttribute(M.getContext(), 4, Attribute::ZExt); in initialize() 332 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initialize() [all …]
|
| H A D | DataFlowSanitizer.cpp | 1197 AL = AL.addRetAttribute(M.getContext(), Attribute::ZExt); in initializeRuntimeFunctions() 1205 AL = AL.addRetAttribute(M.getContext(), Attribute::ZExt); in initializeRuntimeFunctions() 1215 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions() 1216 AL = AL.addParamAttribute(M.getContext(), 1, Attribute::ZExt); in initializeRuntimeFunctions() 1226 AL = AL.addParamAttribute(M.getContext(), 0, Attribute::ZExt); in initializeRuntimeFunctions() 1227 AL = AL.addRetAttribute(M.getContext(), Attribute::ZExt); in initializeRuntimeFunctions() 1235 AL = AL.addRetAttribute(M.getContext(), Attribute::ZExt); in initializeRuntimeFunctions() 2086 Call->addRetAttr(Attribute::ZExt); in loadShadowOriginSansLoadTracking() 2133 FallbackCall->addRetAttr(Attribute::ZExt); in loadShadowOriginSansLoadTracking() 2957 CustomCI->addParamAttr(ArgNo, Attribute::ZExt); in visitWrappedCallBase() [all …]
|
| H A D | SanitizerCoverage.cpp | 403 SanCovTraceCmpZeroExtAL.addParamAttribute(*C, 0, Attribute::ZExt); in instrumentModule() 405 SanCovTraceCmpZeroExtAL.addParamAttribute(*C, 1, Attribute::ZExt); in instrumentModule() 452 AL = AL.addParamAttribute(*C, 0, Attribute::ZExt); in instrumentModule() 816 C = ConstantExpr::getCast(CastInst::ZExt, It.getCaseValue(), Int64Ty); in InjectTraceForSwitch()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 140 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef() local 141 V = ZExt->getOperand(0); in handlePhiDef() 142 Operations.push_back(ZExt); in handlePhiDef() 172 case Instruction::ZExt: in handlePhiDef()
|
| H A D | SCCP.cpp | 179 auto *ZExt = new ZExtInst(ExtOp, Inst.getType(), "", &Inst); in simplifyInstsInBlock() local 180 ZExt->takeName(&Inst); in simplifyInstsInBlock() 181 InsertedValues.insert(ZExt); in simplifyInstsInBlock() 182 Inst.replaceAllUsesWith(ZExt); in simplifyInstsInBlock()
|
| H A D | NaryReassociate.cpp | 365 } 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 D | CorrelatedValuePropagation.cpp | 983 auto *ZExt = CastInst::CreateZExtOrBitCast(Base, SDI->getType(), "", SDI); in processSExt() local 984 ZExt->takeName(SDI); in processSExt() 985 ZExt->setDebugLoc(SDI->getDebugLoc()); in processSExt() 986 SDI->replaceAllUsesWith(ZExt); in processSExt()
|
| H A D | SpeculativeExecution.cpp | 227 case Instruction::ZExt: in ComputeSpeculationCost()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/GlobalISel/ |
| H A D | postlegalizer-combiner-anyext-to-zext.mir | 13 ; Scalars have 0 or 1, so we want a ZExt. 68 ; Scalars have 0 or 1, so we want a ZExt.
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonBitTracker.h | 62 enum { SExt, ZExt }; enumerator
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 206 case Instruction::ZExt: in getIntImmCostInst() 752 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost() 782 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt) && in getCastInstrCost() 792 if (Opcode == Instruction::ZExt) in getCastInstrCost() 819 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost() 822 if (Opcode == Instruction::ZExt) in getCastInstrCost()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | TruncInstCombine.cpp | 52 case Instruction::ZExt: in getRelevantOperands() 129 case Instruction::ZExt: in buildTruncExpressionGraph() 395 case Instruction::ZExt: in ReduceExpressionGraph()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFastISel.cpp | 844 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()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetLibraryInfo.h | 389 return Signed ? Attribute::SExt : Attribute::ZExt; 400 return Signed ? Attribute::SExt : Attribute::ZExt;
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | FastISel.h | 114 RetZExt = Call.hasRetAttr(Attribute::ZExt); in setCallee() 138 RetZExt = Call.hasRetAttr(Attribute::ZExt);
|
| H A D | CallingConvLower.h | 36 ZExt, // The value is zero extended in the location. enumerator 155 return (HTP == AExt || HTP == SExt || HTP == ZExt); in isExtInLoc()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | BypassSlowDivision.cpp | 303 Builder.CreateCast(Instruction::ZExt, ShortQV, getSlowType()); in createFastBB() 305 Builder.CreateCast(Instruction::ZExt, ShortRV, getSlowType()); in createFastBB()
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 78 Attribute::ZExt}, in isValidForDXIL()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 314 case Instruction::ZExt: { in ExtractConstantBytes() 359 if (opc == Instruction::ZExt || opc == Instruction::SExt || in ConstantFoldCastInstruction() 480 case Instruction::ZExt: in ConstantFoldCastInstruction() 1041 if (CE1->getOpcode() == Instruction::ZExt) { in ConstantFoldBinaryInstruction() 1117 if (CE1->getOpcode() == Instruction::ZExt) // Top bits known zero. in ConstantFoldBinaryInstruction() 1519 case Instruction::ZExt: in evaluateICmpRelation() 1528 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation() 1888 (CE1->getOpcode() == Instruction::ZExt && in ConstantFoldCompareInstruction()
|