Jlm
Functions
DomTreeTests.cpp File Reference
#include <gtest/gtest.h>
#include <jlm/llvm/ir/cfg.hpp>
#include <jlm/llvm/ir/domtree.hpp>
#include <jlm/llvm/ir/ipgraph-module.hpp>
#include <unordered_set>
Include dependency graph for DomTreeTests.cpp:

Go to the source code of this file.

Functions

template<size_t N>
static void check (const jlm::llvm::DominatorTreeNode *dnode, const jlm::llvm::ControlFlowGraphNode *node, const std::unordered_set< const jlm::llvm::ControlFlowGraphNode * > &children)
 
static const jlm::llvm::DominatorTreeNodeget_child (const jlm::llvm::DominatorTreeNode *root, const jlm::llvm::ControlFlowGraphNode *node)
 
 TEST (DominatorTreeTests, test)
 

Function Documentation

◆ check()

template<size_t N>
static void check ( const jlm::llvm::DominatorTreeNode dnode,
const jlm::llvm::ControlFlowGraphNode node,
const std::unordered_set< const jlm::llvm::ControlFlowGraphNode * > &  children 
)
static

Definition at line 16 of file DomTreeTests.cpp.

◆ get_child()

static const jlm::llvm::DominatorTreeNode* get_child ( const jlm::llvm::DominatorTreeNode root,
const jlm::llvm::ControlFlowGraphNode node 
)
static

Definition at line 28 of file DomTreeTests.cpp.

◆ TEST()

TEST ( DominatorTreeTests  ,
test   
)

Definition at line 39 of file DomTreeTests.cpp.