Conversation
Contributor
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/src/errors.jl b/src/errors.jl
index 27ff261e..b7a2b896 100644
--- a/src/errors.jl
+++ b/src/errors.jl
@@ -1226,7 +1226,7 @@ function julia_error(
throw(EnzymeInternalError(msg, ir, bt))
elseif errtype == API.ET_ShowInternalError
Core.print(EnzymeInternalError(msg, ir, bt))
- return C_NULL
+ return C_NULL
elseif errtype == API.ET_GCRewrite
data2 = LLVM.Value(data2)
fn = LLVM.Function(LLVM.API.LLVMGetParamParent(data2::LLVM.Argument))
diff --git a/src/rules/customrules.jl b/src/rules/customrules.jl
index 483b9182..7969e480 100644
--- a/src/rules/customrules.jl
+++ b/src/rules/customrules.jl
@@ -165,7 +165,7 @@ function push_box_for_argument!(@nospecialize(B::LLVM.IRBuilder),
@nospecialize(roots_cache::Union{LLVM.Value, Nothing}),
@nospecialize(shadow_roots::Union{Nothing, LLVM.Value}) = nothing,
just_primal_rooting::Bool = false
- )::Union{Nothing, LLVM.Value}
+ )::Union{Nothing, LLVM.Value}
if !activity_wrap
@assert arg.typ == Ty
@@ -212,11 +212,11 @@ function push_box_for_argument!(@nospecialize(B::LLVM.IRBuilder),
@assert shadow_roots === nothing
return nothing
else
- arty_foralloca = if VERSION >= v"1.12" && num_inline_roots != 0
- strip_tracked_pointers(arty)
- else
- arty
- end
+ arty_foralloca = if VERSION >= v"1.12" && num_inline_roots != 0
+ strip_tracked_pointers(arty)
+ else
+ arty
+ end
val = load!(B, arty_foralloca, ogval, "rule_val_load_v1_")
metadata(val)["enzyme_mustcache"] = MDNode(LLVM.Metadata[])
end
@@ -264,9 +264,9 @@ function push_box_for_argument!(@nospecialize(B::LLVM.IRBuilder),
llty = convert(LLVMType, Ty; allow_boxed = true)
llty_foralloca = if VERSION >= v"1.12" && num_inline_roots != 0
- strip_tracked_pointers(llty)
+ strip_tracked_pointers(llty)
else
- llty
+ llty
end
al0 = al = alloca!(B, llty_foralloca, "arg.$Ty")
@@ -829,12 +829,12 @@ function enzyme_custom_setup_args(
@assert ival !== nothing
just_primal_rooting = true
al = push_box_for_argument!(B, Ty, val, roots_val, arg, args, uncacheable, true, ogval, roots_cache, shadow_roots, just_primal_rooting)
-
- llty_foralloca = if VERSION >= v"1.12" && n_shadow_roots != 0
- strip_tracked_pointers(llty)
- else
- llty
- end
+
+ llty_foralloca = if VERSION >= v"1.12" && n_shadow_roots != 0
+ strip_tracked_pointers(llty)
+ else
+ llty
+ end
iptr = inbounds_gep!(
B, |
Contributor
Benchmark Results
Benchmark PlotsA plot of the benchmark results has been uploaded as an artifact at https://github.com/EnzymeAD/Enzyme.jl/actions/runs/26113162481/artifacts/7090617539. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.