-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing lowering for calls (#164)
+ removing the assertion which disallowed tensors of 1x1, I do not see why it was set, it seems that removing does not produce an error, let me know what you think. Thank you! --------- Co-authored-by: Renat Idrisov <parsifal-47@users.noreply.github.com>
- Loading branch information
1 parent
3fe82cb
commit 6aa82f1
Showing
5 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// RUN: triton-shared-opt --triton-to-linalg-experimental %s | FileCheck %s | ||
|
||
module { | ||
tt.func @_sum_combine__fp32() -> f32{ | ||
%0 = arith.constant 42.0 : f32 | ||
tt.return %0 : f32 | ||
} | ||
tt.func @test() -> f32{ | ||
%0 = tt.call @_sum_combine__fp32() : () -> f32 | ||
tt.return %0 : f32 | ||
} | ||
} | ||
|
||
// CHECK: module { | ||
// CHECK: func.func @_sum_combine__fp32(%arg0: i32, %arg1: i32, %arg2: i32, %arg3: i32, %arg4: i32, %arg5: i32) -> f32 { | ||
// CHECK: [[CST_:%.+]] = arith.constant 4.200000e+01 : f32 | ||
// CHECK: return [[CST_]] : f32 | ||
// CHECK: } | ||
// CHECK: func.func @test(%arg0: i32, %arg1: i32, %arg2: i32, %arg3: i32, %arg4: i32, %arg5: i32) -> f32 { | ||
// CHECK: [[VAR_0_:%.+]] = call @_sum_combine__fp32(%arg5, %arg4, %arg3, %arg2, %arg1, %arg0) : (i32, i32, i32, i32, i32, i32) -> f32 | ||
// CHECK: return [[VAR_0_]] : f32 | ||
// CHECK: } | ||
// CHECK: } |