Skip to content

Commit 47b365e

Browse files
committed
refactor: rename to overlay
1 parent f35d911 commit 47b365e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Interpreter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import Core.Compiler:
2323

2424
Base.Experimental.@MethodTable(REACTANT_METHOD_TABLE)
2525

26-
function var"@reactant_override"(__source__::LineNumberNode, __module__::Module, def)
26+
function var"@reactant_overlay"(__source__::LineNumberNode, __module__::Module, def)
2727
return Base.Experimental.var"@overlay"(
2828
__source__, __module__, :(Reactant.REACTANT_METHOD_TABLE), def
2929
)

src/Overrides.jl renamed to src/Overlay.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
# we should move all the reactant_overrides to relevant files.
55

66
# Compiling within a compile should return simply the original function
7-
@reactant_override function Compiler.compile(
7+
@reactant_overlay function Compiler.compile(
88
f, args; client=nothing, optimize=true, sync=false
99
)
1010
return f
1111
end
1212

1313
# Enzyme overrides
14-
@reactant_override @noinline function Enzyme.autodiff_deferred(
14+
@reactant_overlay @noinline function Enzyme.autodiff_deferred(
1515
rmode::Enzyme.Mode, f::FA, rt::Type{A}, args::Vararg{Annotation,Nargs}
1616
) where {FA<:Annotation,A<:Annotation,Nargs}
1717
return overload_autodiff(rmode, f, rt, args...)
1818
end
1919

20-
@reactant_override @noinline function Enzyme.autodiff(
20+
@reactant_overlay @noinline function Enzyme.autodiff(
2121
rmode::Enzyme.Mode, f::FA, rt::Type{A}, args::Vararg{Annotation,Nargs}
2222
) where {FA<:Annotation,A<:Annotation,Nargs}
2323
return overload_autodiff(rmode, f, rt, args...)

src/Reactant.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ include("ControlFlow.jl")
147147
include("Tracing.jl")
148148
include("Compiler.jl")
149149

150-
include("Overrides.jl")
150+
include("Overlay.jl")
151151

152152
function Enzyme.make_zero(
153153
::Type{RT}, seen::IdDict, prev::RT, ::Val{copy_if_inactive}=Val(false)

0 commit comments

Comments
 (0)