Check for multiple conflicting uses of a fixed register in a single constraint scope.
(&mut self, source: ConstraintSource, reg: PhysReg, early: bool)
| 167 | /// Check for multiple conflicting uses of a fixed register in a single |
| 168 | /// constraint scope. |
| 169 | fn check_fixed(&mut self, source: ConstraintSource, reg: PhysReg, early: bool) -> Result<()> { |
| 170 | let set = if early { |
| 171 | &mut self.early_fixed |
| 172 | } else { |
| 173 | &mut self.late_fixed |
| 174 | }; |
| 175 | for unit in self.reginfo.reg_units(reg) { |
| 176 | ensure!(!set.contains(unit), "{source}: Conflicting uses of {reg}"); |
| 177 | set.insert(unit); |
| 178 | } |
| 179 | Ok(()) |
| 180 | } |
| 181 | |
| 182 | /// Check an operand with a constraint. |
| 183 | fn check_constraint( |
no test coverage detected