https://github.com/shader-slang/slang
Raw File
Tip revision: b68516e2c2e39af79dda2ec7871fe4d821ef67c4 authored by Yong He on 03 April 2023, 22:54:16 UTC
Emit simpler vector element access code. (#2770)
Tip revision: b68516e
slang-ir-strip.h
// slang-ir-strip.h
#pragma once

namespace Slang
{
    struct IRModule;

    struct IRStripOptions
    {
        bool shouldStripNameHints = false;
        bool stripSourceLocs = false;
    };

        /// Strip out instructions that should only be used by the front-end.
    void stripFrontEndOnlyInstructions(
        IRModule*               module,
        IRStripOptions const&   options);
}
#pragma once
back to top