@@ -152,7 +152,7 @@ class VPBuilder {
152
152
VPInstruction *createNaryOp (unsigned Opcode, ArrayRef<VPValue *> Operands,
153
153
Instruction *Inst = nullptr ,
154
154
const Twine &Name = " " ) {
155
- DebugLoc DL;
155
+ DebugLoc DL = DebugLoc::getUnknown () ;
156
156
if (Inst)
157
157
DL = Inst->getDebugLoc ();
158
158
VPInstruction *NewVPInst = createInstruction (Opcode, Operands, DL, Name);
@@ -166,7 +166,7 @@ class VPBuilder {
166
166
VPInstruction *createNaryOp (unsigned Opcode,
167
167
std::initializer_list<VPValue *> Operands,
168
168
std::optional<FastMathFlags> FMFs = {},
169
- DebugLoc DL = {} , const Twine &Name = " " ) {
169
+ DebugLoc DL = DebugLoc::getUnknown() , const Twine &Name = "") {
170
170
if (FMFs)
171
171
return tryInsertInstruction (
172
172
new VPInstruction (Opcode, Operands, *FMFs, DL, Name));
@@ -184,37 +184,37 @@ class VPBuilder {
184
184
VPInstruction *createOverflowingOp (unsigned Opcode,
185
185
std::initializer_list<VPValue *> Operands,
186
186
VPRecipeWithIRFlags::WrapFlagsTy WrapFlags,
187
- DebugLoc DL = {} , const Twine &Name = " " ) {
187
+ DebugLoc DL = DebugLoc::getUnknown() , const Twine &Name = "") {
188
188
return tryInsertInstruction (
189
189
new VPInstruction (Opcode, Operands, WrapFlags, DL, Name));
190
190
}
191
191
192
- VPValue *createNot (VPValue *Operand, DebugLoc DL = {} ,
192
+ VPValue *createNot (VPValue *Operand, DebugLoc DL = DebugLoc::getUnknown() ,
193
193
const Twine &Name = "") {
194
194
return createInstruction (VPInstruction::Not, {Operand}, DL, Name);
195
195
}
196
196
197
- VPValue *createAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = {} ,
197
+ VPValue *createAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = DebugLoc::getUnknown() ,
198
198
const Twine &Name = "") {
199
199
return createInstruction (Instruction::BinaryOps::And, {LHS, RHS}, DL, Name);
200
200
}
201
201
202
- VPValue *createOr (VPValue *LHS, VPValue *RHS, DebugLoc DL = {} ,
202
+ VPValue *createOr (VPValue *LHS, VPValue *RHS, DebugLoc DL = DebugLoc::getUnknown() ,
203
203
const Twine &Name = "") {
204
204
205
205
return tryInsertInstruction (new VPInstruction (
206
206
Instruction::BinaryOps::Or, {LHS, RHS},
207
207
VPRecipeWithIRFlags::DisjointFlagsTy (false ), DL, Name));
208
208
}
209
209
210
- VPValue *createLogicalAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = {} ,
210
+ VPValue *createLogicalAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = DebugLoc::getUnknown() ,
211
211
const Twine &Name = "") {
212
212
return tryInsertInstruction (
213
213
new VPInstruction (VPInstruction::LogicalAnd, {LHS, RHS}, DL, Name));
214
214
}
215
215
216
216
VPValue *createSelect (VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal,
217
- DebugLoc DL = {} , const Twine &Name = " " ,
217
+ DebugLoc DL = DebugLoc::getUnknown() , const Twine &Name = "",
218
218
std::optional<FastMathFlags> FMFs = std::nullopt) {
219
219
auto *Select =
220
220
FMFs ? new VPInstruction (Instruction::Select, {Cond, TrueVal, FalseVal},
@@ -228,19 +228,19 @@ class VPBuilder {
228
228
// / and \p B.
229
229
// / TODO: add createFCmp when needed.
230
230
VPValue *createICmp (CmpInst::Predicate Pred, VPValue *A, VPValue *B,
231
- DebugLoc DL = {} , const Twine &Name = " " ) {
231
+ DebugLoc DL = DebugLoc::getUnknown() , const Twine &Name = "") {
232
232
assert (Pred >= CmpInst::FIRST_ICMP_PREDICATE &&
233
233
Pred <= CmpInst::LAST_ICMP_PREDICATE && " invalid predicate" );
234
234
return tryInsertInstruction (
235
235
new VPInstruction (Instruction::ICmp, Pred, A, B, DL, Name));
236
236
}
237
237
238
- VPInstruction *createPtrAdd (VPValue *Ptr , VPValue *Offset, DebugLoc DL = {} ,
238
+ VPInstruction *createPtrAdd (VPValue *Ptr , VPValue *Offset, DebugLoc DL = DebugLoc::getUnknown() ,
239
239
const Twine &Name = "") {
240
240
return tryInsertInstruction (
241
241
new VPInstruction (Ptr , Offset, GEPNoWrapFlags::none (), DL, Name));
242
242
}
243
- VPValue *createInBoundsPtrAdd (VPValue *Ptr , VPValue *Offset, DebugLoc DL = {} ,
243
+ VPValue *createInBoundsPtrAdd (VPValue *Ptr , VPValue *Offset, DebugLoc DL = DebugLoc::getUnknown() ,
244
244
const Twine &Name = "") {
245
245
return tryInsertInstruction (
246
246
new VPInstruction (Ptr , Offset, GEPNoWrapFlags::inBounds (), DL, Name));
0 commit comments