Skip to content

Commit 9689ac0

Browse files
committed
fixup! clang-format
1 parent 8ba2c49 commit 9689ac0

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

clang/lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3509,8 +3509,8 @@ StringRef FunctionType::getNameForCallConv(CallingConv CC) {
35093509
case CC_PreserveNone: return "preserve_none";
35103510
// clang-format off
35113511
case CC_RISCVVectorCall: return "riscv_vector_cc";
3512-
// clang-format on
35133512
case CC_RISCVVLSCall: return "riscv_vls_cc";
3513+
// clang-format on
35143514
}
35153515

35163516
llvm_unreachable("Invalid calling convention.");

clang/lib/CodeGen/CGCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ unsigned CodeGenTypes::ClangCallConvToLLVMCallConv(CallingConv CC) {
7676
case CC_PreserveNone: return llvm::CallingConv::PreserveNone;
7777
// clang-format off
7878
case CC_RISCVVectorCall: return llvm::CallingConv::RISCV_VectorCall;
79-
// clang-format on
8079
case CC_RISCVVLSCall: return llvm::CallingConv::RISCV_VLSCall;
80+
// clang-format on
8181
}
8282
}
8383

clang/lib/CodeGen/Targets/RISCV.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ void RISCVABIInfo::computeInfo(CGFunctionInfo &FI) const {
105105
int ArgNum = 0;
106106
for (auto &ArgInfo : FI.arguments()) {
107107
bool IsFixed = ArgNum < NumFixedArgs;
108-
ArgInfo.info =
109-
classifyArgumentType(ArgInfo.type, IsFixed, ArgGPRsLeft, ArgFPRsLeft, ABIVLen);
108+
ArgInfo.info = classifyArgumentType(ArgInfo.type, IsFixed, ArgGPRsLeft,
109+
ArgFPRsLeft, ABIVLen);
110110
ArgNum++;
111111
}
112112
}
@@ -335,7 +335,7 @@ ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty, unsigned ABIVLen) const {
335335

336336
unsigned NumElts = VT->getNumElements();
337337
llvm::ScalableVectorType *ResType;
338-
llvm::Type *EltType = CGT.ConvertType(VT->getElementType());;
338+
llvm::Type *EltType = CGT.ConvertType(VT->getElementType());
339339

340340
if (ABIVLen == 0) {
341341
// RVV fixed-length vector
@@ -498,7 +498,8 @@ ABIArgInfo RISCVABIInfo::classifyArgumentType(QualType Ty, bool IsFixed,
498498
return getNaturalAlignIndirect(Ty, /*ByVal=*/false);
499499
}
500500

501-
ABIArgInfo RISCVABIInfo::classifyReturnType(QualType RetTy, unsigned ABIVLen) const {
501+
ABIArgInfo RISCVABIInfo::classifyReturnType(QualType RetTy,
502+
unsigned ABIVLen) const {
502503
if (RetTy->isVoidType())
503504
return ABIArgInfo::getIgnore();
504505

@@ -507,8 +508,8 @@ ABIArgInfo RISCVABIInfo::classifyReturnType(QualType RetTy, unsigned ABIVLen) co
507508

508509
// The rules for return and argument types are the same, so defer to
509510
// classifyArgumentType.
510-
return classifyArgumentType(RetTy, /*IsFixed=*/true, ArgGPRsLeft,
511-
ArgFPRsLeft, ABIVLen);
511+
return classifyArgumentType(RetTy, /*IsFixed=*/true, ArgGPRsLeft, ArgFPRsLeft,
512+
ABIVLen);
512513
}
513514

514515
RValue RISCVABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr,

clang/lib/Sema/SemaType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7482,7 +7482,7 @@ static Attr *getCCTypeAttr(ASTContext &Ctx, ParsedAttr &Attr) {
74827482
case ParsedAttr::AT_RISCVVectorCC:
74837483
return createSimpleAttr<RISCVVectorCCAttr>(Ctx, Attr);
74847484
case ParsedAttr::AT_RISCVVLSCC:
7485-
return ::new (Ctx) RISCVVLSCCAttr(Ctx, Attr, /*dummy*/0);
7485+
return ::new (Ctx) RISCVVLSCCAttr(Ctx, Attr, /*dummy*/ 0);
74867486
}
74877487
llvm_unreachable("unexpected attribute kind!");
74887488
}

0 commit comments

Comments
 (0)