/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 128 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 …]
|
D | AArch64FastISel.cpp | 809 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/ |
D | AttributesTest.cpp | 26 AttributeSet::get(C, 2, Attribute::SExt) in TEST() 39 AttributeSet::get(C, 1, Attribute::SExt) in TEST()
|
/external/llvm/include/llvm/Target/ |
D | TargetCallingConv.h | 31 static const uint64_t SExt = 1ULL<<1; ///< Sign extended member 67 bool isSExt() const { return Flags & SExt; } in isSExt()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonBitTracker.h | 51 enum { SExt, ZExt }; enumerator
|
D | HexagonOptimizeSZextends.cpp | 77 if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) { in runOnFunction()
|
D | HexagonBitTracker.cpp | 70 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/ |
D | Analysis.cpp | 560 } 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()
|
D | CodeGenPrepare.cpp | 1933 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/ |
D | CallingConvLower.h | 36 SExt, // The value is sign extended in the location. enumerator 155 return (HTP == AExt || HTP == SExt || HTP == ZExt); in isExtInLoc()
|
D | FastISel.h | 104 RetSExt = Call.paramHasAttr(0, Attribute::SExt); in setCallee() 128 RetSExt = Call.paramHasAttr(0, Attribute::SExt);
|
/external/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 186 case Instruction::SExt: in ComputeSpeculationCost()
|
D | NaryReassociate.cpp | 369 if (SExtInst *SExt = dyn_cast<SExtInst>(IndexToSplit)) { in tryReassociateGEPAtIndex() local 370 IndexToSplit = SExt->getOperand(0); in tryReassociateGEPAtIndex()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 169 case Instruction::SExt: in getIntImmCost()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 192 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()
|
D | InstCombineVectorOps.cpp | 583 case Instruction::SExt: in CanEvaluateShuffled() 668 case Instruction::SExt: in buildNew() 746 case Instruction::SExt: in EvaluateInDifferentElementOrder()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 2258 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 …]
|
D | Attributes.cpp | 255 if (hasAttribute(Attribute::SExt)) in getAsString() 410 case Attribute::SExt: return 1 << 1; in getAttrMask() 1415 Incompatible.addAttribute(Attribute::SExt) in typeIncompatible()
|
D | ConstantFold.cpp | 530 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/ |
D | XCoreLowerThreadLocal.cpp | 110 case Instruction::SExt: in createReplacementInstr()
|
/external/llvm/include/llvm/IR/ |
D | Attributes.td | 130 def SExt : EnumAttr<"signext">;
|
D | Instruction.def | 163 HANDLE_CAST_INST(38, SExt , SExtInst ) // Sign extend integers
|
/external/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 231 case Instruction::SExt: in determineLiveOperandBits()
|
D | CostModel.cpp | 440 case Instruction::SExt: in getInstructionCost()
|
/external/llvm/lib/Target/BPF/ |
D | BPFISelLowering.cpp | 226 if (VA.getLocInfo() == CCValAssign::SExt) in LowerFormalArguments() 320 case CCValAssign::SExt: in LowerCall()
|