This is an archive of the discontinued LLVM Phabricator instance.

[PM] Rename lookupPass to lookUpPass.
ClosedPublic

Authored by jlebar on Dec 2 2016, 4:02 PM.

Details

Summary

"Lookup" is a noun ("lookup table"), "look up" is a verb ("look up
'table' in the dictionary").

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 80149.Dec 2 2016, 4:02 PM
jlebar retitled this revision from to [PM] Rename lookupPass to lookUpPass..
jlebar updated this object.
jlebar added a reviewer: chandlerc.
jlebar added subscribers: llvm-commits, silvas.
silvas added a comment.Dec 2 2016, 9:41 PM

If you feel strongly about this then go ahead, though if you're renaming this better to rename it lookUpAnalysis.

This revision was automatically updated to reflect the committed changes.

if you're renaming this better to rename it lookUpAnalysis.

I left it as "lookUpPass" because a lot of the analysis code talks about "passes", or sometimes "analysis passes".

Should we excise mentions of "pass" from the analysis parts? I can write that patch if you think it's the terminology we want to adopt.

silvas added a comment.Dec 5 2016, 9:24 PM

if you're renaming this better to rename it lookUpAnalysis.

I left it as "lookUpPass" because a lot of the analysis code talks about "passes", or sometimes "analysis passes".

Should we excise mentions of "pass" from the analysis parts? I can write that patch if you think it's the terminology we want to adopt.

Check with Chandler, but "pass" is really an old-PM concept. The new-PM has analyses and transformations. Sure, we can call them "analysis passes" and "transformation passes" but then what does "pass" by itself mean? It doesn't mean anything. In fact, the only thing that I can think of which is shared between analyses and transformations is PassInfoMixin but it feels incidental; it's just a mixin for adding a name method to get the class name and there are currently no transformation-specific things needed in that mixin so it gets reused for analyses.

Check with Chandler, but "pass" is really an old-PM concept. The new-PM has analyses and transformations.

So will the new-PM lose its acronym meaning just like LLVM did itself? ;)