We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
with_module
@scope
1 parent ec2dc0c commit bc33cebCopy full SHA for bc33ceb
src/Ops.jl
@@ -3239,15 +3239,11 @@ end
3239
)
3240
3241
sym_name = Reactant.TracedUtils.__lookup_unique_name_in_module(mod, sym_name)
3242
-
3243
- mesh_op = MLIR.IR.with_module(mod) do
3244
- return MLIR.Dialects.sdy.mesh(; sym_name, mesh=mesh_attr, location)
3245
- end
+ mesh_op = MLIR.Dialects.sdy.mesh(; sym_name, mesh=mesh_attr, location)
3246
3247
# mesh_op needs to be moved to the beginning of the module
3248
mesh_op = MLIR.IR.rmfromparent!(mesh_op)
3249
- mod_body = MLIR.IR.body(mod)
3250
- pushfirst!(mod_body, mesh_op)
+ pushfirst!(MLIR.IR.body(mod), mesh_op)
3251
3252
# We return the name of the mesh, since the operation is a Symbol op
3253
return (;
0 commit comments