/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 126 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 …]
|
D | AArch64FastISel.cpp | 804 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/ |
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 | 30 static const uint64_t SExt = 1ULL<<1; ///< Sign extended member 66 bool isSExt() const { return Flags & SExt; } in isSExt()
|
/external/llvm/lib/CodeGen/ |
D | Analysis.cpp | 556 } 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()
|
D | CodeGenPrepare.cpp | 1453 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/ |
D | HexagonRemoveSZExtArgs.cpp | 61 if (F.getAttributes().hasAttribute(Idx, Attribute::SExt)) { in runOnFunction()
|
/external/llvm/include/llvm/CodeGen/ |
D | CallingConvLower.h | 35 SExt, // The value is sign extended in the location. enumerator 154 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/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 169 case Instruction::SExt: in getIntImmCost()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 1989 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 …]
|
D | Attributes.cpp | 245 if (hasAttribute(Attribute::SExt)) in getAsString() 398 case Attribute::SExt: return 1 << 1; in getAttrMask() 1295 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() 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()
|
D | Instruction.cpp | 226 case SExt: return "sext"; in getOpcodeName()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 193 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()
|
D | InstCombineVectorOps.cpp | 632 case Instruction::SExt: in CanEvaluateShuffled() 717 case Instruction::SExt: in BuildNew() 795 case Instruction::SExt: in EvaluateInDifferentElementOrder()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreLowerThreadLocal.cpp | 110 case Instruction::SExt: in createReplacementInstr()
|
/external/llvm/lib/Target/BPF/ |
D | BPFISelLowering.cpp | 228 if (VA.getLocInfo() == CCValAssign::SExt) in LowerFormalArguments() 321 case CCValAssign::SExt: in LowerCall()
|
/external/llvm/lib/Transforms/Scalar/ |
D | BDCE.cpp | 244 case Instruction::SExt: in determineLiveOperandBits()
|
D | LoopRotation.cpp | 260 case Instruction::SExt: in shouldSpeculateInstrs()
|
/external/llvm/include/llvm/IR/ |
D | Instruction.def | 147 HANDLE_CAST_INST(35, SExt , SExtInst ) // Sign extend integers
|
D | Attributes.h | 102 SExt, ///< Sign extended before/after call enumerator
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 445 case Instruction::SExt: in getInstructionCost()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCFastISel.cpp | 1309 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/ |
D | CPPBackend.cpp | 497 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()
|