summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-call-graph.h
blob: b7290ef790bfe389343db1d5d0f2e1679ace5371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// slang-ir-call-graph.h
#pragma once

#include "slang-ir-clone.h"
#include "slang-ir-insts.h"

namespace Slang
{

void buildEntryPointReferenceGraph(
    Dictionary<IRInst*, HashSet<IRFunc*>>& referencingEntryPoints,
    IRModule* module);

HashSet<IRFunc*>* getReferencingEntryPoints(
    Dictionary<IRInst*, HashSet<IRFunc*>>& m_referencingEntryPoints,
    IRInst* inst);

} // namespace Slang