https://github.com/shader-slang/slang
Raw File
Tip revision: c12779b831477a39f7c8db3c88e75fc39c767bb0 authored by Ellie Hermaszewska on 13 September 2023, 16:56:53 UTC
Fix build with --enable-xlib=false (#3203)
Tip revision: c12779b
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