Skip to content

Commit 0277516

Browse files
committed
Fix formatting.
1 parent f16d1d9 commit 0277516

File tree

18 files changed

+60
-66
lines changed

18 files changed

+60
-66
lines changed

clang/lib/CodeGen/ABIInfoImpl.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ ABIArgInfo DefaultABIInfo::classifyArgumentType(QualType Ty) const {
2222
// passed by value.
2323
if (CGCXXABI::RecordArgABI RAA = getRecordArgABI(Ty, getCXXABI()))
2424
return getNaturalAlignIndirect(
25-
Ty,
26-
getContext().getTargetAddressSpace(LangAS::Default),
27-
RAA == CGCXXABI::RAA_DirectInMemory);
25+
Ty, getContext().getTargetAddressSpace(LangAS::Default),
26+
RAA == CGCXXABI::RAA_DirectInMemory);
2827

2928
return getNaturalAlignIndirect(
3029
Ty, getContext().getTargetAddressSpace(LangAS::Default));
@@ -64,8 +63,8 @@ ABIArgInfo DefaultABIInfo::classifyReturnType(QualType RetTy) const {
6463
getContext().getTypeSize(getContext().getTargetInfo().hasInt128Type()
6564
? getContext().Int128Ty
6665
: getContext().LongLongTy))
67-
return getNaturalAlignIndirect(
68-
RetTy, getDataLayout().getAllocaAddrSpace());
66+
return getNaturalAlignIndirect(RetTy,
67+
getDataLayout().getAllocaAddrSpace());
6968

7069
return (isPromotableIntegerTypeForABI(RetTy) ? ABIArgInfo::getExtend(RetTy)
7170
: ABIArgInfo::getDirect());

clang/lib/CodeGen/SwiftCallingConv.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -800,10 +800,9 @@ static ABIArgInfo classifyExpandedType(SwiftAggLowering &lowering,
800800
if (lowering.empty()) {
801801
return ABIArgInfo::getIgnore();
802802
} else if (lowering.shouldPassIndirectly(forReturn)) {
803-
return ABIArgInfo::getIndirect(
804-
alignmentForIndirect,
805-
/*AddrSpace*/ 0,
806-
/*byval*/ false);
803+
return ABIArgInfo::getIndirect(alignmentForIndirect,
804+
/*AddrSpace*/ 0,
805+
/*byval*/ false);
807806
} else {
808807
auto types = lowering.getCoerceAndExpandTypes();
809808
return ABIArgInfo::getCoerceAndExpand(types.first, types.second);

clang/lib/CodeGen/Targets/AArch64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ ABIArgInfo AArch64ABIInfo::classifyArgumentType(QualType Ty, bool IsVariadicFn,
414414
// copy constructor are always indirect.
415415
if (CGCXXABI::RecordArgABI RAA = getRecordArgABI(Ty, getCXXABI())) {
416416
return getNaturalAlignIndirect(
417-
Ty, /*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
418-
/*ByVal=*/RAA == CGCXXABI::RAA_DirectInMemory);
417+
Ty, /*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
418+
/*ByVal=*/RAA == CGCXXABI::RAA_DirectInMemory);
419419
}
420420

421421
// Empty records are always ignored on Darwin, but actually passed in C++ mode
@@ -490,7 +490,7 @@ ABIArgInfo AArch64ABIInfo::classifyArgumentType(QualType Ty, bool IsVariadicFn,
490490
}
491491

492492
return getNaturalAlignIndirect(
493-
Ty, /*AddrSpace*/getContext().getTargetAddressSpace(LangAS::Default),
493+
Ty, /*AddrSpace*/ getContext().getTargetAddressSpace(LangAS::Default),
494494
/*ByVal=*/false);
495495
}
496496

clang/lib/CodeGen/Targets/AMDGPU.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ ABIArgInfo AMDGPUABIInfo::classifyArgumentType(QualType Ty, bool Variadic,
226226
// passed by value.
227227
if (auto RAA = getRecordArgABI(Ty, getCXXABI()))
228228
return getNaturalAlignIndirect(
229-
Ty,
230-
getContext().getTargetAddressSpace(LangAS::Default),
229+
Ty, getContext().getTargetAddressSpace(LangAS::Default),
231230
RAA == CGCXXABI::RAA_DirectInMemory);
232231

233232
// Ignore empty structs/unions.

clang/lib/CodeGen/Targets/ARC.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ class ARCTargetCodeGenInfo : public TargetCodeGenInfo {
7070

7171
ABIArgInfo ARCABIInfo::getIndirectByRef(QualType Ty, bool HasFreeRegs) const {
7272
return HasFreeRegs
73-
? getNaturalAlignIndirectInReg(Ty)
74-
: getNaturalAlignIndirect(
75-
Ty, getContext().getTargetAddressSpace(LangAS::Default), false);
73+
? getNaturalAlignIndirectInReg(Ty)
74+
: getNaturalAlignIndirect(
75+
Ty, getContext().getTargetAddressSpace(LangAS::Default),
76+
false);
7677
}
7778

7879
ABIArgInfo ARCABIInfo::getIndirectByValue(QualType Ty) const {

clang/lib/CodeGen/Targets/ARM.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ ABIArgInfo ARMABIInfo::coerceIllegalVector(QualType Ty) const {
299299
return ABIArgInfo::getDirect(ResType);
300300
}
301301
return getNaturalAlignIndirect(
302-
Ty, /*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
303-
/*ByVal=*/false);
302+
Ty, /*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
303+
/*ByVal=*/false);
304304
}
305305

306306
ABIArgInfo ARMABIInfo::classifyHomogeneousAggregate(QualType Ty,
@@ -543,8 +543,8 @@ ABIArgInfo ARMABIInfo::classifyReturnType(QualType RetTy, bool isVariadic,
543543
if (const VectorType *VT = RetTy->getAs<VectorType>()) {
544544
// Large vector types should be returned via memory.
545545
if (getContext().getTypeSize(RetTy) > 128)
546-
return getNaturalAlignIndirect(
547-
RetTy, getDataLayout().getAllocaAddrSpace());
546+
return getNaturalAlignIndirect(RetTy,
547+
getDataLayout().getAllocaAddrSpace());
548548
// TODO: FP16/BF16 vectors should be converted to integer vectors
549549
// This check is similar to isIllegalVectorType - refactor?
550550
if ((!getTarget().hasLegalHalfType() &&

clang/lib/CodeGen/Targets/BPF.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class BPFABIInfo : public DefaultABIInfo {
6565
return ABIArgInfo::getIgnore();
6666

6767
if (isAggregateTypeForABI(RetTy))
68-
return getNaturalAlignIndirect(
69-
RetTy, getDataLayout().getAllocaAddrSpace());
68+
return getNaturalAlignIndirect(RetTy,
69+
getDataLayout().getAllocaAddrSpace());
7070

7171
// Treat an enum type as its underlying type.
7272
if (const EnumType *EnumTy = RetTy->getAs<EnumType>())
@@ -75,8 +75,8 @@ class BPFABIInfo : public DefaultABIInfo {
7575
ASTContext &Context = getContext();
7676
if (const auto *EIT = RetTy->getAs<BitIntType>())
7777
if (EIT->getNumBits() > Context.getTypeSize(Context.Int128Ty))
78-
return getNaturalAlignIndirect(
79-
RetTy, getDataLayout().getAllocaAddrSpace());
78+
return getNaturalAlignIndirect(RetTy,
79+
getDataLayout().getAllocaAddrSpace());
8080

8181
// Caller will do necessary sign/zero extension.
8282
return ABIArgInfo::getDirect();

clang/lib/CodeGen/Targets/Hexagon.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ ABIArgInfo HexagonABIInfo::classifyArgumentType(QualType Ty,
106106

107107
if (Size > 64 && Ty->isBitIntType())
108108
return getNaturalAlignIndirect(
109-
Ty, getContext().getTargetAddressSpace(LangAS::Default),
110-
/*ByVal=*/true);
109+
Ty, getContext().getTargetAddressSpace(LangAS::Default),
110+
/*ByVal=*/true);
111111

112112
return isPromotableIntegerTypeForABI(Ty) ? ABIArgInfo::getExtend(Ty)
113113
: ABIArgInfo::getDirect();
@@ -157,8 +157,8 @@ ABIArgInfo HexagonABIInfo::classifyReturnType(QualType RetTy) const {
157157
}
158158
// Large vector types should be returned via memory.
159159
if (Size > 64)
160-
return getNaturalAlignIndirect(
161-
RetTy, getDataLayout().getAllocaAddrSpace());
160+
return getNaturalAlignIndirect(RetTy,
161+
getDataLayout().getAllocaAddrSpace());
162162
}
163163

164164
if (!isAggregateTypeForABI(RetTy)) {
@@ -184,8 +184,8 @@ ABIArgInfo HexagonABIInfo::classifyReturnType(QualType RetTy) const {
184184
Size = llvm::bit_ceil(Size);
185185
return ABIArgInfo::getDirect(llvm::Type::getIntNTy(getVMContext(), Size));
186186
}
187-
return getNaturalAlignIndirect(
188-
RetTy, getDataLayout().getAllocaAddrSpace(), /*ByVal=*/true);
187+
return getNaturalAlignIndirect(RetTy, getDataLayout().getAllocaAddrSpace(),
188+
/*ByVal=*/true);
189189
}
190190

191191
Address HexagonABIInfo::EmitVAArgFromMemory(CodeGenFunction &CGF,

clang/lib/CodeGen/Targets/Lanai.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ ABIArgInfo LanaiABIInfo::getIndirectResult(QualType Ty, bool ByVal,
7272
--State.FreeRegs; // Non-byval indirects just use one pointer.
7373
return getNaturalAlignIndirectInReg(Ty);
7474
}
75-
return getNaturalAlignIndirect(
76-
Ty, getDataLayout().getAllocaAddrSpace(), false);
75+
return getNaturalAlignIndirect(Ty, getDataLayout().getAllocaAddrSpace(),
76+
false);
7777
}
7878

7979
// Compute the byval alignment.

clang/lib/CodeGen/Targets/LoongArch.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ ABIArgInfo LoongArchABIInfo::classifyArgumentType(QualType Ty, bool IsFixed,
306306
if (GARsLeft)
307307
GARsLeft -= 1;
308308
return getNaturalAlignIndirect(
309-
Ty,
310-
/*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
311-
/*ByVal=*/RAA == CGCXXABI::RAA_DirectInMemory);
309+
Ty,
310+
/*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
311+
/*ByVal=*/RAA == CGCXXABI::RAA_DirectInMemory);
312312
}
313313

314314
uint64_t Size = getContext().getTypeSize(Ty);
@@ -384,8 +384,9 @@ ABIArgInfo LoongArchABIInfo::classifyArgumentType(QualType Ty, bool IsFixed,
384384
(!getContext().getTargetInfo().hasInt128Type() &&
385385
EIT->getNumBits() > 64))
386386
return getNaturalAlignIndirect(
387-
Ty, /*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
388-
/*ByVal=*/false);
387+
Ty,
388+
/*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
389+
/*ByVal=*/false);
389390
}
390391

391392
return ABIArgInfo::getDirect();
@@ -409,8 +410,8 @@ ABIArgInfo LoongArchABIInfo::classifyArgumentType(QualType Ty, bool IsFixed,
409410
llvm::ArrayType::get(llvm::IntegerType::get(getVMContext(), GRLen), 2));
410411
}
411412
return getNaturalAlignIndirect(
412-
Ty,/*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
413-
/*ByVal=*/false);
413+
Ty, /*AddrSpace=*/getContext().getTargetAddressSpace(LangAS::Default),
414+
/*ByVal=*/false);
414415
}
415416

416417
ABIArgInfo LoongArchABIInfo::classifyReturnType(QualType RetTy) const {

0 commit comments

Comments
 (0)