Home
last modified time | relevance | path

Searched refs:TruncTy (Results 1 – 13 of 13) sorted by relevance

/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DCGStmt.cpp2753 llvm::Type *TruncTy = ResultTruncRegTypes[i]; in EmitAsmStmt() local
2771 if (TruncTy->isFloatingPointTy()) in EmitAsmStmt()
2772 Tmp = Builder.CreateFPTrunc(Tmp, TruncTy); in EmitAsmStmt()
2773 else if (TruncTy->isPointerTy() && Tmp->getType()->isIntegerTy()) { in EmitAsmStmt()
2774 uint64_t ResSize = CGM.getDataLayout().getTypeSizeInBits(TruncTy); in EmitAsmStmt()
2777 Tmp = Builder.CreateIntToPtr(Tmp, TruncTy); in EmitAsmStmt()
2778 } else if (Tmp->getType()->isPointerTy() && TruncTy->isIntegerTy()) { in EmitAsmStmt()
2782 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
2783 } else if (TruncTy->isIntegerTy()) { in EmitAsmStmt()
2784 Tmp = Builder.CreateZExtOrTrunc(Tmp, TruncTy); in EmitAsmStmt()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp740 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in narrowSDivOrSRem() local
741 auto *LHS = B.CreateTruncOrBitCast(Instr->getOperand(0), TruncTy, in narrowSDivOrSRem()
743 auto *RHS = B.CreateTruncOrBitCast(Instr->getOperand(1), TruncTy, in narrowSDivOrSRem()
851 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in narrowUDivOrURem() local
852 auto *LHS = B.CreateTruncOrBitCast(Instr->getOperand(0), TruncTy, in narrowUDivOrURem()
854 auto *RHS = B.CreateTruncOrBitCast(Instr->getOperand(1), TruncTy, in narrowUDivOrURem()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DScalarEvolutionExpander.cpp1200 Type *&TruncTy, in getAddRecExprPHILiterally() argument
1209 TruncTy = nullptr; in getAddRecExprPHILiterally()
1259 TruncTy = nullptr; in getAddRecExprPHILiterally()
1267 if ((!TruncTy || InvertStep) && in getAddRecExprPHILiterally()
1273 TruncTy = SE.getEffectiveSCEVType(Normalized->getType()); in getAddRecExprPHILiterally()
1435 Type *TruncTy = nullptr; in expandAddRecExprLiterally() local
1438 IntTy, TruncTy, InvertStep); in expandAddRecExprLiterally()
1493 if (TruncTy) { in expandAddRecExprLiterally()
1499 if (TruncTy != Result->getType()) in expandAddRecExprLiterally()
1500 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/
DTypePromotion.cpp520 auto InsertTrunc = [&](Value *V, Type *TruncTy) -> Instruction * { in TruncateSinks() argument
527 LLVM_DEBUG(dbgs() << "IR Promotion: Creating " << *TruncTy << " Trunc for " in TruncateSinks()
530 auto *Trunc = dyn_cast<Instruction>(Builder.CreateTrunc(V, TruncTy)); in TruncateSinks()
DCodeGenPrepare.cpp6665 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt() local
6666 EVT TruncVT = TLI->getValueType(*DL, TruncTy); in optimizeLoadExt()
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
DScalarEvolutionExpander.h497 Type *&TruncTy, bool &InvertStep);
/openbsd/src/gnu/llvm/llvm/lib/Target/Hexagon/
DHexagonISelLowering.cpp3457 EVT TruncTy = Op.getValueType(); in PerformDAGCombine() local
3460 if (Elem0.getValueType() == TruncTy) in PerformDAGCombine()
3463 if (Elem0.getValueType().bitsGT(TruncTy)) in PerformDAGCombine()
3464 return DCI.DAG.getNode(ISD::TRUNCATE, dl, TruncTy, Elem0); in PerformDAGCombine()
3498 MVT TruncTy = ty(Op); in PerformDAGCombine() local
3501 if (ty(Elem0) == TruncTy) in PerformDAGCombine()
3504 if (ty(Elem0).bitsGT(TruncTy)) in PerformDAGCombine()
3505 return DCI.DAG.getNode(ISD::TRUNCATE, dl, TruncTy, Elem0); in PerformDAGCombine()
DHexagonLoopIdiomRecognition.cpp1054 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo() local
1055 Value *Mask = ConstantInt::get(DestTy, (1u << TruncTy->getBitWidth()) - 1); in promoteTo()
DHexagonISelLoweringHVX.cpp3495 EVT TruncTy = Op.getValueType(); in combineTruncateBeforeLegal() local
3500 if (SrcTy.getVectorElementType() != TruncTy.getVectorElementType()) in combineTruncateBeforeLegal()
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DScalarEvolution.cpp3413 Type *TruncTy = in getURemExpr() local
3415 return getZeroExtendExpr(getTruncateExpr(LHS, TruncTy), FullTy); in getURemExpr()
5473 Type *TruncTy = nullptr; in createAddRecFromPHIWithCastsImpl() local
5476 if ((TruncTy = in createAddRecFromPHIWithCastsImpl()
5551 getAddRecExpr(getTruncateExpr(StartVal, TruncTy), in createAddRecFromPHIWithCastsImpl()
5552 getTruncateExpr(Accum, TruncTy), L, SCEV::FlagAnyWrap); in createAddRecFromPHIWithCastsImpl()
5580 const SCEV *TruncatedExpr = getTruncateExpr(Expr, TruncTy); in createAddRecFromPHIWithCastsImpl()
7908 Type *TruncTy = IntegerType::get(getContext(), BitWidth - AShrAmt); in createSCEV() local
7921 getTruncateExpr(ShlOp0SCEV, TruncTy), OuterTy); in createSCEV()
7934 getMulExpr(getTruncateExpr(ShlOp0SCEV, TruncTy), in createSCEV()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2194 Type *TruncTy = IntegerType::get(Cmp.getContext(), TypeBits - Amt); in foldICmpShlConstant() local
2196 TruncTy = VectorType::get(TruncTy, ShVTy->getElementCount()); in foldICmpShlConstant()
2198 ConstantInt::get(TruncTy, C.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()
2199 return new ICmpInst(Pred, Builder.CreateTrunc(X, TruncTy), NewC); in foldICmpShlConstant()
DInstCombineAndOrXor.cpp1038 Type *TruncTy = V->getType()->getWithNewBitWidth(P.NumBits); in extractIntPart() local
1039 if (TruncTy != V->getType()) in extractIntPart()
1040 V = Builder.CreateTrunc(V, TruncTy); in extractIntPart()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp2269 static LLT getMidVTForTruncRightShiftCombine(LLT ShiftTy, LLT TruncTy) { in getMidVTForTruncRightShiftCombine() argument
2271 const unsigned TruncSize = TruncTy.getScalarSizeInBits(); in getMidVTForTruncRightShiftCombine()