https://github.com/shader-slang/slang
Raw File
Tip revision: 14764896c34b230a5563f48d8b8e565de2f3aa10 authored by Yong He on 03 February 2024, 06:28:02 UTC
Capability type checking. (#3530)
Tip revision: 1476489
slang-ir-single-return.h
// 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);
}
back to top