https://github.com/shader-slang/slang
Raw File
Tip revision: d8f4c9424c69a3d406fabf56a25dd3eda4bc7d51 authored by Sai Praveen Bangaru on 21 October 2023, 01:21:30 UTC
Fix issue with transposing `IRMakeVector` with non-singleton operands (#3280)
Tip revision: d8f4c94
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