Skip to content

Commit 62196b8

Browse files
committed
fixup! clang-format
1 parent 29b0c56 commit 62196b8

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

clang/include/clang/AST/Type.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4444,10 +4444,7 @@ class FunctionType : public Type {
44444444
enum { NoReturnMask = 0x40 };
44454445
enum { ProducesResultMask = 0x80 };
44464446
enum { NoCallerSavedRegsMask = 0x100 };
4447-
enum {
4448-
RegParmMask = 0xe00,
4449-
RegParmOffset = 9
4450-
};
4447+
enum { RegParmMask = 0xe00, RegParmOffset = 9 };
44514448
enum { NoCfCheckMask = 0x1000 };
44524449
enum { CmseNSCallMask = 0x2000 };
44534450
uint16_t Bits = CC_C;

clang/lib/CodeGen/Targets/RISCV.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "ABIInfoImpl.h"
1010
#include "TargetInfo.h"
11-
#include "llvm/TargetParser/RISCVTargetParser.h"
1211

1312
using namespace clang;
1413
using namespace clang::CodeGen;
@@ -41,8 +40,8 @@ class RISCVABIInfo : public DefaultABIInfo {
4140
public:
4241
RISCVABIInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, unsigned FLen,
4342
bool EABI)
44-
: DefaultABIInfo(CGT), XLen(XLen), FLen(FLen),
45-
NumArgGPRs(EABI ? 6 : 8), NumArgFPRs(FLen != 0 ? 8 : 0), EABI(EABI) {}
43+
: DefaultABIInfo(CGT), XLen(XLen), FLen(FLen), NumArgGPRs(EABI ? 6 : 8),
44+
NumArgFPRs(FLen != 0 ? 8 : 0), EABI(EABI) {}
4645

4746
// DefaultABIInfo's classifyReturnType and classifyArgumentType are
4847
// non-virtual, but computeInfo is virtual, so we overload it.
@@ -556,8 +555,7 @@ bool RISCVABIInfo::detectVLSCCEligibleStruct(QualType Ty, unsigned ABIVLen,
556555

557556
// Fixed-length RVV vectors are represented as scalable vectors in function
558557
// args/return and must be coerced from fixed vectors.
559-
ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty,
560-
unsigned ABIVLen) const {
558+
ABIArgInfo RISCVABIInfo::coerceVLSVector(QualType Ty, unsigned ABIVLen) const {
561559
assert(Ty->isVectorType() && "expected vector type!");
562560

563561
const auto *VT = Ty->castAs<VectorType>();

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5254,17 +5254,17 @@ bool Sema::CheckCallingConvAttr(const ParsedAttr &Attrs, CallingConv &CC,
52545254
unsigned ABIVLen = 128;
52555255
if (Attrs.getNumArgs() &&
52565256
!checkUInt32Argument(Attrs, Attrs.getArgAsExpr(0), ABIVLen)) {
5257-
Attrs.setInvalid();
5257+
Attrs.setInvalid();
52585258
return true;
52595259
}
52605260
if (Attrs.getNumArgs() && (ABIVLen < 32 || ABIVLen > 65536)) {
5261-
Attrs.setInvalid();
5261+
Attrs.setInvalid();
52625262
Diag(Attrs.getLoc(), diag::err_argument_invalid_range)
52635263
<< ABIVLen << 32 << 65536;
52645264
return true;
52655265
}
52665266
if (!llvm::isPowerOf2_64(ABIVLen)) {
5267-
Attrs.setInvalid();
5267+
Attrs.setInvalid();
52685268
Diag(Attrs.getLoc(), diag::err_argument_not_power_of_2);
52695269
return true;
52705270
}

llvm/lib/AsmParser/LLParser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,9 +2296,9 @@ bool LLParser::parseOptionalCallingConv(unsigned &CC) {
22962296
switch (ABIVlen) {
22972297
default:
22982298
return tokError("unknown RISC-V ABI VLEN");
2299-
#define CC_VLS_CASE(ABIVlen) \
2300-
case ABIVlen: \
2301-
CC = CallingConv::RISCV_VLSCall_##ABIVlen; \
2299+
#define CC_VLS_CASE(ABIVlen) \
2300+
case ABIVlen: \
2301+
CC = CallingConv::RISCV_VLSCall_##ABIVlen; \
23022302
break;
23032303
CC_VLS_CASE(32)
23042304
CC_VLS_CASE(64)

0 commit comments

Comments
 (0)