diff options
author | Craig Topper <craig.topper@sifive.com> | 2021-05-28 11:28:45 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-05-28 11:28:47 -0700 |
commit | 2830d924b0873b33413320650806376dbf6ee9d1 (patch) | |
tree | d75296f4b290406c8fa2cd7b6e78e7044f1046e3 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | d24d2447cd228330d233f8e7710f11a802eaf681 (diff) | |
download | llvm-2830d924b0873b33413320650806376dbf6ee9d1.zip llvm-2830d924b0873b33413320650806376dbf6ee9d1.tar.gz llvm-2830d924b0873b33413320650806376dbf6ee9d1.tar.bz2 |
[VP] Make getMaskParamPos/getVectorLengthParamPos return unsigned. Lowercase function names.
Parameter positions seem like they should be unsigned.
While there, make function names lowercase per coding standards.
Reviewed By: frasercrmck
Differential Revision: https://reviews.llvm.org/D103224
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index ab77ef4..3594756 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -7305,7 +7305,7 @@ void SelectionDAGBuilder::visitVectorPredicationIntrinsic( SDVTList VTs = DAG.getVTList(ValueVTs); auto EVLParamPos = - VPIntrinsic::GetVectorLengthParamPos(VPIntrin.getIntrinsicID()); + VPIntrinsic::getVectorLengthParamPos(VPIntrin.getIntrinsicID()); MVT EVLParamVT = TLI.getVPExplicitVectorLengthTy(); assert(EVLParamVT.isScalarInteger() && EVLParamVT.bitsGE(MVT::i32) && @@ -7313,7 +7313,7 @@ void SelectionDAGBuilder::visitVectorPredicationIntrinsic( // Request operands. SmallVector<SDValue, 7> OpValues; - for (int I = 0; I < (int)VPIntrin.getNumArgOperands(); ++I) { + for (unsigned I = 0; I < VPIntrin.getNumArgOperands(); ++I) { auto Op = getValue(VPIntrin.getArgOperand(I)); if (I == EVLParamPos) Op = DAG.getNode(ISD::ZERO_EXTEND, DL, EVLParamVT, Op); |