summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-defunctionalization.h
blob: 713734db1e398bdde911ba74324aae638fe065c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Aspirational filename
#pragma once

namespace Slang
{
struct CodeGenContext;
struct IRModule;
struct IRType;

/// Specialize calls to higher order functions
///
/// This pass will rewrite any calls to higher order functions passing
/// global functions with calls to specialized versions simply
/// referencing the global.
///
bool specializeHigherOrderParameters(CodeGenContext* codeGenContext, IRModule* module);
} // namespace Slang