Jlm
Loading...
Searching...
No Matches
Public Attributes | Private Member Functions | List of all members
jlm::mlir::WideMemoryNodesTest Class Referencefinal

WideMemoryNodesTest class. More...

#include <TestRvsdgs.hpp>

Inheritance diagram for jlm::mlir::WideMemoryNodesTest:
Inheritance graph
[legend]
Collaboration diagram for jlm::mlir::WideMemoryNodesTest:
Collaboration graph
[legend]

Public Attributes

jlm::rvsdg::LambdaNode * lambda
 
jlm::rvsdg::SimpleNode * malloc
 
jlm::rvsdg::SimpleNode * alloca
 

Private Member Functions

std::unique_ptr< jlm::llvm::LlvmRvsdgModule > SetupRvsdg () override
 Create RVSDG for this test.
 

Additional Inherited Members

- Public Member Functions inherited from jlm::llvm::RvsdgTest
virtual ~RvsdgTest ()=default
 
jlm::llvm::LlvmRvsdgModule & module ()
 
const rvsdg::Graph & graph ()
 
void InitializeTest ()
 

Detailed Description

WideMemoryNodesTest class.

This class sets up an RVSDG representing the following function:

void * f(int64_t s)
{
uint64_t v;
return malloc(s), &v;
}
jlm::rvsdg::SimpleNode * malloc

Both allocations carry wider types than the ones the memory graphs in jlm::llvm::RvsdgTest use: the malloc size is a 64-bit integer where they use a 32-bit one, and the alloca allocates a 64-bit value rather than a pointer or a 32-bit value. Both widths live in the operations, so this is what puts a 64-bit size and a 64-bit allocated type under the comparison.

Definition at line 377 of file TestRvsdgs.hpp.

Member Function Documentation

◆ SetupRvsdg()

std::unique_ptr< jlm::llvm::LlvmRvsdgModule > jlm::mlir::WideMemoryNodesTest::SetupRvsdg ( )
overrideprivatevirtual

Create RVSDG for this test.

Implements jlm::llvm::RvsdgTest.

Definition at line 522 of file TestRvsdgs.cpp.

Member Data Documentation

◆ alloca

jlm::rvsdg::SimpleNode* jlm::mlir::WideMemoryNodesTest::alloca

Definition at line 388 of file TestRvsdgs.hpp.

◆ lambda

jlm::rvsdg::LambdaNode* jlm::mlir::WideMemoryNodesTest::lambda

Definition at line 384 of file TestRvsdgs.hpp.

◆ malloc

jlm::rvsdg::SimpleNode* jlm::mlir::WideMemoryNodesTest::malloc

Definition at line 386 of file TestRvsdgs.hpp.


The documentation for this class was generated from the following files: