Jlm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
jlm::llvm::FreezeOperation Class Referencefinal

FreezeOperation class. More...

#include <operators.hpp>

Inheritance diagram for jlm::llvm::FreezeOperation:
Inheritance graph
[legend]
Collaboration diagram for jlm::llvm::FreezeOperation:
Collaboration graph
[legend]

Public Member Functions

 ~FreezeOperation () noexcept override
 
 FreezeOperation (std::shared_ptr< const jlm::rvsdg::Type > type)
 
bool operator== (const Operation &other) const noexcept override
 
std::string debug_string () const override
 
std::unique_ptr< Operation > copy () const override
 
const jlm::rvsdg::TypegetType () const noexcept
 
- Public Member Functions inherited from jlm::rvsdg::UnaryOperation
 ~UnaryOperation () noexcept override
 
 UnaryOperation (std::shared_ptr< const Type > operand, std::shared_ptr< const Type > result)
 
- Public Member Functions inherited from jlm::rvsdg::SimpleOperation
 ~SimpleOperation () noexcept override
 
 SimpleOperation (std::vector< std::shared_ptr< const jlm::rvsdg::Type > > operands, std::vector< std::shared_ptr< const jlm::rvsdg::Type > > results)
 
size_t narguments () const noexcept
 
const std::shared_ptr< const rvsdg::Type > & argument (size_t index) const noexcept
 
size_t nresults () const noexcept
 
const std::shared_ptr< const rvsdg::Type > & result (size_t index) const noexcept
 
- Public Member Functions inherited from jlm::rvsdg::Operation
virtual ~Operation () noexcept
 
virtual bool operator== (const Operation &other) const noexcept=0
 
bool operator!= (const Operation &other) const noexcept
 

Static Public Member Functions

static std::unique_ptr< llvm::ThreeAddressCodecreateTac (const Variable &operand)
 
static jlm::rvsdg::NodecreateNode (jlm::rvsdg::Output &operand)
 

Detailed Description

FreezeOperation class.

This operator is the Jlm equivalent of LLVM's freeze operation. It converts undef and poison values into arbitrary, but fixed, values. For all other inputs it is a no-op.

Definition at line 800 of file operators.hpp.

Constructor & Destructor Documentation

◆ ~FreezeOperation()

jlm::llvm::FreezeOperation::~FreezeOperation ( )
overridedefaultnoexcept

◆ FreezeOperation()

jlm::llvm::FreezeOperation::FreezeOperation ( std::shared_ptr< const jlm::rvsdg::Type type)
inlineexplicit

Definition at line 805 of file operators.hpp.

Member Function Documentation

◆ copy()

std::unique_ptr< rvsdg::Operation > jlm::llvm::FreezeOperation::copy ( ) const
overridevirtual

Implements jlm::rvsdg::Operation.

Definition at line 490 of file operators.cpp.

◆ createNode()

static jlm::rvsdg::Node & jlm::llvm::FreezeOperation::createNode ( jlm::rvsdg::Output operand)
inlinestatic

Definition at line 835 of file operators.hpp.

◆ createTac()

static std::unique_ptr< llvm::ThreeAddressCode > jlm::llvm::FreezeOperation::createTac ( const Variable operand)
inlinestatic

Definition at line 828 of file operators.hpp.

◆ debug_string()

std::string jlm::llvm::FreezeOperation::debug_string ( ) const
overridevirtual

Implements jlm::rvsdg::Operation.

Definition at line 484 of file operators.cpp.

◆ getType()

const jlm::rvsdg::Type & jlm::llvm::FreezeOperation::getType ( ) const
inlinenoexcept

Definition at line 822 of file operators.hpp.

◆ operator==()

bool jlm::llvm::FreezeOperation::operator== ( const Operation &  other) const
overridenoexcept

Definition at line 477 of file operators.cpp.


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