summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-insert-debug-value-store.h
blob: 0dc289b2e1631ec670e178e806b8dfd52a071629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef SLANG_IR_INSERT_DEBUG_VALUE_STORE_H
#define SLANG_IR_INSERT_DEBUG_VALUE_STORE_H

#include "core/slang-basic.h"

namespace Slang
{
struct IRModule;
struct IRType;
struct IRFunc;
struct IRInst;

struct DebugValueStoreContext
{
    Dictionary<IRType*, bool> m_mapTypeToDebugability;
    bool isDebuggableType(IRType* type);
    void insertDebugValueStore(IRFunc* func);
    bool isTypeKind(IRInst* inst);
};
void insertDebugValueStore(DebugValueStoreContext& context, IRModule* module);

} // namespace Slang

#endif // SLANG_IR_INSERT_DEBUG_VALUE_STORE_H