Skip to content

Commit d6384c7

Browse files
authored
Fix docstring <-> code mismatch of CompilerConfig (#422)
Co-authored-by: Sukera <Seelengrab@users.noreply.github.com>
1 parent f793923 commit d6384c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export CompilerConfig
6262
# the configuration of the compiler
6363

6464
"""
65-
CompilerConfig(target, params; kernel=true, entry_abi=:specfunc, entry_name=nothing,
65+
CompilerConfig(target, params; kernel=true, entry_abi=:specfunc, name=nothing,
6666
always_inline=false)
6767
6868
Construct a `CompilerConfig` that will be used to drive compilation for the given `target`
@@ -80,7 +80,7 @@ Several keyword arguments can be used to customize the compilation process:
8080
pointer to a vector of boxed Julia values and the third argument being the number of
8181
values, the return value will also be boxed. The `:func` abi will internally call the
8282
`:specfunc` abi, but is generally easier to invoke directly.
83-
- `entry_name`: the name that will be used for the entrypoint function. If `nothing` (the
83+
- `name`: the name that will be used for the entrypoint function. If `nothing` (the
8484
default), the name will be generated automatically.
8585
- `always_inline` specifies if the Julia front-end should inline all functions into one if
8686
possible.

test/definitions/native.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ module LazyCodegen
114114
@assert !cc.compiled
115115
job = cc.job
116116

117-
entry_name, jitted_mod = JuliaContext() do ctx
117+
name, jitted_mod = JuliaContext() do ctx
118118
ir, meta = GPUCompiler.compile(:llvm, job; validate=false, ctx)
119119
name(meta.entry), compile!(orc, ir)
120120
end
121121

122-
addr = addressin(orc, jitted_mod, entry_name)
122+
addr = addressin(orc, jitted_mod, name)
123123
ptr = pointer(addr)
124124

125125
cc.compiled = true

0 commit comments

Comments
 (0)