Skip to content

Commit 05c386f

Browse files
committed
Adjust naming scheme of internal macros to PrecompileTools.jl
1 parent df16588 commit 05c386f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/precompile.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function test_functions_on_trees(::Type{T}, operators) where {T}
163163
return nothing
164164
end
165165

166-
macro maybe_precompile_setup(mode, ex)
166+
macro maybe_setup_workload(mode, ex)
167167
precompile_ex = Expr(
168168
:macrocall, Symbol("@setup_workload"), LineNumberNode(@__LINE__), ex
169169
)
@@ -178,7 +178,7 @@ macro maybe_precompile_setup(mode, ex)
178178
end
179179
end
180180

181-
macro maybe_precompile_all_calls(mode, ex)
181+
macro maybe_compile_workload(mode, ex)
182182
precompile_ex = Expr(
183183
:macrocall, Symbol("@compile_workload"), LineNumberNode(@__LINE__), ex
184184
)
@@ -195,12 +195,12 @@ end
195195

196196
"""`mode=:precompile` will use `@precompile_*` directives; `mode=:compile` runs."""
197197
function do_precompilation(; mode=:precompile)
198-
@maybe_precompile_setup mode begin
198+
@maybe_setup_workload mode begin
199199
binary_operators = [[+, -, *, /]]
200200
unary_operators = [[sin, cos]]
201201
turbo = [false]
202202
types = [Float32, Float64]
203-
@maybe_precompile_all_calls mode begin
203+
@maybe_compile_workload mode begin
204204
test_all_combinations(;
205205
binary_operators=binary_operators,
206206
unary_operators=unary_operators,
@@ -216,7 +216,7 @@ function do_precompilation(; mode=:precompile)
216216
# Want to precompile all above calls.
217217
types = [Float32, Float64]
218218
for T in types
219-
@maybe_precompile_all_calls mode begin
219+
@maybe_compile_workload mode begin
220220
test_functions_on_trees(T, operators)
221221
end
222222
end

0 commit comments

Comments
 (0)