https://github.com/shader-slang/slang
Raw File
Tip revision: 5902acdabc4445a65741a7a6a3a95f223e301059 authored by Yong He on 23 January 2024, 07:19:40 UTC
[LSP] Fetch configs directly from didConfigurationChanged message. (#3478)
Tip revision: 5902acd
slang-ir-ssa-register-allocate.h
// slang-ir-ssa-register-allocate.h
#pragma once

#include "slang-ir.h"

namespace Slang
{
struct IRDominatorTree;

struct RegisterInfo : RefObject
{
    IRType* type;
    List<IRInst*> insts;
};

struct RegisterAllocationResult
{
    OrderedDictionary<IRType*, List<RefPtr<RegisterInfo>>> mapTypeToRegisterList;
    Dictionary<IRInst*, RefPtr<RegisterInfo>> mapInstToRegister;
};

RegisterAllocationResult allocateRegistersForFunc(IRGlobalValueWithCode* func, RefPtr<IRDominatorTree>& inOutDom, bool allocateForCompositeTypesOnly);

}
back to top