Skip to content

Commit

Permalink
update the blurbs for EraseUseRecordsOfOperandIds()
Browse files Browse the repository at this point in the history
  • Loading branch information
Qining committed Aug 17, 2016
1 parent a15622a commit daa199b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/opt/def_use_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ class DefUseManager {
// be removed. Does nothing if |inst| was not analyzed before.
void ClearInst(ir::Instruction* inst);

// Erases the records that a given instruction |inst| uses its operand ids.
// Erases the records that a given instruction uses its operand ids.
// This method updates the id_to_uses_ map with the operand ids of the
// given instruction and remove the use records of the given instruction from
// the records of its operand ids. It also erase the mapping from the given
// instruction to its used operand ids in the inst_to_used_ids_ map.
void EraseUseRecordsOfOperandIds(const ir::Instruction* inst);

IdToDefMap id_to_def_; // Mapping from ids to their definitions
Expand Down

0 comments on commit daa199b

Please sign in to comment.