Home
last modified time | relevance | path

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

/external/llvm-project/llvm/unittests/IR/
DVectorTypesTest.cpp98 auto *TruncTy = dyn_cast<FixedVectorType>( in TEST() local
100 EXPECT_VTY_EQ(TruncTy, V8Int16Ty); in TEST()
101 EXPECT_EQ(TruncTy->getNumElements(), 8U); in TEST()
102 EXPECT_EQ(TruncTy->getElementType()->getScalarSizeInBits(), 16U); in TEST()
193 auto *TruncTy = dyn_cast<ScalableVectorType>( in TEST() local
195 EXPECT_VTY_EQ(TruncTy, ScV8Int16Ty); in TEST()
196 EXPECT_EQ(TruncTy->getMinNumElements(), 8U); in TEST()
197 EXPECT_EQ(TruncTy->getElementType()->getScalarSizeInBits(), 16U); in TEST()
/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-project/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp656 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in narrowSDivOrSRem() local
657 auto *LHS = B.CreateTruncOrBitCast(Instr->getOperand(0), TruncTy, in narrowSDivOrSRem()
659 auto *RHS = B.CreateTruncOrBitCast(Instr->getOperand(1), TruncTy, in narrowSDivOrSRem()
700 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in processUDivOrURem() local
701 auto *LHS = B.CreateTruncOrBitCast(Instr->getOperand(0), TruncTy, in processUDivOrURem()
703 auto *RHS = B.CreateTruncOrBitCast(Instr->getOperand(1), TruncTy, in processUDivOrURem()
/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/llvm-project/clang/lib/CodeGen/
DCGStmt.cpp2547 llvm::Type *TruncTy = ResultTruncRegTypes[i]; in EmitAsmStmt() local
2551 if (TruncTy->isFloatingPointTy()) in EmitAsmStmt()
2552 Tmp = Builder.CreateFPTrunc(Tmp, TruncTy); in EmitAsmStmt()
2553 else if (TruncTy->isPointerTy() && Tmp->getType()->isIntegerTy()) { in EmitAsmStmt()
2554 uint64_t ResSize = CGM.getDataLayout().getTypeSizeInBits(TruncTy); in EmitAsmStmt()
2557 Tmp = Builder.CreateIntToPtr(Tmp, TruncTy); in EmitAsmStmt()
2558 } else if (Tmp->getType()->isPointerTy() && TruncTy->isIntegerTy()) { in EmitAsmStmt()
2562 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
2563 } else if (TruncTy->isIntegerTy()) { in EmitAsmStmt()
2564 Tmp = Builder.CreateZExtOrTrunc(Tmp, TruncTy); in EmitAsmStmt()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp1163 Type *&TruncTy, in getAddRecExprPHILiterally() argument
1172 TruncTy = nullptr; in getAddRecExprPHILiterally()
1216 TruncTy = nullptr; in getAddRecExprPHILiterally()
1224 if ((!TruncTy || InvertStep) && in getAddRecExprPHILiterally()
1230 TruncTy = SE.getEffectiveSCEVType(Normalized->getType()); in getAddRecExprPHILiterally()
1392 Type *TruncTy = nullptr; in expandAddRecExprLiterally() local
1395 IntTy, TruncTy, InvertStep); in expandAddRecExprLiterally()
1438 if (TruncTy) { in expandAddRecExprLiterally()
1444 if (TruncTy != Result->getType()) { in expandAddRecExprLiterally()
1445 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally()
[all …]
DScalarEvolution.cpp3180 Type *TruncTy = in getURemExpr() local
3182 return getZeroExtendExpr(getTruncateExpr(LHS, TruncTy), FullTy); in getURemExpr()
4742 Type *TruncTy = nullptr; in createAddRecFromPHIWithCastsImpl() local
4745 if ((TruncTy = in createAddRecFromPHIWithCastsImpl()
4820 getAddRecExpr(getTruncateExpr(StartVal, TruncTy), in createAddRecFromPHIWithCastsImpl()
4821 getTruncateExpr(Accum, TruncTy), L, SCEV::FlagAnyWrap); in createAddRecFromPHIWithCastsImpl()
4849 const SCEV *TruncatedExpr = getTruncateExpr(Expr, TruncTy); in createAddRecFromPHIWithCastsImpl()
6451 Type *TruncTy = IntegerType::get(getContext(), BitWidth - AShrAmt); in createSCEV() local
6464 getTruncateExpr(ShlOp0SCEV, TruncTy), OuterTy); in createSCEV()
6477 getMulExpr(getTruncateExpr(ShlOp0SCEV, TruncTy), in createSCEV()
/external/llvm-project/llvm/lib/Transforms/Utils/
DScalarEvolutionExpander.cpp1187 Type *&TruncTy, in getAddRecExprPHILiterally() argument
1196 TruncTy = nullptr; in getAddRecExprPHILiterally()
1248 TruncTy = nullptr; in getAddRecExprPHILiterally()
1256 if ((!TruncTy || InvertStep) && in getAddRecExprPHILiterally()
1262 TruncTy = SE.getEffectiveSCEVType(Normalized->getType()); in getAddRecExprPHILiterally()
1428 Type *TruncTy = nullptr; in expandAddRecExprLiterally() local
1431 IntTy, TruncTy, InvertStep); in expandAddRecExprLiterally()
1475 if (TruncTy) { in expandAddRecExprLiterally()
1481 if (TruncTy != Result->getType()) in expandAddRecExprLiterally()
1482 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DTypePromotion.cpp558 auto InsertTrunc = [&](Value *V, Type *TruncTy) -> Instruction* { in TruncateSinks() argument
565 LLVM_DEBUG(dbgs() << "IR Promotion: Creating " << *TruncTy << " Trunc for " in TruncateSinks()
568 auto *Trunc = dyn_cast<Instruction>(Builder.CreateTrunc(V, TruncTy)); in TruncateSinks()
DCodeGenPrepare.cpp6347 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt() local
6348 EVT TruncVT = TLI->getValueType(*DL, TruncTy); in optimizeLoadExt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTypePromotion.cpp556 auto InsertTrunc = [&](Value *V, Type *TruncTy) -> Instruction* { in TruncateSinks() argument
563 LLVM_DEBUG(dbgs() << "IR Promotion: Creating " << *TruncTy << " Trunc for " in TruncateSinks()
566 auto *Trunc = dyn_cast<Instruction>(Builder.CreateTrunc(V, TruncTy)); in TruncateSinks()
DCodeGenPrepare.cpp5907 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt() local
5908 EVT TruncVT = TLI->getValueType(*DL, TruncTy); in optimizeLoadExt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp644 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in processUDivOrURem() local
645 auto *LHS = B.CreateTruncOrBitCast(Instr->getOperand(0), TruncTy, in processUDivOrURem()
647 auto *RHS = B.CreateTruncOrBitCast(Instr->getOperand(1), TruncTy, in processUDivOrURem()
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpander.h362 Type *&TruncTy,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DScalarEvolutionExpander.h403 Type *&TruncTy,
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DScalarEvolutionExpander.h484 Type *&TruncTy, bool &InvertStep);
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1057 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo() local
1058 Value *Mask = ConstantInt::get(DestTy, (1u << TruncTy->getBitWidth()) - 1); in promoteTo()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1038 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo() local
1039 Value *Mask = ConstantInt::get(DestTy, (1u << TruncTy->getBitWidth()) - 1); in promoteTo()
/external/llvm-project/llvm/lib/Analysis/
DScalarEvolution.cpp3074 Type *TruncTy = in getURemExpr() local
3076 return getZeroExtendExpr(getTruncateExpr(LHS, TruncTy), FullTy); in getURemExpr()
4807 Type *TruncTy = nullptr; in createAddRecFromPHIWithCastsImpl() local
4810 if ((TruncTy = in createAddRecFromPHIWithCastsImpl()
4885 getAddRecExpr(getTruncateExpr(StartVal, TruncTy), in createAddRecFromPHIWithCastsImpl()
4886 getTruncateExpr(Accum, TruncTy), L, SCEV::FlagAnyWrap); in createAddRecFromPHIWithCastsImpl()
4914 const SCEV *TruncatedExpr = getTruncateExpr(Expr, TruncTy); in createAddRecFromPHIWithCastsImpl()
6615 Type *TruncTy = IntegerType::get(getContext(), BitWidth - AShrAmt); in createSCEV() local
6628 getTruncateExpr(ShlOp0SCEV, TruncTy), OuterTy); in createSCEV()
6641 getMulExpr(getTruncateExpr(ShlOp0SCEV, TruncTy), in createSCEV()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2193 Type *TruncTy = IntegerType::get(Cmp.getContext(), TypeBits - Amt); in foldICmpShlConstant() local
2195 TruncTy = FixedVectorType::get( in foldICmpShlConstant()
2196 TruncTy, cast<FixedVectorType>(ShVTy)->getNumElements()); 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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2151 Type *TruncTy = IntegerType::get(Cmp.getContext(), TypeBits - Amt); in foldICmpShlConstant() local
2153 TruncTy = VectorType::get(TruncTy, ShType->getVectorNumElements()); in foldICmpShlConstant()
2155 ConstantInt::get(TruncTy, C.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()
2156 return new ICmpInst(Pred, Builder.CreateTrunc(X, TruncTy), NewC); in foldICmpShlConstant()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4502 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt() local
4503 EVT TruncVT = TLI->getValueType(*DL, TruncTy); in optimizeLoadExt()