Skip to content

Commit

Permalink
rename c++20 keyword s/requires/requires_range.
Browse files Browse the repository at this point in the history
  • Loading branch information
nqbit authored and gatecat committed May 16, 2023
1 parent 57b923a commit ca2e328
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/kernel/constraints.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bool Constraints<StateCount, StateType, CountType>::isValidBelForCellType(const
}
break;
case CONSTRAINT_TAG_REQUIRES:
if (!tags[constraint.tag()].requires(constraint.states())) {
if (!tags[constraint.tag()].requires_range(constraint.states())) {
return false;
}
break;
Expand Down
2 changes: 1 addition & 1 deletion common/kernel/exclusive_state_groups.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ template <size_t StateCount, typename StateType = int8_t, typename CountType = u

template <typename StateRange>
bool
requires(const StateRange &state_range)
requires_range(const StateRange &state_range)
const
{
if (state < 0) {
Expand Down
2 changes: 1 addition & 1 deletion common/kernel/exclusive_state_groups.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void ExclusiveStateGroup<StateCount, StateType, CountType>::explain_requires(con
const Definition &definition, BelId bel,
const StateRange state_range) const
{
if (requires(state_range)) {
if (requires_range(state_range)) {
log_info("Placing cell %s at bel %s does not violate %s.%s\n", cell.c_str(ctx), ctx->nameOfBel(bel),
object.c_str(ctx), definition.prefix.c_str(ctx));
} else {
Expand Down

0 comments on commit ca2e328

Please sign in to comment.