@@ -174,33 +174,34 @@ class VPBuilder {
174
174
new VPInstruction (Opcode, Operands, WrapFlags, DL, Name));
175
175
}
176
176
177
- VPValue *createNot (VPValue *Operand, DebugLoc DL = {},
178
- const Twine &Name = " " ) {
177
+ VPInstruction *createNot (VPValue *Operand, DebugLoc DL = {},
178
+ const Twine &Name = " " ) {
179
179
return createInstruction (VPInstruction::Not, {Operand}, DL, Name);
180
180
}
181
181
182
- VPValue *createAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = {},
183
- const Twine &Name = " " ) {
182
+ VPInstruction *createAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = {},
183
+ const Twine &Name = " " ) {
184
184
return createInstruction (Instruction::BinaryOps::And, {LHS, RHS}, DL, Name);
185
185
}
186
186
187
- VPValue *createOr (VPValue *LHS, VPValue *RHS, DebugLoc DL = {},
188
- const Twine &Name = " " ) {
187
+ VPInstruction *createOr (VPValue *LHS, VPValue *RHS, DebugLoc DL = {},
188
+ const Twine &Name = " " ) {
189
189
190
190
return tryInsertInstruction (new VPInstruction (
191
191
Instruction::BinaryOps::Or, {LHS, RHS},
192
192
VPRecipeWithIRFlags::DisjointFlagsTy (false ), DL, Name));
193
193
}
194
194
195
- VPValue *createLogicalAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = {},
196
- const Twine &Name = " " ) {
195
+ VPInstruction *createLogicalAnd (VPValue *LHS, VPValue *RHS, DebugLoc DL = {},
196
+ const Twine &Name = " " ) {
197
197
return tryInsertInstruction (
198
198
new VPInstruction (VPInstruction::LogicalAnd, {LHS, RHS}, DL, Name));
199
199
}
200
200
201
- VPValue *createSelect (VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal,
202
- DebugLoc DL = {}, const Twine &Name = " " ,
203
- std::optional<FastMathFlags> FMFs = std::nullopt) {
201
+ VPInstruction *
202
+ createSelect (VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal,
203
+ DebugLoc DL = {}, const Twine &Name = " " ,
204
+ std::optional<FastMathFlags> FMFs = std::nullopt) {
204
205
auto *Select =
205
206
FMFs ? new VPInstruction (Instruction::Select, {Cond, TrueVal, FalseVal},
206
207
*FMFs, DL, Name)
@@ -212,8 +213,8 @@ class VPBuilder {
212
213
// / Create a new ICmp VPInstruction with predicate \p Pred and operands \p A
213
214
// / and \p B.
214
215
// / TODO: add createFCmp when needed.
215
- VPValue *createICmp (CmpInst::Predicate Pred, VPValue *A, VPValue *B,
216
- DebugLoc DL = {}, const Twine &Name = " " ) {
216
+ VPInstruction *createICmp (CmpInst::Predicate Pred, VPValue *A, VPValue *B,
217
+ DebugLoc DL = {}, const Twine &Name = " " ) {
217
218
assert (Pred >= CmpInst::FIRST_ICMP_PREDICATE &&
218
219
Pred <= CmpInst::LAST_ICMP_PREDICATE && " invalid predicate" );
219
220
return tryInsertInstruction (
0 commit comments