Skip to content

Commit cff0b6a

Browse files
committed
clang-format
1 parent d8269a3 commit cff0b6a

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

llvm/include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -911,9 +911,11 @@ class TargetTransformInfo {
911911
/// are set if the demanded result elements need to be inserted and/or
912912
/// extracted from vectors. The involved values may be passed in VL if
913913
/// Insert is true.
914-
InstructionCost getScalarizationOverhead(
915-
VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract,
916-
TTI::TargetCostKind CostKind, ArrayRef<Value *> VL = {}) const;
914+
InstructionCost getScalarizationOverhead(VectorType *Ty,
915+
const APInt &DemandedElts,
916+
bool Insert, bool Extract,
917+
TTI::TargetCostKind CostKind,
918+
ArrayRef<Value *> VL = {}) const;
917919

918920
/// Estimate the overhead of scalarizing an instructions unique
919921
/// non-constant operands. The (potentially vector) types to use for each of
@@ -2582,10 +2584,11 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
25822584
return Impl.isVectorIntrinsicWithOverloadTypeAtArg(ID, ScalarOpdIdx);
25832585
}
25842586

2585-
InstructionCost
2586-
getScalarizationOverhead(VectorType *Ty, const APInt &DemandedElts,
2587-
bool Insert, bool Extract, TargetCostKind CostKind,
2588-
ArrayRef<Value *> VL = {}) override {
2587+
InstructionCost getScalarizationOverhead(VectorType *Ty,
2588+
const APInt &DemandedElts,
2589+
bool Insert, bool Extract,
2590+
TargetCostKind CostKind,
2591+
ArrayRef<Value *> VL = {}) override {
25892592
return Impl.getScalarizationOverhead(Ty, DemandedElts, Insert, Extract,
25902593
CostKind, VL);
25912594
}

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,11 @@ class TargetTransformInfoImplBase {
401401
return ScalarOpdIdx == -1;
402402
}
403403

404-
InstructionCost getScalarizationOverhead(
405-
VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract,
406-
TTI::TargetCostKind CostKind, ArrayRef<Value *> VL = {}) const {
404+
InstructionCost getScalarizationOverhead(VectorType *Ty,
405+
const APInt &DemandedElts,
406+
bool Insert, bool Extract,
407+
TTI::TargetCostKind CostKind,
408+
ArrayRef<Value *> VL = {}) const {
407409
return 0;
408410
}
409411

llvm/include/llvm/CodeGen/BasicTTIImpl.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,11 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
777777
/// Estimate the overhead of scalarizing an instruction. Insert and Extract
778778
/// are set if the demanded result elements need to be inserted and/or
779779
/// extracted from vectors.
780-
InstructionCost getScalarizationOverhead(
781-
VectorType *InTy, const APInt &DemandedElts, bool Insert, bool Extract,
782-
TTI::TargetCostKind CostKind, ArrayRef<Value *> VL = {}) {
780+
InstructionCost getScalarizationOverhead(VectorType *InTy,
781+
const APInt &DemandedElts,
782+
bool Insert, bool Extract,
783+
TTI::TargetCostKind CostKind,
784+
ArrayRef<Value *> VL = {}) {
783785
/// FIXME: a bitfield is not a reasonable abstraction for talking about
784786
/// which elements are needed from a scalable vector
785787
if (isa<ScalableVectorType>(InTy))

0 commit comments

Comments
 (0)