Lines Matching refs:SE

56       function_ref<void(Function &F, LoopInfo &LI, ScalarEvolution &SE)> Test) {  in runWithSE()
59 ScalarEvolution SE = buildSE(*F); in runWithSE() local
60 Test(*F, *LI, SE); in runWithSE()
119 ScalarEvolution SE = buildSE(*F); in TEST_F() local
120 auto *S = SE.getSCEV(CastB); in TEST_F()
187 ScalarEvolution SE = buildSE(*F); in TEST_F() local
189 SE.getAddRecExpr(SE.getUnknown(GepBase), SE.getConstant(T_int64, 1), in TEST_F()
192 SCEVExpander Exp(SE, NIM.getDataLayout(), "expander"); in TEST_F()
261 ScalarEvolution SE = buildSE(*F); in TEST_F() local
262 SCEVExpander Exp(SE, M.getDataLayout(), "expander"); in TEST_F()
263 const SCEV *S = SE.getSCEV(Phi); in TEST_F()
273 Exp.expandCodeFor(SE.getSCEV(Add), nullptr, Ret); in TEST_F()
321 ScalarEvolution SE = buildSE(*F); in TEST_F() local
322 const SCEV *S = SE.getSCEV(S1); in TEST_F()
324 SCEVExpander Exp(SE, M.getDataLayout(), "expander"); in TEST_F()
373 ScalarEvolution SE = buildSE(*F); in TEST_F() local
374 const SCEV *S = SE.getSCEV(S1); in TEST_F()
376 SCEVExpander Exp(SE, M.getDataLayout(), "expander"); in TEST_F()
418 ScalarEvolution SE = buildSE(*F); in TEST_F() local
420 const SCEV *SC2 = SE.getSCEV(S2); in TEST_F()
423 const SCEV *SC1 = SE.getSCEV(S1); in TEST_F()
427 SCEVExpander Exp(SE, M.getDataLayout(), "expander"); in TEST_F()
469 ScalarEvolution SE = buildSE(*F); in TEST_F() local
471 const SCEV *SC2 = SE.getSCEV(S2); in TEST_F()
474 const SCEV *SC1 = SE.getSCEV(S1); in TEST_F()
478 SCEVExpander Exp(SE, M.getDataLayout(), "expander"); in TEST_F()
490 [&](std::function<const SCEV *(ScalarEvolution & SE, Loop * L)> in TEST_F()
510 *M, "test", [&](Function &F, LoopInfo &LI, ScalarEvolution &SE) { in TEST_F() argument
515 auto *AR = GetAddRec(SE, Loop); in TEST_F()
517 SE.getTypeSizeInBits(AR->getType()); in TEST_F()
519 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()
534 ScalarEvolution & SE, Loop * L)> in TEST_F()
555 runWithSE(*M, "test", [&](Function &F, LoopInfo &LI, ScalarEvolution &SE) { in TEST_F() argument
563 auto *AR = GetAddRec(SE, Loop); in TEST_F()
565 unsigned ExpectedCanonicalIVWidth = SE.getTypeSizeInBits(AR->getType()); in TEST_F()
570 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()
611 [&](std::function<const SCEV *(ScalarEvolution & SE, Loop * L)> GetAddRec, in TEST_F()
638 *M, "test", [&](Function &F, LoopInfo &LI, ScalarEvolution &SE) { in TEST_F() argument
648 auto *AR = GetAddRec(SE, Loop); in TEST_F()
649 EXPECT_EQ(ARBitWidth, SE.getTypeSizeInBits(AR->getType())); in TEST_F()
652 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()
674 auto GetAR2 = [&](ScalarEvolution &SE, Loop *L) -> const SCEV * { in TEST_F() argument
675 return SE.getAddRecExpr(SE.getConstant(APInt(ARBitWidth, 5)), in TEST_F()
676 SE.getOne(ARType), L, SCEV::FlagAnyWrap); in TEST_F()
700 ScalarEvolution SE = buildSE(*F); in TEST_F() local
701 const SCEV *AndSCEV = SE.getSCEV(And); in TEST_F()
705 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()
734 [&](std::function<const SCEVAddRecExpr *(ScalarEvolution & SE, Loop * L)> in TEST_F()
754 [&](Function &F, LoopInfo &LI, ScalarEvolution &SE) { in TEST_F() argument
759 auto *AR = GetAddRec(SE, Loop); in TEST_F()
762 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()
765 auto *ExpandedAR = SE.getSCEV(V); in TEST_F()
774 ScalarEvolution & SE, Loop * L)> in TEST_F()
795 runWithSE(*M, "test", [&](Function &F, LoopInfo &LI, ScalarEvolution &SE) { in TEST_F() argument
803 auto *AR = GetAddRec(SE, Loop); in TEST_F()
806 unsigned ExpectedCanonicalIVWidth = SE.getTypeSizeInBits(AR->getType()); in TEST_F()
811 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()
814 auto *ExpandedAR = SE.getSCEV(V); in TEST_F()
823 [&](std::function<const SCEVAddRecExpr *(ScalarEvolution & SE, Loop * L)> in TEST_F()
851 *M, "test", [&](Function &F, LoopInfo &LI, ScalarEvolution &SE) { in TEST_F() argument
861 auto *AR = GetAddRec(SE, Loop); in TEST_F()
863 EXPECT_EQ(ARBitWidth, SE.getTypeSizeInBits(AR->getType())); in TEST_F()
866 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()
869 auto *ExpandedAR = SE.getSCEV(V); in TEST_F()
879 auto GetAR3 = [&](ScalarEvolution &SE, Loop *L) -> const SCEVAddRecExpr * { in TEST_F() argument
880 SmallVector<const SCEV *, 3> Ops = {SE.getConstant(APInt(ARBitWidth, 5)), in TEST_F()
881 SE.getOne(ARType), SE.getOne(ARType)}; in TEST_F()
882 return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, L, SCEV::FlagAnyWrap)); in TEST_F()
889 auto GetAR4 = [&](ScalarEvolution &SE, Loop *L) -> const SCEVAddRecExpr * { in TEST_F() argument
890 SmallVector<const SCEV *, 4> Ops = {SE.getConstant(APInt(ARBitWidth, 5)), in TEST_F()
891 SE.getOne(ARType), SE.getOne(ARType), in TEST_F()
892 SE.getOne(ARType)}; in TEST_F()
893 return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, L, SCEV::FlagAnyWrap)); in TEST_F()
900 auto GetAR5 = [&](ScalarEvolution &SE, Loop *L) -> const SCEVAddRecExpr * { in TEST_F() argument
901 SmallVector<const SCEV *, 5> Ops = {SE.getConstant(APInt(ARBitWidth, 5)), in TEST_F()
902 SE.getOne(ARType), SE.getOne(ARType), in TEST_F()
903 SE.getOne(ARType), SE.getOne(ARType)}; in TEST_F()
904 return cast<SCEVAddRecExpr>(SE.getAddRecExpr(Ops, L, SCEV::FlagAnyWrap)); in TEST_F()
929 runWithSE(*M, "test", [&](Function &F, LoopInfo &LI, ScalarEvolution &SE) { in TEST_F() argument
932 SE.getAddExpr(SE.getSCEV(&I), SE.getConstant(I.getType(), 1)); in TEST_F()
933 SCEVExpander Exp(SE, M->getDataLayout(), "expander"); in TEST_F()