Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp126 bool shouldConsiderSExt(const Instruction *SExt) const;
214 AArch64AddressTypePromotion::shouldConsiderSExt(const Instruction *SExt) const { in shouldConsiderSExt()
215 if (SExt->getType() != ConsideredSExtType) in shouldConsiderSExt()
218 for (const User *U : SExt->users()) { in shouldConsiderSExt()
260 Instruction *SExt = SExtInsts.pop_back_val(); in propagateSignExtension() local
262 DEBUG(dbgs() << "Consider:\n" << *SExt << '\n'); in propagateSignExtension()
265 if (SExt->use_empty() && ToRemove.count(SExt)) { in propagateSignExtension()
271 while (auto *Inst = dyn_cast<Instruction>(SExt->getOperand(0))) { in propagateSignExtension()
291 User->setOperand(U.getOperandNo(), SExt); in propagateSignExtension()
294 SExt->setOperand(0, Inst->getOperand(0)); in propagateSignExtension()
[all …]
DAArch64FastISel.cpp804 case Instruction::SExt: in computeAddress()
2956 case CCValAssign::SExt: { in processCallArgs()
4516 } else if (const auto *SExt = dyn_cast<SExtInst>(Src0)) { in selectMul() local
4517 if (!isIntExtFree(SExt)) { in selectMul()
4519 if (isValueAvailable(SExt) && isTypeSupported(SExt->getSrcTy(), VT)) { in selectMul()
4522 Src0 = SExt->getOperand(0); in selectMul()
4583 } else if (const auto *SExt = dyn_cast<SExtInst>(Op0)) { in selectShift() local
4584 if (!isIntExtFree(SExt)) { in selectShift()
4586 if (isValueAvailable(SExt) && isTypeSupported(SExt->getSrcTy(), TmpVT)) { in selectShift()
4589 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.h30 static const uint64_t SExt = 1ULL<<1; ///< Sign extended member
66 bool isSExt() const { return Flags & SExt; } in isSExt()
/external/llvm/lib/CodeGen/
DAnalysis.cpp556 } else if (CallerAttrs.contains(Attribute::SExt)) { in returnTypeIsEligibleForTailCall()
557 if (!CalleeAttrs.contains(Attribute::SExt)) in returnTypeIsEligibleForTailCall()
561 CallerAttrs.removeAttribute(Attribute::SExt); in returnTypeIsEligibleForTailCall()
562 CalleeAttrs.removeAttribute(Attribute::SExt); in returnTypeIsEligibleForTailCall()
DCodeGenPrepare.cpp1453 CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in DupRetToEnableTailCallOpts()
2423 llvm::Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndAnyExt() argument
2429 Instruction *SExtOpnd = cast<Instruction>(SExt->getOperand(0)); in promoteOperandForTruncAndAnyExt()
2430 Value *ExtVal = SExt; in promoteOperandForTruncAndAnyExt()
2437 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType()); in promoteOperandForTruncAndAnyExt()
2438 TPT.replaceAllUsesWith(SExt, ZExt); in promoteOperandForTruncAndAnyExt()
2439 TPT.eraseInstruction(SExt); in promoteOperandForTruncAndAnyExt()
2444 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndAnyExt()
2773 case Instruction::SExt: in MatchOperationAddr()
/external/llvm/lib/Target/Hexagon/
DHexagonRemoveSZExtArgs.cpp61 if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) { in runOnFunction()
/external/llvm/include/llvm/CodeGen/
DCallingConvLower.h35 SExt, // The value is sign extended in the location. enumerator
154 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/Target/SystemZ/
DSystemZTargetTransformInfo.cpp169 case Instruction::SExt: in getIntImmCost()
/external/llvm/lib/IR/
DInstructions.cpp1989 case Instruction::SExt: in isIntegerCast()
2031 case Instruction::SExt: in isNoopCast()
2304 case SExt: return new SExtInst (S, Ty, Name, InsertBefore); in Create()
2326 case SExt: return new SExtInst (S, Ty, Name, InsertAtEnd); in Create()
2362 return Create(Instruction::SExt, S, Ty, Name, InsertBefore); in CreateSExtOrBitCast()
2370 return Create(Instruction::SExt, S, Ty, Name, InsertAtEnd); in CreateSExtOrBitCast()
2471 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
2485 (isSigned ? Instruction::SExt : Instruction::ZExt))); in CreateIntegerCast()
2663 return SExt; // signed -> SEXT in getCastOpcode()
2765 case Instruction::SExt: in castIsValid()
[all …]
DAttributes.cpp245 if (hasAttribute(Attribute::SExt)) in getAsString()
398 case Attribute::SExt: return 1 << 1; in getAttrMask()
1295 Incompatible.addAttribute(Attribute::SExt) in typeIncompatible()
DConstantFold.cpp530 if (opc == Instruction::ZExt || opc == Instruction::SExt || in ConstantFoldCastInstruction()
692 case Instruction::SExt: in ConstantFoldCastInstruction()
1513 case Instruction::SExt: in evaluateICmpRelation()
1519 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation()
1947 if ((CE1->getOpcode() == Instruction::SExt && ICmpInst::isSigned(pred)) || in ConstantFoldCompareInstruction()
DInstruction.cpp226 case SExt: return "sext"; in getOpcodeName()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp193 case Instruction::SExt: in EvaluateInDifferentType()
203 Opc == Instruction::SExt); in EvaluateInDifferentType()
281 if (opc == Instruction::SExt && isa<CmpInst>(V) && Ty->isVectorTy()) in ShouldOptimizeCast()
407 case Instruction::SExt: in CanEvaluateTruncated()
670 case Instruction::SExt: // zext(sext(x)) -> sext(x). in CanEvaluateZExtd()
1006 case Instruction::SExt: // sext(sext(x)) -> sext(x) in CanEvaluateSExtd()
DInstCombineVectorOps.cpp632 case Instruction::SExt: in CanEvaluateShuffled()
717 case Instruction::SExt: in BuildNew()
795 case Instruction::SExt: in EvaluateInDifferentElementOrder()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp110 case Instruction::SExt: in createReplacementInstr()
/external/llvm/lib/Target/BPF/
DBPFISelLowering.cpp228 if (VA.getLocInfo() == CCValAssign::SExt) in LowerFormalArguments()
321 case CCValAssign::SExt: in LowerCall()
/external/llvm/lib/Transforms/Scalar/
DBDCE.cpp244 case Instruction::SExt: in determineLiveOperandBits()
DLoopRotation.cpp260 case Instruction::SExt: in shouldSpeculateInstrs()
/external/llvm/include/llvm/IR/
DInstruction.def147 HANDLE_CAST_INST(35, SExt , SExtInst ) // Sign extend integers
DAttributes.h102 SExt, ///< Sign extended before/after call enumerator
/external/llvm/lib/Analysis/
DCostModel.cpp445 case Instruction::SExt: in getInstructionCost()
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp1309 case CCValAssign::SExt: { in processCallArgs()
1601 VA.getLocInfo() == CCValAssign::SExt); in SelectRet()
1648 case CCValAssign::SExt: { in SelectRet()
1853 case Instruction::SExt: in fastSelectInstruction()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp497 HANDLE_ATTR(SExt); in printAttributes()
849 case Instruction::SExt: Out << "Instruction::SExt"; break; in printConstant()
1400 case Instruction::SExt: in printInstruction()
1415 case Instruction::SExt: Out << "SExtInst"; break; in printInstruction()

1234