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

Method AnalyzeDefUse

source/opt/def_use_manager.cpp:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void DefUseManager::AnalyzeDefUse(Module* module) {
222 if (!module) return;
223 // Analyze all the defs before any uses to catch forward references.
224 module->ForEachInst(
225 std::bind(&DefUseManager::AnalyzeInstDef, this, std::placeholders::_1),
226 true);
227 module->ForEachInst(
228 std::bind(&DefUseManager::AnalyzeInstUse, this, std::placeholders::_1),
229 true);
230}
231
232void DefUseManager::ClearInst(Instruction* inst) {
233 auto iter = inst_to_used_ids_.find(inst);

Callers

nothing calls this directly

Calls 1

ForEachInstMethod · 0.45

Tested by

no test coverage detected