https://github.com/shader-slang/slang
Raw File
Tip revision: c754c0b4b91634196fd2bec8d5622bde8cccaf98 authored by Yong He on 06 September 2023, 05:10:20 UTC
Fix HLSL SER Intrinsics. (#3183)
Tip revision: c754c0b
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