https://github.com/shader-slang/slang
Raw File
Tip revision: 2c437498d3a09b58de17a8865242814d9ea92fde authored by Sai Praveen Bangaru on 15 January 2023, 20:00:20 UTC
Switched to a much simpler method to transpose control flow, nested control flow works now (#2595)
Tip revision: 2c43749
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);

}
back to top