Skip to content

Commit 68ab338

Browse files
committed
Clang format
1 parent 069c336 commit 68ab338

12 files changed

+27
-16
lines changed

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ class TargetTransformInfoImplBase {
309309
}
310310

311311
virtual bool isLegalMaskedStore(Type *DataType, Align Alignment,
312-
unsigned AddressSpace, bool IsMaskConstant) const {
312+
unsigned AddressSpace,
313+
bool IsMaskConstant) const {
313314
return false;
314315
}
315316

llvm/lib/Analysis/TargetTransformInfo.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,10 @@ TargetTransformInfo::getPreferredAddressingMode(const Loop *L,
468468
}
469469

470470
bool TargetTransformInfo::isLegalMaskedStore(Type *DataType, Align Alignment,
471-
unsigned AddressSpace, bool IsMaskConstant) const {
472-
return TTIImpl->isLegalMaskedStore(DataType, Alignment, AddressSpace, IsMaskConstant);
471+
unsigned AddressSpace,
472+
bool IsMaskConstant) const {
473+
return TTIImpl->isLegalMaskedStore(DataType, Alignment, AddressSpace,
474+
IsMaskConstant);
473475
}
474476

475477
bool TargetTransformInfo::isLegalMaskedLoad(Type *DataType, Align Alignment,

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ class AArch64TTIImpl final : public BasicTTIImplBase<AArch64TTIImpl> {
321321
}
322322

323323
bool isLegalMaskedStore(Type *DataType, Align Alignment,
324-
unsigned /*AddressSpace*/, bool /*IsMaskConstant*/) const override {
324+
unsigned /*AddressSpace*/,
325+
bool /*IsMaskConstant*/) const override {
325326
return isLegalMaskedLoadStore(DataType, Alignment);
326327
}
327328

llvm/lib/Target/ARM/ARMTargetTransformInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ class ARMTTIImpl final : public BasicTTIImplBase<ARMTTIImpl> {
189189
bool isLegalMaskedLoad(Type *DataTy, Align Alignment,
190190
unsigned AddressSpace) const override;
191191

192-
bool isLegalMaskedStore(Type *DataTy, Align Alignment,
193-
unsigned AddressSpace, bool /*IsMaskConstant*/) const override {
192+
bool isLegalMaskedStore(Type *DataTy, Align Alignment, unsigned AddressSpace,
193+
bool /*IsMaskConstant*/) const override {
194194
return isLegalMaskedLoad(DataTy, Alignment, AddressSpace);
195195
}
196196

llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ InstructionCost HexagonTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val,
341341
}
342342

343343
bool HexagonTTIImpl::isLegalMaskedStore(Type *DataType, Align /*Alignment*/,
344-
unsigned /*AddressSpace*/, bool /*IsMaskConstant*/) const {
344+
unsigned /*AddressSpace*/,
345+
bool /*IsMaskConstant*/) const {
345346
// This function is called from scalarize-masked-mem-intrin, which runs
346347
// in pre-isel. Use ST directly instead of calling isHVXVectorType.
347348
return HexagonMaskedVMem && ST.isTypeForHVX(DataType);

llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ class HexagonTTIImpl final : public BasicTTIImplBase<HexagonTTIImpl> {
166166
}
167167

168168
bool isLegalMaskedStore(Type *DataType, Align Alignment,
169-
unsigned AddressSpace, bool IsMaskConstant) const override;
169+
unsigned AddressSpace,
170+
bool IsMaskConstant) const override;
170171
bool isLegalMaskedLoad(Type *DataType, Align Alignment,
171172
unsigned AddressSpace) const override;
172173

llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,11 +593,12 @@ Value *NVPTXTTIImpl::rewriteIntrinsicWithAddressSpace(IntrinsicInst *II,
593593
}
594594

595595
bool NVPTXTTIImpl::isLegalMaskedStore(Type *DataTy, Align Alignment,
596-
unsigned AddrSpace, bool IsMaskConstant) const {
596+
unsigned AddrSpace,
597+
bool IsMaskConstant) const {
597598

598599
if (!IsMaskConstant)
599600
return false;
600-
601+
601602
// We currently only support this feature for 256-bit vectors, so the
602603
// alignment must be at least 32
603604
if (Alignment < 32)

llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ class NVPTXTTIImpl final : public BasicTTIImplBase<NVPTXTTIImpl> {
181181
bool collectFlatAddressOperands(SmallVectorImpl<int> &OpIndexes,
182182
Intrinsic::ID IID) const override;
183183

184-
bool isLegalMaskedStore(Type *DataType, Align Alignment,
185-
unsigned AddrSpace, bool IsMaskConstant) const override;
184+
bool isLegalMaskedStore(Type *DataType, Align Alignment, unsigned AddrSpace,
185+
bool IsMaskConstant) const override;
186186

187187
unsigned getLoadStoreVecRegBitWidth(unsigned AddrSpace) const override;
188188

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ class RISCVTTIImpl final : public BasicTTIImplBase<RISCVTTIImpl> {
290290
return isLegalMaskedLoadStore(DataType, Alignment);
291291
}
292292
bool isLegalMaskedStore(Type *DataType, Align Alignment,
293-
unsigned /*AddressSpace*/, bool /*IsMaskConstant*/) const override {
293+
unsigned /*AddressSpace*/,
294+
bool /*IsMaskConstant*/) const override {
294295
return isLegalMaskedLoadStore(DataType, Alignment);
295296
}
296297

llvm/lib/Target/VE/VETargetTransformInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ class VETTIImpl final : public BasicTTIImplBase<VETTIImpl> {
139139
return isVectorLaneType(*getLaneType(DataType));
140140
}
141141
bool isLegalMaskedStore(Type *DataType, Align Alignment,
142-
unsigned /*AddressSpace*/, bool /*IsMaskConstant*/) const override {
142+
unsigned /*AddressSpace*/,
143+
bool /*IsMaskConstant*/) const override {
143144
return isVectorLaneType(*getLaneType(DataType));
144145
}
145146
bool isLegalMaskedGather(Type *DataType, Align Alignment) const override {

0 commit comments

Comments
 (0)