Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add func namespace in MLIR files #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/default_sequence.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func @fby_many_compute(%arg0: f32) -> f32 {
%8 = sair.proj_last of[d0:%0] %3(d0) : #sair.shape<d0:static_range<42>>, f32
sair.exit %8 : f32
} : f32
return %out : f32
func.return %out : f32
}

// CHECK-LABEL: @fby_two_cycles
Expand Down Expand Up @@ -238,7 +238,7 @@ func @fby_two_cycles(%arg0: f32) -> f32 {
: #sair.shape<d0:static_range<42> x d1:static_range<42>>, f32
sair.exit %9 : f32
} : f32
return %out : f32
func.return %out : f32
}

// CHECK-LABEL: @fby_then_different_source
Expand Down
4 changes: 2 additions & 2 deletions test/inline_trivial_sair_ops.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func @one_map() -> f32 {
sair.exit %3 : f32
} : f32
// CHECK: return %[[v3]] : f32
return %1 : f32
func.return %1 : f32
}

// CHECK-LABEL: @sequence
Expand All @@ -43,7 +43,7 @@ func @sequence() -> f32 {
sair.exit %2 : f32
} : f32
// CHECK: return %[[v3]] : f32
return %6 : f32
func.return %6 : f32
}

// CHECK-LABEL: @do_nothing
Expand Down
6 changes: 3 additions & 3 deletions test/integration/sair_to_llvm.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func @check_memrefs_equal(%lhs: memref<8xi32>, %rhs: memref<8xi32>) -> f32 {
cf.cond_br %6, ^bb0(%3 : index), ^bb2(%c0f : f32)

^bb2(%7: f32):
return %7 : f32
func.return %7 : f32
}

func @from_scalar() -> f32 {
Expand All @@ -37,7 +37,7 @@ func @from_scalar() -> f32 {
%1 = sair.from_scalar %0 : !sair.value<(), f32>
sair.exit %1 : f32
} : f32
return %2 : f32
func.return %2 : f32
}

func @from_to_memref() -> f32 {
Expand Down Expand Up @@ -75,5 +75,5 @@ func @from_to_memref() -> f32 {

// Check that %0 and %1 are equal.
%2 = call @check_memrefs_equal(%0, %1) : (memref<8xi32>, memref<8xi32>) -> f32
return %2 : f32
func.return %2 : f32
}