This is an archive of the discontinued LLVM Phabricator instance.

add unsigned comparison builders to Affine EDSC
ClosedPublic

Authored by adstraw on Jun 22 2020, 11:56 AM.

Details

Summary

Current Affine comparison builders, which use operator overload, default to signed comparison. This creates the possibility of misuse of these builders and potential correctness issues when dealing with unsigned integers. This change makes the distinction between signed and unsigned comparison builders and forces the caller to make a choice between the two.

Diff Detail

Event Timeline

adstraw created this revision.Jun 22 2020, 11:56 AM
Herald added a project: Restricted Project. · View Herald Transcript
ftynse accepted this revision.Jun 23 2020, 4:50 AM
This revision is now accepted and ready to land.Jun 23 2020, 4:50 AM

@ftynse I do not have push privileges. Can you submit this patch for me?

@adstraw could you please rebase on head? This does not seem to apply anymore

adstraw updated this revision to Diff 273766.Jun 26 2020, 9:52 AM

@ftynse patch updated.

This revision was automatically updated to reflect the committed changes.