13
14
15
16
17
18
19
20
|
bool CanValueBeEagerlyEvaluated( const ir::Value& val )
{
if( val.isConstant() )
return true;
return val.llr()->canBeEagerlyEvaluated();
}
}
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
bool CanValueBeEagerlyEvaluated( const ir::Value& val )
{
if( val.isConstant() )
return true;
return val.llr()->canBeEagerlyEvaluated();
}
void BumpTemporariesIndices( uint32_t offset, const ptr< BasicBlock >& pBB )
{
for( auto&& instr : *pBB )
BumpTemporariesIndices( offset, instr );
}
void BumpTemporariesIndices( uint32_t offset, Instruction& instr )
{
visit( [&]( auto&& ins )
{
BumpTemporariesIndices( offset, ins );
}, instr.content() );
}
void BumpTemporariesIndices( uint32_t offset, CreateTemporary& ct )
{
ct.bumpTemporayIndices( offset );
}
void BumpTemporariesIndices( uint32_t offset, Phi& p )
{
p.bumpTemporayIndices( offset );
}
}
|