This is an archive of the discontinued LLVM Phabricator instance.

[VP] Make getMaskParamPos/getVectorLengthParamPos return unsigned. Lowercase function names.
ClosedPublic

Authored by craig.topper on May 26 2021, 9:49 PM.

Details

Summary

Parameter positions seem like they should be unsigned.

While there, make function names lowercase per coding standards.

Diff Detail

Event Timeline

craig.topper created this revision.May 26 2021, 9:49 PM
craig.topper requested review of this revision.May 26 2021, 9:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2021, 9:49 PM

clang-format

I was tempted to do this while working on D103027 so you get my LGTM. I'll let @simoll see it first though.

llvm/lib/IR/IntrinsicInst.cpp
297–298

You could fold this into the ifs if you wanted. Same in getVectorLengthParam

+1 for folding variables into ifs while you're at it.

LGTM

Fold checks into if.
Rebase after D103027

frasercrmck accepted this revision.May 28 2021, 5:23 AM

Since @simoll's happy, LGTM.

This revision is now accepted and ready to land.May 28 2021, 5:23 AM
This revision was landed with ongoing or failed builds.May 28 2021, 11:44 AM
This revision was automatically updated to reflect the committed changes.