Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp125 bool shouldConsiderSExt(const Instruction *SExt) const;
213 AArch64AddressTypePromotion::shouldConsiderSExt(const Instruction *SExt) const { in shouldConsiderSExt()
214 if (SExt->getType() != ConsideredSExtType) in shouldConsiderSExt()
217 for (const User *U : SExt->users()) { in shouldConsiderSExt()
259 Instruction *SExt = SExtInsts.pop_back_val(); in propagateSignExtension() local
261 DEBUG(dbgs() << "Consider:\n" << *SExt << '\n'); in propagateSignExtension()
264 if (SExt->use_empty() && ToRemove.count(SExt)) { in propagateSignExtension()
270 while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) { in propagateSignExtension()
290 User->setOperand(U.getOperandNo(), SExt); in propagateSignExtension()
293 SExt->setOperand(0, Inst->getOperand(0)); in propagateSignExtension()
[all …]
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp947 CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in DupRetToEnableTailCallOpts()
1689 static Value *promoteOperandForTruncAndSExt(Instruction *SExt,
1701 static Value *promoteOperandForOther(Instruction *SExt,
1708 typedef Value *(*Action)(Instruction *SExt, TypePromotionTransaction &TPT,
1720 static Action getAction(Instruction *SExt, const SetOfInstrs &InsertedTruncs,
1779 Instruction *SExt, const SetOfInstrs &InsertedTruncs, in getAction() argument
1781 Instruction *SExtOpnd = dyn_cast<Instruction>(SExt->getOperand(0)); in getAction()
1782 Type *SExtTy = SExt->getType(); in getAction()
1809 llvm::Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndSExt() argument
1813 Instruction *SExtOpnd = cast<Instruction>(SExt->getOperand(0)); in promoteOperandForTruncAndSExt()
[all …]
DAnalysis.cpp547 } else if (CallerAttrs.contains(Attribute::SExt)) { in returnTypeIsEligibleForTailCall()
548 if (!CalleeAttrs.contains(Attribute::SExt)) in returnTypeIsEligibleForTailCall()
552 CallerAttrs.removeAttribute(Attribute::SExt); in returnTypeIsEligibleForTailCall()
553 CalleeAttrs.removeAttribute(Attribute::SExt); in returnTypeIsEligibleForTailCall()
/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.h30 static const uint64_t SExt = 1ULL<<1; ///< Sign extended member
66 bool isSExt() const { return Flags & SExt; } in isSExt()
/external/llvm/lib/Target/Hexagon/
DHexagonRemoveSZExtArgs.cpp60 if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) { in runOnFunction()
DHexagonISelLowering.cpp124 LocInfo = CCValAssign::SExt; in CC_Hexagon_VarArg()
162 LocInfo = CCValAssign::SExt; in CC_Hexagon()
237 LocInfo = CCValAssign::SExt; in RetCC_Hexagon()
484 case CCValAssign::SExt: in LowerCall()
/external/llvm/include/llvm/CodeGen/
DCallingConvLower.h35 SExt, // The value is sign extended in the location. enumerator
146 return (HTP == AExt || HTP == SExt || HTP == ZExt); in isExtInLoc()
/external/llvm/lib/IR/
DInstructions.cpp2061 case Instruction::SExt: in isIntegerCast()
2103 case Instruction::SExt: in isNoopCast()
2382 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
2404 case SExt: return new SExtInst (S, Ty, Name, InsertAtEnd); in Create()
2440 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
2448 return Create(Instruction::SExt, S, Ty, Name, InsertAtEnd); in CreateSExtOrBitCast()
2520 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
2534 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
2706 return SExt; // signed -> SEXT in getCastOpcode()
2812 case Instruction::SExt: in castIsValid()
[all …]
DAttributes.cpp218 if (hasAttribute(Attribute::SExt)) in getAsString()
362 case Attribute::SExt: return 1 << 1; in getAttrMask()
1177 Incompatible.addAttribute(Attribute::SExt) in typeIncompatible()
DConstantFold.cpp516 if (opc == Instruction::ZExt || opc == Instruction::SExt || in ConstantFoldCastInstruction()
669 case Instruction::SExt: in ConstantFoldCastInstruction()
1459 case Instruction::SExt: in evaluateICmpRelation()
1465 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation()
1883 if ((CE1->getOpcode() == Instruction::SExt && ICmpInst::isSigned(pred)) || in ConstantFoldCompareInstruction()
DInstruction.cpp232 case SExt: return "sext"; in getOpcodeName()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCUtil.cpp223 case Instruction::SExt: case Instruction::ZExt: case Instruction::Trunc: in GetInstructionClass()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp196 case Instruction::SExt: in EvaluateInDifferentType()
206 Opc == Instruction::SExt); in EvaluateInDifferentType()
286 if (opc == Instruction::SExt && isa<CmpInst>(V) && Ty->isVectorTy()) in ShouldOptimizeCast()
412 case Instruction::SExt: in CanEvaluateTruncated()
674 case Instruction::SExt: // zext(sext(x)) -> sext(x). in CanEvaluateZExtd()
1003 case Instruction::SExt: // sext(sext(x)) -> sext(x) in CanEvaluateSExtd()
DInstCombineVectorOps.cpp631 case Instruction::SExt: in CanEvaluateShuffled()
716 case Instruction::SExt: in BuildNew()
793 case Instruction::SExt: in EvaluateInDifferentElementOrder()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp109 case Instruction::SExt: in createReplacementInstr()
/external/llvm/include/llvm/IR/
DAttributes.h100 SExt, ///< Sign extended before/after call enumerator
DInstruction.def147 HANDLE_CAST_INST(35, SExt , SExtInst ) // Sign extend integers
/external/llvm/lib/Analysis/
DCostModel.cpp444 case Instruction::SExt: in getInstructionCost()
/external/llvm/lib/Transforms/Scalar/
DLoopRotation.cpp224 case Instruction::SExt: in shouldSpeculateInstrs()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp994 if (SExtInst *SExt = dyn_cast<SExtInst>(SI->getOperand(0))) in ConvertDebugDeclareToDebugValue() local
995 ExtendedArg = dyn_cast<Argument>(SExt->getOperand(0)); in ConvertDebugDeclareToDebugValue()
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp1260 case CCValAssign::SExt: { in processCallArgs()
1450 if (CS.paramHasAttr(AttrIdx, Attribute::SExt)) in SelectCall()
1593 case CCValAssign::SExt: { in SelectRet()
1800 case Instruction::SExt: in TargetSelectInstruction()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp494 HANDLE_ATTR(SExt); in printAttributes()
846 case Instruction::SExt: Out << "Instruction::SExt"; break; in printConstant()
1397 case Instruction::SExt: in printInstruction()
1412 case Instruction::SExt: Out << "SExtInst"; break; in printInstruction()
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.cpp311 LocInfo = CCValAssign::SExt; in AnalyzeArguments()
472 if (VA.getLocInfo() == CCValAssign::SExt) in LowerCCCArguments()
611 case CCValAssign::SExt: in LowerCCCCallTo()
/external/llvm/test/Instrumentation/MemorySanitizer/
Dmsan_basic.ll182 ; SExt
183 define void @SExt(i32* nocapture %a, i16* nocapture %b) nounwind uwtable sanitize_memory {
191 ; CHECK: @SExt

1234