This is an archive of the discontinued LLVM Phabricator instance.

[MemoryBuiltins] [NFC] Rename isAllocationFn
AbandonedPublic

Authored by Bryce-MW on Jan 13 2022, 5:30 PM.

Details

Summary

There have been a few times now where I have mixed up isAllocationFn with isAllocLikeFn. I've renamed it to isAllocOrReallocLikeFn. I'm open to something else, I juts think having both an isAllocationFn and isAllocLikeFn is confusing. It's als not clear what the difference is just looking at the name.

Diff Detail

Event Timeline

Bryce-MW created this revision.Jan 13 2022, 5:30 PM
Bryce-MW requested review of this revision.Jan 13 2022, 5:30 PM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
reames requested changes to this revision.Jan 14 2022, 8:00 AM

I would consider this a regression in clarity. isAllocationFn is *any* allocation function we know about. isAllocLike is the weird one. If you want to rename something, aim for that one.

Though, I'm hoping to just kill that off entirely in the nearish future. We've only got a handful of places left, it's just those places are getting harder/slower to fix.

This revision now requires changes to proceed.Jan 14 2022, 8:00 AM
Bryce-MW abandoned this revision.Jan 14 2022, 12:18 PM