https://github.com/shader-slang/slang
Raw File
Tip revision: a16fc7e38a629d2a121c115686c49190de1765fe authored by Yong He on 13 September 2023, 23:19:41 UTC
Add missing RayQuery intrinsics.
Tip revision: a16fc7e
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