https://github.com/shader-slang/slang
Raw File
Tip revision: 7aeac9717d93e5ab74dacf49d2fe4caad6528552 authored by Yong He on 07 December 2023, 01:56:16 UTC
Update README.md
Tip revision: 7aeac97
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