https://github.com/shader-slang/slang
Raw File
Tip revision: d7ba60c993366b4aaf6ef8ee7d8eab940d61eac8 authored by Yong He on 03 April 2023, 03:43:09 UTC
Fix type legalization pass. (#2768)
Tip revision: d7ba60c
slang-ir-hoist-constants.h
// slang-ir-hoist-constants.h
#pragma once

namespace Slang
{
struct IRModule;

    /// A (specialized) generic type may contain insts that computes compile-time constants defined within
    /// the type. We should hoist them to global scope so they can be SCCP'd when possible.
bool hoistConstants(
    IRModule*   module);

}
back to top