blob: a201329073a3d140b731ee13af39393963fa4cbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// slang-ir-single-return.h
#pragma once
namespace Slang
{
struct IRModule;
struct IRGlobalValueWithCode;
// Convert the CFG of `func` to have only a single `return` at the end.
void convertFuncToSingleReturnForm(IRModule* module, IRGlobalValueWithCode* func);
bool isSingleReturnFunc(IRGlobalValueWithCode* func);
int getReturnCount(IRGlobalValueWithCode* func);
} // namespace Slang
|