| 219 | } |
| 220 | |
| 221 | void 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 | |
| 232 | void DefUseManager::ClearInst(Instruction* inst) { |
| 233 | auto iter = inst_to_used_ids_.find(inst); |
nothing calls this directly
no test coverage detected