|
Jlm
|
#include <Load.hpp>


Public Member Functions | |
| ~LoadNonVolatileOperation () noexcept override | |
| LoadNonVolatileOperation (std::shared_ptr< const rvsdg::Type > loadedType, size_t numMemoryStates, size_t alignment) | |
| bool | operator== (const Operation &other) const noexcept override |
| std::string | debug_string () const override |
| std::unique_ptr< Operation > | copy () const override |
Public Member Functions inherited from jlm::llvm::LoadOperation | |
| size_t | GetAlignment () const noexcept |
| std::shared_ptr< const rvsdg::Type > | GetLoadedType () const noexcept |
| size_t | NumMemoryStates () const noexcept |
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::optional< std::vector< rvsdg::Output * > > | NormalizeLoadAlloca (const LoadNonVolatileOperation &operation, const std::vector< rvsdg::Output * > &operands) |
| If the producer of a load's address is an alloca operation, then we can remove all state edges originating from other alloca operations. More... | |
| static std::optional< std::vector< rvsdg::Output * > > | NormalizeLoadStore (const LoadNonVolatileOperation &operation, const std::vector< rvsdg::Output * > &operands) |
| Forwards the value from a store operation. More... | |
| static std::optional< std::vector< rvsdg::Output * > > | NormalizeLoadStoreState (const LoadNonVolatileOperation &operation, const std::vector< rvsdg::Output * > &operands) |
| If the producer of a load's address is an alloca operation, then we can remove all state edges originating from other alloca operations coming through store operations. More... | |
| static std::optional< std::vector< rvsdg::Output * > > | NormalizeDuplicateStates (const LoadNonVolatileOperation &operation, const std::vector< rvsdg::Output * > &operands) |
| Remove duplicated state operands. More... | |
| static std::optional< std::vector< rvsdg::Output * > > | NormalizeIOBarrierAllocaAddress (const LoadNonVolatileOperation &operation, const std::vector< rvsdg::Output * > &operands) |
| Redirect the address operand of the LoadNonVolatileOperation from an IOBarrierOperation when it can be determined that it originates from an AllocaOperation. More... | |
| static std::unique_ptr< llvm::ThreeAddressCode > | Create (const Variable *address, const Variable *state, std::shared_ptr< const rvsdg::Type > loadedType, size_t alignment) |
| static std::vector< rvsdg::Output * > | Create (rvsdg::Output *address, const std::vector< rvsdg::Output * > &memoryStates, std::shared_ptr< const rvsdg::Type > loadedType, const size_t alignment) |
| static rvsdg::SimpleNode & | CreateNode (rvsdg::Region ®ion, std::unique_ptr< LoadNonVolatileOperation > loadOperation, const std::vector< rvsdg::Output * > &operands) |
| static std::vector< rvsdg::Output * > | Create (rvsdg::Region ®ion, std::unique_ptr< LoadNonVolatileOperation > loadOperation, const std::vector< rvsdg::Output * > &operands) |
| static rvsdg::SimpleNode & | CreateNode (rvsdg::Output &address, const std::vector< rvsdg::Output * > &memoryStates, std::shared_ptr< const rvsdg::Type > loadedType, size_t alignment) |
Static Public Member Functions inherited from jlm::llvm::LoadOperation | |
| static rvsdg::Input & | AddressInput (const rvsdg::Node &node) noexcept |
| static rvsdg::Output & | LoadedValueOutput (const rvsdg::Node &node) |
| static rvsdg::Node::OutputIteratorRange | MemoryStateOutputs (const rvsdg::Node &node) noexcept |
| static rvsdg::Node::InputIteratorRange | MemoryStateInputs (const rvsdg::Node &node) noexcept |
| static rvsdg::Input & | MapMemoryStateOutputToInput (const rvsdg::Output &output) |
| static rvsdg::Output & | mapMemoryStateInputToOutput (const rvsdg::Input &input) |
Static Private Member Functions | |
| static std::vector< std::shared_ptr< const rvsdg::Type > > | CreateOperandTypes (size_t numMemoryStates) |
| static std::vector< std::shared_ptr< const rvsdg::Type > > | CreateResultTypes (std::shared_ptr< const rvsdg::Type > loadedType, size_t numMemoryStates) |
Additional Inherited Members | |
Protected Member Functions inherited from jlm::llvm::LoadOperation | |
| LoadOperation (const std::vector< std::shared_ptr< const rvsdg::Type >> &operandTypes, const std::vector< std::shared_ptr< const rvsdg::Type >> &resultTypes, const size_t numMemoryStates, const size_t alignment) | |
Represents an LLVM load instruction.
|
overridedefaultnoexcept |
|
inline |
|
overridevirtual |
Implements jlm::rvsdg::Operation.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
overridevirtual |
Implements jlm::rvsdg::Operation.
|
static |
Remove duplicated state operands.
v so1 so2 so3 = LoadNonVolatileOperation a si1 si1 si1 => v so1 = LoadNonVolatileOperation a si1
| operation | The load operation on which the transformation is performed. |
| operands | The operands of the load node. |
|
static |
Redirect the address operand of the LoadNonVolatileOperation from an IOBarrierOperation when it can be determined that it originates from an AllocaOperation.
a1 memState = AllocaOperation ... a2 = IOBarrierOperation a1 ioState ... = LoadNonVolatileOperation a2 ... => a1 memState = AllocaOperation ... a2 = IOBarrierOperation a1 ioState ... = LoadNonVolatileOperation a1 ...
| operation | The LoadNonVolatileOperation on which the transformation is performed. |
| operands | The operands of the LoadNonVolatileOperation node. |
|
static |
If the producer of a load's address is an alloca operation, then we can remove all state edges originating from other alloca operations.
a1 s1 = AllocaOperation ... a2 s2 = AllocaOperation ... s3 = MuxOperation s1 v sl1 sl2 sl3 = LoadNonVolatileOperation a1 s1 s2 s3 => ... v sl1 sl3 = LoadNonVolatileOperation a1 s1 s3
| operation | The load operation on which the transformation is performed. |
| operands | The operands of the load node. |
|
static |
Forwards the value from a store operation.
s2 = StoreNonVolatileOperation a v1 s1 v2 s3 = LoadNonVolatileOperation a s2 ... = AnyOperation v2 => s2 = StoreNonVolatileOperation a v1 s1 ... = AnyOperation v1
| operation | The load operation on which the transformation is performed. |
| operands | The operands of the load node. |
|
static |
If the producer of a load's address is an alloca operation, then we can remove all state edges originating from other alloca operations coming through store operations.
a1 sa1 = AllocaOperation ... a2 sa2 = AllocaOperation ... ss1 = StoreNonVolatileOperation a1 ... sa1 ss2 = StoreNonVolatileOperation a2 ... sa2 ... = LoadNonVolatileOperation a1 ss1 ss2 => ... ... = LoadNonVolatileOperation a1 ss1
| operation | The load operation on which the transformation is performed. |
| operands | The operands of the load node. |
|
overridenoexcept |