Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMCodeGenPrepare.cpp428 Type *TruncTy = OrigTy; in Mutate() local
431 TruncTy = PtrTy->getElementType(); in Mutate()
434 TruncTy = F->getFunctionType()->getReturnType(); in Mutate()
443 TruncTy = Call->getFunctionType()->getParamType(i); in Mutate()
445 if (TruncTy == ExtTy) in Mutate()
448 LLVM_DEBUG(dbgs() << "ARM CGP: Creating " << *TruncTy in Mutate()
451 auto *Trunc = cast<Instruction>(Builder.CreateTrunc(Op, TruncTy)); in Mutate()
/external/clang/lib/CodeGen/
DCGStmt.cpp2123 llvm::Type *TruncTy = ResultTruncRegTypes[i]; in EmitAsmStmt() local
2127 if (TruncTy->isFloatingPointTy()) in EmitAsmStmt()
2128 Tmp = Builder.CreateFPTrunc(Tmp, TruncTy); in EmitAsmStmt()
2129 else if (TruncTy->isPointerTy() && Tmp->getType()->isIntegerTy()) { in EmitAsmStmt()
2130 uint64_t ResSize = CGM.getDataLayout().getTypeSizeInBits(TruncTy); in EmitAsmStmt()
2133 Tmp = Builder.CreateIntToPtr(Tmp, TruncTy); in EmitAsmStmt()
2134 } else if (Tmp->getType()->isPointerTy() && TruncTy->isIntegerTy()) { in EmitAsmStmt()
2138 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
2139 } else if (TruncTy->isIntegerTy()) { in EmitAsmStmt()
2140 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp1089 Type *&TruncTy, in getAddRecExprPHILiterally() argument
1098 TruncTy = nullptr; in getAddRecExprPHILiterally()
1140 TruncTy = nullptr; in getAddRecExprPHILiterally()
1148 if ((!TruncTy || InvertStep) && in getAddRecExprPHILiterally()
1154 TruncTy = SE.getEffectiveSCEVType(Normalized->getType()); in getAddRecExprPHILiterally()
1309 Type *TruncTy = nullptr; in expandAddRecExprLiterally() local
1312 TruncTy, InvertStep); in expandAddRecExprLiterally()
1355 if (TruncTy) { in expandAddRecExprLiterally()
1361 if (TruncTy != Result->getType()) { in expandAddRecExprLiterally()
1362 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp1144 Type *&TruncTy, in getAddRecExprPHILiterally() argument
1153 TruncTy = nullptr; in getAddRecExprPHILiterally()
1197 TruncTy = nullptr; in getAddRecExprPHILiterally()
1205 if ((!TruncTy || InvertStep) && in getAddRecExprPHILiterally()
1211 TruncTy = SE.getEffectiveSCEVType(Normalized->getType()); in getAddRecExprPHILiterally()
1373 Type *TruncTy = nullptr; in expandAddRecExprLiterally() local
1376 IntTy, TruncTy, InvertStep); in expandAddRecExprLiterally()
1419 if (TruncTy) { in expandAddRecExprLiterally()
1425 if (TruncTy != Result->getType()) { in expandAddRecExprLiterally()
1426 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally()
[all …]
DScalarEvolution.cpp3110 Type *TruncTy = in getURemExpr() local
3112 return getZeroExtendExpr(getTruncateExpr(LHS, TruncTy), FullTy); in getURemExpr()
4738 Type *TruncTy = nullptr; in createAddRecFromPHIWithCastsImpl() local
4741 if ((TruncTy = in createAddRecFromPHIWithCastsImpl()
4816 getAddRecExpr(getTruncateExpr(StartVal, TruncTy), in createAddRecFromPHIWithCastsImpl()
4817 getTruncateExpr(Accum, TruncTy), L, SCEV::FlagAnyWrap); in createAddRecFromPHIWithCastsImpl()
4845 const SCEV *TruncatedExpr = getTruncateExpr(Expr, TruncTy); in createAddRecFromPHIWithCastsImpl()
6392 Type *TruncTy = IntegerType::get(getContext(), BitWidth - AShrAmt); in createSCEV() local
6405 getTruncateExpr(ShlOp0SCEV, TruncTy), OuterTy); in createSCEV()
6418 getMulExpr(getTruncateExpr(ShlOp0SCEV, TruncTy), in createSCEV()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp533 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in processUDivOrURem() local
534 auto *LHS = CastInst::Create(Instruction::Trunc, Instr->getOperand(0), TruncTy, in processUDivOrURem()
536 auto *RHS = CastInst::Create(Instruction::Trunc, Instr->getOperand(1), TruncTy, in processUDivOrURem()
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpander.h362 Type *&TruncTy,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DScalarEvolutionExpander.h386 Type *&TruncTy,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1973 Type *TruncTy = IntegerType::get(Cmp.getContext(), TypeBits - Amt); in foldICmpShlConstant() local
1975 TruncTy = VectorType::get(TruncTy, ShType->getVectorNumElements()); in foldICmpShlConstant()
1977 ConstantInt::get(TruncTy, C.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()
1978 return new ICmpInst(Pred, Builder.CreateTrunc(X, TruncTy), NewC); in foldICmpShlConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1036 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo() local
1037 Value *Mask = ConstantInt::get(DestTy, (1u << TruncTy->getBitWidth()) - 1); in promoteTo()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4502 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt() local
4503 EVT TruncVT = TLI->getValueType(*DL, TruncTy); in optimizeLoadExt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5482 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt() local
5483 EVT TruncVT = TLI->getValueType(*DL, TruncTy); in optimizeLoadExt()