This is an archive of the discontinued LLVM Phabricator instance.

[NFC] PHITransAddr refactoring - change translateValue interface
ClosedPublic

Authored by kachkov98 on Feb 2 2023, 4:53 AM.

Details

Summary

PHITransAddr refactoring - return translated value directly or nullptr on failure (instead of bool flag)

Diff Detail

Event Timeline

kachkov98 created this revision.Feb 2 2023, 4:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 4:53 AM
kachkov98 requested review of this revision.Feb 2 2023, 4:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 4:53 AM
kachkov98 updated this revision to Diff 494264.Feb 2 2023, 5:10 AM

Remove isSafeToSpeculativelyExecute() checks

kachkov98 edited the summary of this revision. (Show Details)Feb 2 2023, 5:12 AM
kachkov98 added reviewers: mkazantsev, nikic.
mkazantsev requested changes to this revision.Feb 2 2023, 6:09 AM

I'm generally fine with the whole thing, but I'm against merging several unrelated change sets into one patch. They should be at least somehow related by thematics.

Be merciful to the reviewers, such a salad makes eyes bleed. :(

Please separate them, like:

  • A patch that changes API of translateValue;
  • A patch that changes loops with counters into standard;
  • A patch that removes isSafeToSpeculativelyExecute

I'm sure that separately none of them will cause any trouble. I'm just asking to make it edible for review.

This revision now requires changes to proceed.Feb 2 2023, 6:09 AM
kachkov98 updated this revision to Diff 494290.Feb 2 2023, 6:39 AM

Split patches

kachkov98 retitled this revision from [NFC] PHITransAddr refactoring to [NFC] PHITransAddr refactoring - change translateValue interface.Feb 2 2023, 6:41 AM
kachkov98 edited the summary of this revision. (Show Details)
mkazantsev accepted this revision.Feb 2 2023, 9:55 PM

LG, thanks

This revision is now accepted and ready to land.Feb 2 2023, 9:55 PM
This revision was landed with ongoing or failed builds.Feb 3 2023, 1:09 AM
This revision was automatically updated to reflect the committed changes.