@@ -161,7 +161,7 @@ TEST_F(VFABIParserTest, ParamListParsing) {
161
161
Type::getVoidTy (Ctx),
162
162
{VectorType::get (Type::getInt32Ty (Ctx), ElementCount::getFixed (2 )),
163
163
Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
164
- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx)},
164
+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx)},
165
165
false );
166
166
EXPECT_EQ (getFunctionType (), FTy);
167
167
EXPECT_EQ (Parameters.size (), (unsigned )5 );
@@ -225,11 +225,11 @@ TEST_F(VFABIParserTest, Parse) {
225
225
Type::getInt32Ty (Ctx),
226
226
Type::getInt32Ty (Ctx),
227
227
Type::getInt32Ty (Ctx),
228
- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
228
+ PointerType::getUnqual (Ctx),
229
229
Type::getInt32Ty (Ctx),
230
230
Type::getInt32Ty (Ctx),
231
231
Type::getInt32Ty (Ctx),
232
- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
232
+ PointerType::getUnqual (Ctx),
233
233
},
234
234
false );
235
235
EXPECT_EQ (getFunctionType (), FTy);
@@ -265,11 +265,11 @@ TEST_F(VFABIParserTest, LinearWithCompileTimeNegativeStep) {
265
265
" void(i32, i32, i32, ptr)" ));
266
266
EXPECT_EQ (ISA, VFISAKind::AdvancedSIMD);
267
267
EXPECT_FALSE (isMasked ());
268
- FunctionType *FTy = FunctionType::get (
269
- Type::getVoidTy (Ctx),
270
- { Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
271
- Type::getInt32Ty (Ctx)-> getPointerTo ( )},
272
- false );
268
+ FunctionType *FTy =
269
+ FunctionType::get ( Type::getVoidTy (Ctx),
270
+ { Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
271
+ Type::getInt32Ty (Ctx), PointerType::getUnqual (Ctx )},
272
+ false );
273
273
EXPECT_EQ (getFunctionType (), FTy);
274
274
EXPECT_EQ (VF, ElementCount::getFixed (2 ));
275
275
EXPECT_EQ (Parameters.size (), (unsigned )4 );
@@ -332,13 +332,13 @@ TEST_F(VFABIParserTest, LinearWithoutCompileTime) {
332
332
" void(i32, i32, ptr, i32, i32, i32, ptr, i32)" ));
333
333
EXPECT_EQ (ISA, VFISAKind::AdvancedSIMD);
334
334
EXPECT_FALSE (isMasked ());
335
- FunctionType *FTy = FunctionType::get (
336
- Type::getVoidTy (Ctx),
337
- {Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
338
- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx),
339
- Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
340
- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx)},
341
- false );
335
+ FunctionType *FTy =
336
+ FunctionType::get ( Type::getVoidTy (Ctx),
337
+ {Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
338
+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx),
339
+ Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
340
+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx)},
341
+ false );
342
342
EXPECT_EQ (getFunctionType (), FTy);
343
343
EXPECT_EQ (Parameters.size (), (unsigned )8 );
344
344
EXPECT_EQ (Parameters[0 ], VFParameter ({0 , VFParamKind::OMP_Linear, 1 }));
@@ -423,7 +423,7 @@ TEST_F(VFABIParserTest, ISAIndependentMangling) {
423
423
Type::getVoidTy (Ctx),
424
424
{VectorType::get (Type::getInt32Ty (Ctx), ElementCount::getFixed (2 )),
425
425
Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
426
- Type::getInt32Ty (Ctx)-> getPointerTo ( ), Type::getInt32Ty (Ctx),
426
+ PointerType::getUnqual (Ctx), Type::getInt32Ty (Ctx),
427
427
Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx), Type::getInt32Ty (Ctx),
428
428
Type::getInt32Ty (Ctx)},
429
429
false );
@@ -692,8 +692,8 @@ TEST_F(VFABIParserTest, ParseScalableMaskingSVESincos) {
692
692
Type::getVoidTy (Ctx),
693
693
{
694
694
VectorType::get (Type::getDoubleTy (Ctx), ElementCount::getScalable (2 )),
695
- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
696
- Type::getInt32Ty (Ctx)-> getPointerTo ( ),
695
+ PointerType::getUnqual (Ctx),
696
+ PointerType::getUnqual (Ctx),
697
697
VectorType::get (Type::getInt1Ty (Ctx), ElementCount::getScalable (2 )),
698
698
},
699
699
false );
0 commit comments