This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Fixed some typos
ClosedPublic

Authored by GabrielRavier on Jul 30 2022, 10:51 AM.

Details

Summary

I went over the output of the following mess of a command:

(ulimit -m 2000000; ulimit -v 2000000; git ls-files -z | parallel --xargs -0 cat | aspell list --mode=none --ignore-case | grep -E '^[A-Za-z][a-z]*$' | sort | uniq -c | sort -n | grep -vE '.{25}' | aspell pipe -W3 | grep : | cut -d' ' -f2 | less)

and proceeded to spend a few days looking at it to find probable typos
and fixed a few hundred of them in all of the llvm project (note, the
ones I found are not anywhere near all of them, but it seems like a
good start).

Diff Detail

Event Timeline

GabrielRavier created this revision.Jul 30 2022, 10:51 AM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
GabrielRavier requested review of this revision.Jul 30 2022, 10:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2022, 10:51 AM
Amir added a comment.Jul 30 2022, 11:00 AM

@GabrielRavier: thank you for improving LLVM/BOLT codebase.

Please capitalize BOLT in the commit title and address one question inline. LGTM otherwise.

bolt/lib/Passes/RetpolineInsertion.cpp
47–57

I don't see any typos fixed here, can you please revert this hunk?

Well, I assumed it was supposed to be [bolt] and not [BOLT] on the basis that the previous commit wrote it as [bolt] too but I'll change it, looking at the git log does indicate that [BOLT] is the more commonly used one

bolt/lib/Passes/RetpolineInsertion.cpp
47–57

The fixed typo is "availablity" (which is spelled availability from what I can see), otherwise the formatting in general is caused by the git clang-format command that the LLVM documentation implies is required when making a patch.

GabrielRavier retitled this revision from [bolt] Fixed some typos to [BOLT] Fixed some typos.Jul 30 2022, 11:15 AM
Amir accepted this revision.Jul 30 2022, 11:40 AM
Amir added inline comments.
bolt/lib/Passes/RetpolineInsertion.cpp
47–57

Sorry, you’re right.

This revision is now accepted and ready to land.Jul 30 2022, 11:40 AM
maksfb accepted this revision.Jul 30 2022, 2:02 PM

Title nit: "[BOLT] Fix typos". Thanks!

Amir added a comment.Sep 30 2022, 2:13 AM

@GabrielRavier
Do you need help landing this diff?

@GabrielRavier
Do you need help landing this diff?

I do not have commit access, so yes.

(PS: I normally use Gabriel Ravier <gabravier@gmail.com> as my details on git commits)

Amir added a comment.Sep 30 2022, 8:06 AM

(PS: I normally use Gabriel Ravier <gabravier@gmail.com> as my details on git commits)

Yes, that's set in the commit author field.

This revision was automatically updated to reflect the committed changes.
Amir added a comment.Sep 30 2022, 8:11 AM

Thank you again!