https://github.com/shader-slang/slang
Raw File
Tip revision: 813892cd023e216f6f6560eb47566522d3a82609 authored by Yong He on 13 April 2023, 16:49:22 UTC
Set sharedMem argument to 0 when launching cuda kernel. (#2799)
Tip revision: 813892c
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