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