Skip to content

Commit 861d812

Browse files
committed
Clang format
1 parent 196ca9b commit 861d812

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
@@ -467,8 +467,10 @@ TargetTransformInfo::getPreferredAddressingMode(const Loop *L,
467467
}
468468

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

474476
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
@@ -598,11 +598,12 @@ Value *NVPTXTTIImpl::rewriteIntrinsicWithAddressSpace(IntrinsicInst *II,
598598
}
599599

600600
bool NVPTXTTIImpl::isLegalMaskedStore(Type *DataTy, Align Alignment,
601-
unsigned AddrSpace, bool IsMaskConstant) const {
601+
unsigned AddrSpace,
602+
bool IsMaskConstant) const {
602603

603604
if (!IsMaskConstant)
604605
return false;
605-
606+
606607
// We currently only support this feature for 256-bit vectors, so the
607608
// alignment must be at least 32
608609
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
@@ -287,7 +287,8 @@ class RISCVTTIImpl final : public BasicTTIImplBase<RISCVTTIImpl> {
287287
return isLegalMaskedLoadStore(DataType, Alignment);
288288
}
289289
bool isLegalMaskedStore(Type *DataType, Align Alignment,
290-
unsigned /*AddressSpace*/, bool /*IsMaskConstant*/) const override {
290+
unsigned /*AddressSpace*/,
291+
bool /*IsMaskConstant*/) const override {
291292
return isLegalMaskedLoadStore(DataType, Alignment);
292293
}
293294

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)