MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / IsAnalyzedBuiltin

Method IsAnalyzedBuiltin

source/opt/liveness.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool LivenessManager::IsAnalyzedBuiltin(uint32_t bi) {
47 // There are only three builtins that can be analyzed and removed between
48 // two stages: PointSize, ClipDistance and CullDistance. All others are
49 // always consumed implicitly by the downstream stage.
50 const auto builtin = spv::BuiltIn(bi);
51 return builtin == spv::BuiltIn::PointSize ||
52 builtin == spv::BuiltIn::ClipDistance ||
53 builtin == spv::BuiltIn::CullDistance;
54}
55
56bool LivenessManager::AnalyzeBuiltIn(uint32_t id) {
57 auto deco_mgr = context()->get_decoration_mgr();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected