File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ class LLVMTypeConverter : public mlir::LLVMTypeConverter {
41
41
return mlir::IntegerType::get (
42
42
&getContext (), kindMapping.getLogicalBitsize (boolTy.getFKind ()));
43
43
});
44
+ addConversion (
45
+ [&](fir::PointerType pointer) { return convertPointerLike (pointer); });
44
46
addConversion (
45
47
[&](fir::RecordType derived) { return convertRecordType (derived); });
46
48
addConversion (
Original file line number Diff line number Diff line change @@ -31,6 +31,18 @@ func private @foo1(%arg0: !fir.ref<!fir.array<10xf32>>)
31
31
32
32
// -----
33
33
34
+ // Test pointer types `!fir.ptr`
35
+
36
+ func private @foo0(%arg0: !fir.ptr<i32>)
37
+ // CHECK-LABEL: foo0
38
+ // CHECK-SAME: !llvm.ptr<i32>
39
+
40
+ func private @foo1(%arg0: !fir.ptr<!fir.array<10xf32>>)
41
+ // CHECK-LABEL: foo1
42
+ // CHECK-SAME: !llvm.ptr<array<10 x f32>>
43
+
44
+ // -----
45
+
34
46
// Test box types `!fir.box`
35
47
36
48
func private @foo0(%arg0: !fir.box<!fir.array<?xf32>>)
You can’t perform that action at this time.
0 commit comments