Goose  Artifact [182887e03a]

Artifact 182887e03ad792232ad2ca51835dd3a400285a99d86191cc7c9c4501cb062a5e:

  • File bs/llr/helpers.cpp — part of check-in [d2c4e27b15] at 2019-03-02 12:33:24 on branch trunk — llr: added predicates to quickly test if an llr element is suitable for compilation time execution, or for eager evaluation. (user: achavasse size: 222)

#include "llr/llr.h"

namespace empathy::llr
{
    bool IsValueConstantOrExecutable( const ir::Value& val )
    {
        if( val.isConstant() )
            return true;

        return val.llr()->canBeExecuted();
    }
}