summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-lower-bit-cast.h
blob: 920224c2ac28f27b2e14286979558f9c7d0ab79d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// slang-ir-lower-bit-cast.h
#pragma once

// This file defines an IR pass that lowers a BitCast<T>(U) operation, where T and U are struct
// types, into a series of bit-cast operations on basic-typed elements.

namespace Slang
{

struct IRModule;
class DiagnosticSink;
class TargetProgram;

void lowerBitCast(TargetProgram* targetReq, IRModule* module, DiagnosticSink* sink);

} // namespace Slang