1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef GOOSE_CIR_ALLOCVAR_H
#define GOOSE_CIR_ALLOCVAR_H
namespace goose::cir
{
class AllocVar : public BaseInstr< 0, false >
{
public:
template< typename T >
AllocVar( T&& type, uint32_t index, LocationId loc ) :
BaseInstr( loc ),
m_type( forward< T >( type ) ),
m_index( index )
{}
const auto& type() const { return m_type; }
const auto& index() const { return m_index; }
void setIndex( uint32_t index ) { m_index = index; }
|
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef GOOSE_CIR_ALLOCVAR_H
#define GOOSE_CIR_ALLOCVAR_H
namespace goose::cir
{
class AllocVar : public Operation< 0, false >
{
public:
template< typename T >
AllocVar( T&& type, uint32_t index, LocationId loc ) :
Operation( loc ),
m_type( forward< T >( type ) ),
m_index( index )
{}
const auto& type() const { return m_type; }
const auto& index() const { return m_index; }
void setIndex( uint32_t index ) { m_index = index; }
|