blob: f6f53aeda3e704183ce1e25269a46422d8ae4e28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// slang-ir-strip.h
#pragma once
namespace Slang
{
struct IRModule;
struct IRStripOptions
{
bool shouldStripNameHints = false;
bool stripSourceLocs = false;
};
/// Strip out instructions that should only be used by the front-end.
void stripFrontEndOnlyInstructions(IRModule* module, IRStripOptions const& options);
/// Strip witness table entries from imported witness tables.
void stripImportedWitnessTable(IRModule* module);
} // namespace Slang
#pragma once
|