https://github.com/shader-slang/slang
Raw File
Tip revision: 5902acdabc4445a65741a7a6a3a95f223e301059 authored by Yong He on 23 January 2024, 07:19:40 UTC
[LSP] Fetch configs directly from didConfigurationChanged message. (#3478)
Tip revision: 5902acd
slang-ir-synthesize-active-mask.h
// slang-ir-synthesize-active-mask.h
#pragma once

namespace Slang
{

class Session;
struct IRModule;
class DiagnosticSink;

    /// Synthesize values to represent the "active mask" for warp-/wave-level operations.
    ///
    /// This pass will transform all* functions in `module` that make use of the active
    /// mask (directly or indirectly) so that they receive an explicit active mask as
    /// an input. It will also transform the bodies of those functions to use that input
    /// mask, or values derived from it, as the explicit mask for wave intrinsics.
    ///
    /// * Entry point functions will not be transformed to take an explicit mask, and
    /// will instead be changed to compute the active mask to use as the first operation
    /// in their body.
    ///
void synthesizeActiveMask(
    IRModule*       module,
    DiagnosticSink* sink);

}
back to top