Skip to content

Commit

Permalink
fixup! [RISCV][VLS] Support RISCV VLS calling convention
Browse files Browse the repository at this point in the history
  • Loading branch information
4vtomat committed Nov 10, 2024
1 parent 1c8201d commit 09e59ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/lib/CodeGen/Targets/RISCV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty,
}

// Generic vector
// The number of element need to be at least 1.
// The number of elements needs to be at least 1.
ResType = llvm::ScalableVectorType::get(
EltType,
llvm::divideCeil(NumElts * llvm::RISCV::RVVBitsPerBlock, ArgABIVLen));
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaDeclAttr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4994,7 +4994,7 @@ bool Sema::CheckCallingConvAttr(const ParsedAttr &Attrs, CallingConv &CC,
}

if (Attrs.getKind() == ParsedAttr::AT_RISCVVLSCC) {
// riscv_vls_cc only accept 0 or 1 argument.
// riscv_vls_cc only accepts 0 or 1 argument.
if (!Attrs.checkAtLeastNumArgs(*this, 0) ||
!Attrs.checkAtMostNumArgs(*this, 1)) {
Attrs.setInvalid();
Expand Down

0 comments on commit 09e59ea

Please sign in to comment.