Jlm
Functions | Variables
UnrollTests.cpp File Reference
#include <gtest/gtest.h>
#include <jlm/llvm/ir/RvsdgModule.hpp>
#include <jlm/llvm/opt/DeadNodeElimination.hpp>
#include <jlm/llvm/opt/unroll.hpp>
#include <jlm/rvsdg/bitstring/arithmetic.hpp>
#include <jlm/rvsdg/bitstring/comparison.hpp>
#include <jlm/rvsdg/bitstring/constant.hpp>
#include <jlm/rvsdg/gamma.hpp>
#include <jlm/rvsdg/TestOperations.hpp>
#include <jlm/rvsdg/theta.hpp>
#include <jlm/rvsdg/traverser.hpp>
#include <jlm/util/Statistics.hpp>
Include dependency graph for UnrollTests.cpp:

Go to the source code of this file.

Functions

static size_t nthetas (jlm::rvsdg::Region *region)
 
static jlm::rvsdg::ThetaNodecreate_theta (const jlm::rvsdg::BitCompareOperation &cop, const jlm::rvsdg::BitBinaryOperation &aop, jlm::rvsdg::Output *init, jlm::rvsdg::Output *step, jlm::rvsdg::Output *end)
 
 TEST (LoopUnrollingTests, test_unrollinfo)
 
 TEST (LoopUnrollingTests, test_known_boundaries)
 
 TEST (LoopUnrollingTests, test_unknown_boundaries)
 
static std::vector< jlm::rvsdg::ThetaNode * > find_thetas (jlm::rvsdg::Region *region)
 
 TEST (LoopUnrollingTests, test_nested_theta)
 

Variables

static jlm::util::StatisticsCollector statisticsCollector
 

Function Documentation

◆ create_theta()

static jlm::rvsdg::ThetaNode* create_theta ( const jlm::rvsdg::BitCompareOperation cop,
const jlm::rvsdg::BitBinaryOperation aop,
jlm::rvsdg::Output init,
jlm::rvsdg::Output step,
jlm::rvsdg::Output end 
)
static

Definition at line 36 of file UnrollTests.cpp.

◆ find_thetas()

static std::vector<jlm::rvsdg::ThetaNode *> find_thetas ( jlm::rvsdg::Region region)
static

Definition at line 265 of file UnrollTests.cpp.

◆ nthetas()

static size_t nthetas ( jlm::rvsdg::Region region)
static

Definition at line 23 of file UnrollTests.cpp.

◆ TEST() [1/4]

TEST ( LoopUnrollingTests  ,
test_known_boundaries   
)

Definition at line 137 of file UnrollTests.cpp.

◆ TEST() [2/4]

TEST ( LoopUnrollingTests  ,
test_nested_theta   
)

Definition at line 277 of file UnrollTests.cpp.

◆ TEST() [3/4]

TEST ( LoopUnrollingTests  ,
test_unknown_boundaries   
)

Definition at line 219 of file UnrollTests.cpp.

◆ TEST() [4/4]

TEST ( LoopUnrollingTests  ,
test_unrollinfo   
)

Definition at line 63 of file UnrollTests.cpp.

Variable Documentation

◆ statisticsCollector

jlm::util::StatisticsCollector statisticsCollector
static

Definition at line 20 of file UnrollTests.cpp.