Skip to content

Commit 30a8da4

Browse files
committed
feedback
1 parent 73e6026 commit 30a8da4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Ops.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ end
950950
# return TracedRArray{T,N}((), res, size(x))
951951
# end
952952

953-
function sort(
953+
@noinline function sort(
954954
x::TracedRArray{T,N};
955955
comparator,
956956
dimension=1,
@@ -960,9 +960,8 @@ function sort(
960960
#C4:
961961
@assert 0 < dimension <= ndims(x) "$x invalid dimension"
962962

963-
#TODO: move to @trace
964-
(a, b) = (ConcreteRNumber(T(0)), ConcreteRNumber(T(0)))
965-
func = Reactant.make_mlir_fn(comparator, (a, b), (), "main"; no_args_in_result=true, return_dialect=:stablehlo)[2]
963+
(a, b) = (Reactant.ConcreteRNumber(T(0)), Reactant.ConcreteRNumber(T(0)))
964+
func = Reactant.TracedUtils.make_mlir_fn(comparator, (a, b), (), "main"; no_args_in_result=true, return_dialect=:stablehlo)[2]
966965
@assert MLIR.IR.nregions(func) == 1
967966
fn_name = String(
968967
MLIR.IR.attr(func, String(MLIR.API.mlirSymbolTableGetSymbolAttributeName()))

0 commit comments

Comments
 (0)