Home
last modified time | relevance | path

Searched refs:SExt (Results 1 – 25 of 91) sorted by relevance

1234

/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp128 bool shouldConsiderSExt(const Instruction *SExt) const;
216 AArch64AddressTypePromotion::shouldConsiderSExt(const Instruction *SExt) const { in shouldConsiderSExt()
217 if (SExt->getType() != ConsideredSExtType) in shouldConsiderSExt()
220 for (const User *U : SExt->users()) { in shouldConsiderSExt()
262 Instruction *SExt = SExtInsts.pop_back_val(); in propagateSignExtension() local
264 DEBUG(dbgs() << "Consider:\n" << *SExt << '\n'); in propagateSignExtension()
267 if (SExt->use_empty() && ToRemove.count(SExt)) { in propagateSignExtension()
273 while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) { in propagateSignExtension()
293 User->setOperand(U.getOperandNo(), SExt); in propagateSignExtension()
296 SExt->setOperand(0, Inst->getOperand(0)); in propagateSignExtension()
[all …]
DAArch64FastISel.cpp809 case Instruction::SExt: in computeAddress()
2932 case CCValAssign::SExt: { in processCallArgs()
4502 } else if (const auto *SExt = dyn_cast<SExtInst>(Src0)) { in selectMul() local
4503 if (!isIntExtFree(SExt)) { in selectMul()
4505 if (isValueAvailable(SExt) && isTypeSupported(SExt->getSrcTy(), VT)) { in selectMul()
4508 Src0 = SExt->getOperand(0); in selectMul()
4569 } else if (const auto *SExt = dyn_cast<SExtInst>(Op0)) { in selectShift() local
4570 if (!isIntExtFree(SExt)) { in selectShift()
4572 if (isValueAvailable(SExt) && isTypeSupported(SExt->getSrcTy(), TmpVT)) { in selectShift()
4575 Op0 = SExt->getOperand(0); in selectShift()
[all …]
/external/llvm/unittests/IR/
DAttributesTest.cpp26 AttributeSet::get(C, 2, Attribute::SExt) in TEST()
39 AttributeSet::get(C, 1, Attribute::SExt) in TEST()
/external/llvm/include/llvm/Target/
DTargetCallingConv.h31 static const uint64_t SExt = 1ULL<<1; ///< Sign extended member
67 bool isSExt() const { return Flags & SExt; } in isSExt()
/external/llvm/lib/Target/Hexagon/
DHexagonBitTracker.h51 enum { SExt, ZExt }; enumerator
DHexagonOptimizeSZextends.cpp77 if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) { in runOnFunction()
DHexagonBitTracker.cpp70 if (Attrs.hasAttribute(AttrIdx, Attribute::SExt)) in HexagonEvaluator()
71 VRX.insert(std::make_pair(InVirtReg, ExtType(ExtType::SExt, Width))); in HexagonEvaluator()
1119 if (F->second.Type == ExtType::SExt) in evaluateFormalCopy()
/external/llvm/lib/CodeGen/
DAnalysis.cpp560 } else if (CallerAttrs.contains(Attribute::SExt)) { in returnTypeIsEligibleForTailCall()
561 if (!CalleeAttrs.contains(Attribute::SExt)) in returnTypeIsEligibleForTailCall()
565 CallerAttrs.removeAttribute(Attribute::SExt); in returnTypeIsEligibleForTailCall()
566 CalleeAttrs.removeAttribute(Attribute::SExt); in returnTypeIsEligibleForTailCall()
DCodeGenPrepare.cpp1933 CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in dupRetToEnableTailCallOpts()
2901 llvm::Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndAnyExt() argument
2907 Instruction *SExtOpnd = cast<Instruction>(SExt->getOperand(0)); in promoteOperandForTruncAndAnyExt()
2908 Value *ExtVal = SExt; in promoteOperandForTruncAndAnyExt()
2915 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType()); in promoteOperandForTruncAndAnyExt()
2916 TPT.replaceAllUsesWith(SExt, ZExt); in promoteOperandForTruncAndAnyExt()
2917 TPT.eraseInstruction(SExt); in promoteOperandForTruncAndAnyExt()
2922 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndAnyExt()
3259 case Instruction::SExt: in matchOperationAddr()
4715 ExtType = Instruction::SExt; in optimizeSwitchInst()
/external/llvm/include/llvm/CodeGen/
DCallingConvLower.h36 SExt, // The value is sign extended in the location. enumerator
155 return (HTP == AExt || HTP == SExt || HTP == ZExt); in isExtInLoc()
DFastISel.h104 RetSExt = Call.paramHasAttr(0, Attribute::SExt); in setCallee()
128 RetSExt = Call.paramHasAttr(0, Attribute::SExt);
/external/llvm/lib/Transforms/Scalar/
DSpeculativeExecution.cpp186 case Instruction::SExt: in ComputeSpeculationCost()
DNaryReassociate.cpp369 if (SExtInst *SExt = dyn_cast<SExtInst>(IndexToSplit)) { in tryReassociateGEPAtIndex() local
370 IndexToSplit = SExt->getOperand(0); in tryReassociateGEPAtIndex()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp169 case Instruction::SExt: in getIntImmCost()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp192 case Instruction::SExt: in EvaluateInDifferentType()
202 Opc == Instruction::SExt); in EvaluateInDifferentType()
280 if (opc == Instruction::SExt && isa<CmpInst>(V) && Ty->isVectorTy()) in ShouldOptimizeCast()
406 case Instruction::SExt: in canEvaluateTruncated()
745 case Instruction::SExt: // zext(sext(x)) -> sext(x). in canEvaluateZExtd()
1079 case Instruction::SExt: // sext(sext(x)) -> sext(x) in canEvaluateSExtd()
DInstCombineVectorOps.cpp583 case Instruction::SExt: in CanEvaluateShuffled()
668 case Instruction::SExt: in buildNew()
746 case Instruction::SExt: in EvaluateInDifferentElementOrder()
/external/llvm/lib/IR/
DInstructions.cpp2258 case Instruction::SExt: in isIntegerCast()
2300 case Instruction::SExt: in isNoopCast()
2578 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
2600 case SExt: return new SExtInst (S, Ty, Name, InsertAtEnd); in Create()
2636 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
2644 return Create(Instruction::SExt, S, Ty, Name, InsertAtEnd); in CreateSExtOrBitCast()
2745 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
2759 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
2937 return SExt; // signed -> SEXT in getCastOpcode()
3039 case Instruction::SExt: in castIsValid()
[all …]
DAttributes.cpp255 if (hasAttribute(Attribute::SExt)) in getAsString()
410 case Attribute::SExt: return 1 << 1; in getAttrMask()
1415 Incompatible.addAttribute(Attribute::SExt) in typeIncompatible()
DConstantFold.cpp530 if (opc == Instruction::ZExt || opc == Instruction::SExt || in ConstantFoldCastInstruction()
692 case Instruction::SExt: in ConstantFoldCastInstruction()
1519 case Instruction::SExt: in evaluateICmpRelation()
1525 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation()
1954 if ((CE1->getOpcode() == Instruction::SExt && in ConstantFoldCompareInstruction()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp110 case Instruction::SExt: in createReplacementInstr()
/external/llvm/include/llvm/IR/
DAttributes.td130 def SExt : EnumAttr<"signext">;
DInstruction.def163 HANDLE_CAST_INST(38, SExt , SExtInst ) // Sign extend integers
/external/llvm/lib/Target/BPF/
DBPFISelLowering.cpp226 if (VA.getLocInfo() == CCValAssign::SExt) in LowerFormalArguments()
320 case CCValAssign::SExt: in LowerCall()
/external/llvm/lib/Analysis/
DDemandedBits.cpp231 case Instruction::SExt: in determineLiveOperandBits()
DCostModel.cpp440 case Instruction::SExt: in getInstructionCost()

1234