Jlm
Functions
AggregationTests.cpp File Reference
#include <gtest/gtest.h>
#include <jlm/llvm/ir/aggregation.hpp>
#include <jlm/llvm/ir/ipgraph-module.hpp>
#include <jlm/llvm/ir/print.hpp>
Include dependency graph for AggregationTests.cpp:

Go to the source code of this file.

Functions

static bool is_entry (const jlm::llvm::AggregationNode *node)
 
static bool is_exit (const jlm::llvm::AggregationNode *node)
 
static bool is_block (const jlm::llvm::AggregationNode *node)
 
static bool is_linear (const jlm::llvm::AggregationNode *node, size_t nchildren)
 
static bool is_loop (const jlm::llvm::AggregationNode *node)
 
static bool is_branch (const jlm::llvm::AggregationNode *node, size_t nchildren)
 
 TEST (ViewTests, test_linear_reduction)
 
 TEST (ViewTests, test_loop_reduction)
 
 TEST (ViewTests, test_branch_reduction)
 
 TEST (ViewTests, test_branch_loop_reduction)
 
 TEST (ViewTests, test_loop_branch_reduction)
 
 TEST (ViewTests, test_ifthen_reduction)
 
 TEST (AggregationTests, test_branch_and_loop)
 

Function Documentation

◆ is_block()

static bool is_block ( const jlm::llvm::AggregationNode node)
static

Definition at line 25 of file AggregationTests.cpp.

◆ is_branch()

static bool is_branch ( const jlm::llvm::AggregationNode node,
size_t  nchildren 
)
static

Definition at line 56 of file AggregationTests.cpp.

◆ is_entry()

static bool is_entry ( const jlm::llvm::AggregationNode node)
static

Definition at line 13 of file AggregationTests.cpp.

◆ is_exit()

static bool is_exit ( const jlm::llvm::AggregationNode node)
static

Definition at line 19 of file AggregationTests.cpp.

◆ is_linear()

static bool is_linear ( const jlm::llvm::AggregationNode node,
size_t  nchildren 
)
static

Definition at line 31 of file AggregationTests.cpp.

◆ is_loop()

static bool is_loop ( const jlm::llvm::AggregationNode node)
static

Definition at line 49 of file AggregationTests.cpp.

◆ TEST() [1/7]

TEST ( AggregationTests  ,
test_branch_and_loop   
)

Definition at line 427 of file AggregationTests.cpp.

◆ TEST() [2/7]

TEST ( ViewTests  ,
test_branch_loop_reduction   
)

Definition at line 225 of file AggregationTests.cpp.

◆ TEST() [3/7]

TEST ( ViewTests  ,
test_branch_reduction   
)

Definition at line 158 of file AggregationTests.cpp.

◆ TEST() [4/7]

TEST ( ViewTests  ,
test_ifthen_reduction   
)

Definition at line 367 of file AggregationTests.cpp.

◆ TEST() [5/7]

TEST ( ViewTests  ,
test_linear_reduction   
)

Definition at line 73 of file AggregationTests.cpp.

◆ TEST() [6/7]

TEST ( ViewTests  ,
test_loop_branch_reduction   
)

Definition at line 301 of file AggregationTests.cpp.

◆ TEST() [7/7]

TEST ( ViewTests  ,
test_loop_reduction   
)

Definition at line 108 of file AggregationTests.cpp.