https://github.com/shader-slang/slang
Raw File
Tip revision: 34acec2258ef1586564fe51126b25910b3202541 authored by Yong He on 23 March 2023, 06:59:22 UTC
Fix generic lowering regression due to IR deduplication. (#2723)
Tip revision: 34acec2
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);
}
back to top