This is an archive of the discontinued LLVM Phabricator instance.

Update suffix check and cast non-suffix types
AbandonedPublic

Authored by reikdas on May 2 2020, 5:58 AM.

Details

Summary

This addresses part of @rsmith 's inline comment on https://reviews.llvm.org/D77598.
I want to avoid having an explicit int cast (that happens in the current diff and makes a lot of tests fail) but I did not find a better way to check for that than T->getCanonicalTypeInternal().getAsString(Policy) == "int". Is there a better way to do that? If so could you please let me know and I'll update the diff.

Diff Detail

Event Timeline

reikdas created this revision.May 2 2020, 5:58 AM
reikdas edited the summary of this revision. (Show Details)May 2 2020, 6:00 AM

@reikdas, please upload the full copy of your combined changes to D77598 where the review is still active and close this. This still doesn't address the long long versus 64-bit long that was also mentioned.

reikdas added a comment.EditedMay 2 2020, 7:47 AM

@reikdas, please upload the full copy of your combined changes to D77598 where the review is still active and close this.

I am unable to add a diff/edit the old diff in the other revision(I think since I am not the author of that review). Clicking on "Update Diff" only allowed me to create a new revision.

This still doesn't address the long long versus 64-bit long that was also mentioned.

I updated the summary of this review to state that only part of the comment was addressed.

reikdas edited the summary of this revision. (Show Details)May 2 2020, 9:51 AM

@reikdas, please upload the full copy of your combined changes to D77598 where the review is still active and close this.

I am unable to add a diff/edit the old diff in the other revision(I think since I am not the author of that review). Clicking on "Update Diff" only allowed me to create a new revision.

Have you consulted with the author on the status of the other revision? The "Commandeer Revision" option under "Add Action" in the menu above the comment submission box might work from the technical side.

@hubert.reinterpretcast, this patch is part of our internal forks which we would like to put upstream. The author of the previous patch does not have bandwidth to work on it and @reikdas kindly volunteered to take over. I can close the previous one if that's preferable.

reikdas updated this revision to Diff 261682.May 2 2020, 11:04 PM
reikdas updated this revision to Diff 261683.May 2 2020, 11:10 PM

@hubert.reinterpretcast, this patch is part of our internal forks which we would like to put upstream. The author of the previous patch does not have bandwidth to work on it and @reikdas kindly volunteered to take over. I can close the previous one if that's preferable.

Thanks; if @reikdas can try to update the previous patch using the "Commandeer Revision" action I described, then that is preferable. If that doesn't work, then this patch should have the full set of changes (including the test changes) and the previous patch should be closed.

reikdas abandoned this revision.May 4 2020, 3:32 AM