https://github.com/shader-slang/slang
Raw File
Tip revision: d87493a46c00be37b820a473c0827bbb865eb222 authored by Yong He on 02 October 2023, 22:39:34 UTC
More direct-SPIRV fixes. (#3257)
Tip revision: d87493a
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