@@ -400,7 +400,7 @@ class LLVM_ABI_FOR_TEST VPRecipeBase
400
400
401
401
public:
402
402
VPRecipeBase (const unsigned char SC, ArrayRef<VPValue *> Operands,
403
- DebugLoc DL = {} )
403
+ DebugLoc DL = DebugLoc::getUnknown() )
404
404
: VPDef(SC), VPUser(Operands), DL(DL) {}
405
405
406
406
virtual ~VPRecipeBase () = default ;
@@ -518,11 +518,11 @@ class LLVM_ABI_FOR_TEST VPRecipeBase
518
518
class VPSingleDefRecipe : public VPRecipeBase , public VPValue {
519
519
public:
520
520
VPSingleDefRecipe (const unsigned char SC, ArrayRef<VPValue *> Operands,
521
- DebugLoc DL = {} )
521
+ DebugLoc DL = DebugLoc::getUnknown() )
522
522
: VPRecipeBase(SC, Operands, DL), VPValue(this ) {}
523
523
524
524
VPSingleDefRecipe (const unsigned char SC, ArrayRef<VPValue *> Operands,
525
- Value *UV, DebugLoc DL = {} )
525
+ Value *UV, DebugLoc DL = DebugLoc::getUnknown() )
526
526
: VPRecipeBase(SC, Operands, DL), VPValue(this , UV) {}
527
527
528
528
static inline bool classof (const VPRecipeBase *R) {
@@ -864,15 +864,16 @@ class VPIRFlags {
864
864
// / using IR flags.
865
865
struct VPRecipeWithIRFlags : public VPSingleDefRecipe , public VPIRFlags {
866
866
VPRecipeWithIRFlags (const unsigned char SC, ArrayRef<VPValue *> Operands,
867
- DebugLoc DL = {} )
867
+ DebugLoc DL = DebugLoc::getUnknown() )
868
868
: VPSingleDefRecipe(SC, Operands, DL), VPIRFlags() {}
869
869
870
870
VPRecipeWithIRFlags (const unsigned char SC, ArrayRef<VPValue *> Operands,
871
871
Instruction &I)
872
872
: VPSingleDefRecipe(SC, Operands, &I, I.getDebugLoc()), VPIRFlags(I) {}
873
873
874
874
VPRecipeWithIRFlags (const unsigned char SC, ArrayRef<VPValue *> Operands,
875
- const VPIRFlags &Flags, DebugLoc DL = {})
875
+ const VPIRFlags &Flags,
876
+ DebugLoc DL = DebugLoc::getUnknown())
876
877
: VPSingleDefRecipe(SC, Operands, DL), VPIRFlags(Flags) {}
877
878
878
879
static inline bool classof (const VPRecipeBase *R) {
@@ -1081,13 +1082,13 @@ class LLVM_ABI_FOR_TEST VPInstruction : public VPRecipeWithIRFlags,
1081
1082
#endif
1082
1083
1083
1084
public:
1084
- VPInstruction (unsigned Opcode, ArrayRef<VPValue *> Operands, DebugLoc DL = {},
1085
- const Twine &Name = " " )
1085
+ VPInstruction (unsigned Opcode, ArrayRef<VPValue *> Operands,
1086
+ DebugLoc DL = DebugLoc::getUnknown(), const Twine &Name = " " )
1086
1087
: VPRecipeWithIRFlags(VPDef::VPInstructionSC, Operands, DL),
1087
1088
VPIRMetadata (), Opcode(Opcode), Name(Name.str()) {}
1088
1089
1089
1090
VPInstruction (unsigned Opcode, ArrayRef<VPValue *> Operands,
1090
- const VPIRFlags &Flags, DebugLoc DL = {} ,
1091
+ const VPIRFlags &Flags, DebugLoc DL = DebugLoc::getUnknown() ,
1091
1092
const Twine &Name = "");
1092
1093
1093
1094
VP_CLASSOF_IMPL (VPDef::VPInstructionSC)
@@ -1480,7 +1481,8 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
1480
1481
}
1481
1482
1482
1483
VPWidenCastRecipe (Instruction::CastOps Opcode, VPValue *Op, Type *ResultTy,
1483
- const VPIRFlags &Flags = {}, DebugLoc DL = {})
1484
+ const VPIRFlags &Flags = {},
1485
+ DebugLoc DL = DebugLoc::getUnknown())
1484
1486
: VPRecipeWithIRFlags(VPDef::VPWidenCastSC, Op, Flags, DL),
1485
1487
VPIRMetadata(), Opcode(Opcode), ResultTy(ResultTy) {
1486
1488
assert (flagsValidForOpcode (Opcode) &&
@@ -1538,7 +1540,7 @@ class VPWidenIntrinsicRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
1538
1540
public:
1539
1541
VPWidenIntrinsicRecipe (CallInst &CI, Intrinsic::ID VectorIntrinsicID,
1540
1542
ArrayRef<VPValue *> CallArguments, Type *Ty,
1541
- DebugLoc DL = {} )
1543
+ DebugLoc DL = DebugLoc::getUnknown() )
1542
1544
: VPRecipeWithIRFlags(VPDef::VPWidenIntrinsicSC, CallArguments, CI),
1543
1545
VPIRMetadata (CI), VectorIntrinsicID(VectorIntrinsicID), ResultTy(Ty),
1544
1546
MayReadFromMemory(CI.mayReadFromMemory()),
@@ -1547,7 +1549,7 @@ class VPWidenIntrinsicRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
1547
1549
1548
1550
VPWidenIntrinsicRecipe (Intrinsic::ID VectorIntrinsicID,
1549
1551
ArrayRef<VPValue *> CallArguments, Type *Ty,
1550
- DebugLoc DL = {} )
1552
+ DebugLoc DL = DebugLoc::getUnknown() )
1551
1553
: VPRecipeWithIRFlags(VPDef::VPWidenIntrinsicSC, CallArguments, DL),
1552
1554
VPIRMetadata(), VectorIntrinsicID(VectorIntrinsicID), ResultTy(Ty) {
1553
1555
LLVMContext &Ctx = Ty->getContext ();
@@ -1616,7 +1618,8 @@ class LLVM_ABI_FOR_TEST VPWidenCallRecipe : public VPRecipeWithIRFlags,
1616
1618
1617
1619
public:
1618
1620
VPWidenCallRecipe (Value *UV, Function *Variant,
1619
- ArrayRef<VPValue *> CallArguments, DebugLoc DL = {})
1621
+ ArrayRef<VPValue *> CallArguments,
1622
+ DebugLoc DL = DebugLoc::getUnknown())
1620
1623
: VPRecipeWithIRFlags(VPDef::VPWidenCallSC, CallArguments,
1621
1624
*cast<Instruction>(UV)),
1622
1625
VPIRMetadata (*cast<Instruction>(UV)), Variant(Variant) {
@@ -1666,7 +1669,7 @@ class VPHistogramRecipe : public VPRecipeBase {
1666
1669
1667
1670
public:
1668
1671
VPHistogramRecipe (unsigned Opcode, ArrayRef<VPValue *> Operands,
1669
- DebugLoc DL = {} )
1672
+ DebugLoc DL = DebugLoc::getUnknown() )
1670
1673
: VPRecipeBase(VPDef::VPHistogramSC, Operands, DL), Opcode(Opcode) {}
1671
1674
1672
1675
~VPHistogramRecipe () override = default ;
@@ -2228,8 +2231,8 @@ class LLVM_ABI_FOR_TEST VPWidenPHIRecipe : public VPSingleDefRecipe,
2228
2231
public:
2229
2232
// / Create a new VPWidenPHIRecipe for \p Phi with start value \p Start and
2230
2233
// / debug location \p DL.
2231
- VPWidenPHIRecipe (PHINode *Phi, VPValue *Start = nullptr , DebugLoc DL = {},
2232
- const Twine &Name = " " )
2234
+ VPWidenPHIRecipe (PHINode *Phi, VPValue *Start = nullptr ,
2235
+ DebugLoc DL = DebugLoc::getUnknown(), const Twine &Name = " " )
2233
2236
: VPSingleDefRecipe(VPDef::VPWidenPHISC, ArrayRef<VPValue *>(), Phi, DL),
2234
2237
Name (Name.str()) {
2235
2238
if (Start)
@@ -2559,14 +2562,14 @@ class LLVM_ABI_FOR_TEST VPReductionRecipe : public VPRecipeWithIRFlags {
2559
2562
public:
2560
2563
VPReductionRecipe (RecurKind RdxKind, FastMathFlags FMFs, Instruction *I,
2561
2564
VPValue *ChainOp, VPValue *VecOp, VPValue *CondOp,
2562
- bool IsOrdered, DebugLoc DL = {} )
2565
+ bool IsOrdered, DebugLoc DL = DebugLoc::getUnknown() )
2563
2566
: VPReductionRecipe(VPDef::VPReductionSC, RdxKind, FMFs, I,
2564
2567
ArrayRef<VPValue *>({ChainOp, VecOp}), CondOp,
2565
2568
IsOrdered, DL) {}
2566
2569
2567
2570
VPReductionRecipe (const RecurKind RdxKind, FastMathFlags FMFs,
2568
2571
VPValue *ChainOp, VPValue *VecOp, VPValue *CondOp,
2569
- bool IsOrdered, DebugLoc DL = {} )
2572
+ bool IsOrdered, DebugLoc DL = DebugLoc::getUnknown() )
2570
2573
: VPReductionRecipe(VPDef::VPReductionSC, RdxKind, FMFs, nullptr ,
2571
2574
ArrayRef<VPValue *>({ChainOp, VecOp}), CondOp,
2572
2575
IsOrdered, DL) {}
@@ -2684,7 +2687,7 @@ class VPPartialReductionRecipe : public VPReductionRecipe {
2684
2687
class LLVM_ABI_FOR_TEST VPReductionEVLRecipe : public VPReductionRecipe {
2685
2688
public:
2686
2689
VPReductionEVLRecipe (VPReductionRecipe &R, VPValue &EVL, VPValue *CondOp,
2687
- DebugLoc DL = {} )
2690
+ DebugLoc DL = DebugLoc::getUnknown() )
2688
2691
: VPReductionRecipe(
2689
2692
VPDef::VPReductionEVLSC, R.getRecurrenceKind(),
2690
2693
R.getFastMathFlags(),
@@ -3535,7 +3538,8 @@ class LLVM_ABI_FOR_TEST VPScalarIVStepsRecipe : public VPRecipeWithIRFlags,
3535
3538
InductionOpcode (Opcode) {}
3536
3539
3537
3540
VPScalarIVStepsRecipe (const InductionDescriptor &IndDesc, VPValue *IV,
3538
- VPValue *Step, VPValue *VF, DebugLoc DL = {})
3541
+ VPValue *Step, VPValue *VF,
3542
+ DebugLoc DL = DebugLoc::getUnknown())
3539
3543
: VPScalarIVStepsRecipe(
3540
3544
IV, Step, VF, IndDesc.getInductionOpcode(),
3541
3545
dyn_cast_or_null<FPMathOperator>(IndDesc.getInductionBinOp())
0 commit comments