Artifact 6ee990039803b92da4edf6d97b41b7c76ede0ea20d514128ac78852741e77126:
- File bs/llr/gettemporary.h — part of check-in [238df77134] at 2019-11-19 00:04:49 on branch trunk — cfg: now that we got rid of this crazy system where CFGs could "call" other CFGs that weren't really functions, removed that clumsy cfg index that was needed to identify temporaries everywhere. (user: achavasse size: 737)
#ifndef GOOSE_LLR_GETTEMPORARY_H #define GOOSE_LLR_GETTEMPORARY_H namespace goose::llr { class GetTemporary { public: template< typename T > GetTemporary( T&& type, uint32_t index ) : m_type( forward< T >( type ) ), m_index( index ) {} const auto& type() const { return m_type; } const auto& index() const { return m_index; } bool canBeExecuted() const { return true; } bool canBeEagerlyEvaluated() const { return false; } private: ir::Term m_type; uint32_t m_index = 0; }; } #endif