https://github.com/shader-slang/slang
Raw File
Tip revision: f6c0177ba09d7d15f0a35cdb850ca757a677bff8 authored by Yong He on 21 September 2023, 05:28:23 UTC
Update a1-02-slangpy.md
Tip revision: f6c0177
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