1- From 961b5392e313b643c6273a0b851f2e55d952e7ad Mon Sep 17 00:00:00 2001
1+ From ba8ba39245d7c3d48f2a7a0efcb116015e1dfd1c Mon Sep 17 00:00:00 2001
2233Date: Sat, 4 Jan 2025 16:48:45 +0000
44Subject: [PATCH] 29e467fc78eb8b4308b57272ca4ad0d1f744f25f
@@ -62,7 +62,7 @@ index d91da9c64c..d0adcb2136 100644
6262 auto FT = FunctionType::get(T_int32, {T_pvoid, T_int32, T_pvoid}, false);
6363 auto F = Function::Create(FT, Function::ExternalLinkage, "_DllMainCRTStartup", metadataM);
6464diff --git a/src/ccall.cpp b/src/ccall.cpp
65- index e5ef822286..0c0c39cf88 100644
65+ index 1412d7b2be..a0b7bf4a17 100644
6666--- a/src/ccall.cpp
6767+++ b/src/ccall.cpp
6868@@ -105,7 +105,7 @@ static bool runtime_sym_gvs(jl_codectx_t &ctx, const char *f_lib, const char *f_
@@ -101,7 +101,7 @@ index e5ef822286..0c0c39cf88 100644
101101 GlobalVariable *got = new GlobalVariable(*M, T_pvoidfunc, false,
102102 GlobalVariable::ExternalLinkage,
103103 plt,
104- @@ -2128 ,7 +2128 ,7 @@ jl_cgval_t function_sig_t::emit_a_ccall(
104+ @@ -2132 ,7 +2132 ,7 @@ jl_cgval_t function_sig_t::emit_a_ccall(
105105 }
106106 else if (symarg.fptr != NULL) {
107107 ++LiteralCCalls;
@@ -133,7 +133,7 @@ index c1796d907e..03335cf156 100644
133133 for_each_uniontype_small(
134134 [&](unsigned idx, jl_datatype_t *jt) {
135135diff --git a/src/codegen.cpp b/src/codegen.cpp
136- index dfc9ca6da8..759c66f5a3 100644
136+ index 2da744e48c..7eb7be3fee 100644
137137--- a/src/codegen.cpp
138138+++ b/src/codegen.cpp
139139@@ -824,7 +824,7 @@ static const auto jlhasnofield_func = new JuliaFunction<>{
@@ -207,7 +207,7 @@ index dfc9ca6da8..759c66f5a3 100644
207207 T}, // %f
208208 true); }, // %args
209209 get_attrs_basic,
210- @@ -5524 ,7 +5524 ,7 @@ static jl_cgval_t emit_call_specfun_boxed(jl_codectx_t &ctx, jl_value_t *jlretty
210+ @@ -5516 ,7 +5516 ,7 @@ static jl_cgval_t emit_call_specfun_boxed(jl_codectx_t &ctx, jl_value_t *jlretty
211211 std::string namep("p");
212212 namep += specFunctionObject;
213213 GlobalVariable *GV = cast_or_null<GlobalVariable>(jl_Module->getNamedValue(namep));
@@ -216,7 +216,7 @@ index dfc9ca6da8..759c66f5a3 100644
216216 if (GV == nullptr) {
217217 GV = new GlobalVariable(*jl_Module, pfunc, false,
218218 GlobalVariable::ExternalLinkage,
219- @@ -8298 ,7 +8298 ,7 @@ static jl_returninfo_t get_specsig_function(jl_codegen_params_t ¶ms, Module
219+ @@ -8290 ,7 +8290 ,7 @@ static jl_returninfo_t get_specsig_function(jl_codegen_params_t ¶ms, Module
220220 if (props.union_bytes) {
221221 props.cc = jl_returninfo_t::Union;
222222 Type *AT = ArrayType::get(getInt8Ty(M->getContext()), props.union_bytes);
@@ -225,7 +225,7 @@ index dfc9ca6da8..759c66f5a3 100644
225225 argnames.push_back("union_bytes_return");
226226 Type *pair[] = { T_prjlvalue, getInt8Ty(M->getContext()) };
227227 rt = StructType::get(M->getContext(), ArrayRef<Type*>(pair));
228- @@ -8327 ,7 +8327 ,7 @@ static jl_returninfo_t get_specsig_function(jl_codegen_params_t ¶ms, Module
228+ @@ -8319 ,7 +8319 ,7 @@ static jl_returninfo_t get_specsig_function(jl_codegen_params_t ¶ms, Module
229229 props.union_align = props.union_minalign = julia_alignment(jlrettype);
230230 // sret is always passed from alloca
231231 assert(M);
@@ -266,7 +266,7 @@ index c4bcb85e43..52ccbcbd1f 100644
266266 thePtr = nullptr; // could use any value here, since typed_store will not use it
267267 jl_cgval_t ret = typed_store(ctx, thePtr, x, y, ety, ctx.tbaa().tbaa_data, nullptr, nullptr, isboxed,
268268diff --git a/src/llvm-codegen-shared.h b/src/llvm-codegen-shared.h
269- index ff6f5a9729..ecf02a8f57 100644
269+ index d474fb4f61..cfdb8eb5b1 100644
270270--- a/src/llvm-codegen-shared.h
271271+++ b/src/llvm-codegen-shared.h
272272@@ -34,19 +34,19 @@ namespace JuliaType {
@@ -327,7 +327,7 @@ index 76dcd94489..4e539fea8f 100644
327327
328328 // Zero out the GC frame.
329329diff --git a/src/llvm-late-gc-lowering.cpp b/src/llvm-late-gc-lowering.cpp
330- index e03fbd8ccd..317e89d46a 100644
330+ index 86b413311f..28d0e80b6d 100644
331331--- a/src/llvm-late-gc-lowering.cpp
332332+++ b/src/llvm-late-gc-lowering.cpp
333333@@ -1993,7 +1993,7 @@ bool LateLowerGCFrame::CleanupIR(Function &F, State *S, bool *CFGModified) {
@@ -376,10 +376,10 @@ index 2961a77e08..61058f7af0 100644
376376 auto tgt = linearized[i];
377377 auto &spec = specs[i];
378378diff --git a/src/llvm-pass-helpers.cpp b/src/llvm-pass-helpers.cpp
379- index ca25251040..202b0991fd 100644
379+ index 9d415d923e..214e99a03d 100644
380380--- a/src/llvm-pass-helpers.cpp
381381+++ b/src/llvm-pass-helpers.cpp
382- @@ -234 ,7 +234 ,7 @@ namespace jl_intrinsics {
382+ @@ -255 ,7 +255 ,7 @@ namespace jl_intrinsics {
383383 SAFEPOINT_NAME,
384384 [](Type *T_size) {
385385 auto &ctx = T_size->getContext();
@@ -389,10 +389,10 @@ index ca25251040..202b0991fd 100644
389389 FunctionType::get(
390390 Type::getVoidTy(ctx),
391391diff --git a/src/llvm-ptls.cpp b/src/llvm-ptls.cpp
392- index 52d324ec4c..90f3050835 100644
392+ index 58fdd8aafa..1bc05c4ce0 100644
393393--- a/src/llvm-ptls.cpp
394394+++ b/src/llvm-ptls.cpp
395- @@ -307 ,7 +307 ,7 @@ bool LowerPTLS::run(bool *CFGModified)
395+ @@ -312 ,7 +312 ,7 @@ bool LowerPTLS::run(bool *CFGModified)
396396 assert(sizeof(jl_pgcstack_key_t) == sizeof(uintptr_t));
397397 FT_pgcstack_getter = FunctionType::get(FT_pgcstack_getter->getReturnType(), {T_size}, false);
398398 }
0 commit comments