shader_ir: Add local memory getters

This commit is contained in:
ReinUsesLisp
2018-12-20 22:51:38 -03:00
parent 2f87fd060d
commit 12a95ff453
2 changed files with 7 additions and 0 deletions

View File

@ -117,6 +117,10 @@ Node ShaderIR::GetInternalFlag(InternalFlag flag, bool negated) {
return node;
}
Node ShaderIR::GetLocalMemory(Node address) {
return StoreNode(LmemNode(address));
}
/*static*/ OperationCode ShaderIR::SignedToUnsignedCode(OperationCode operation_code,
bool is_signed) {
if (is_signed) {