<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_codegen_llvm/src/debuginfo, branch 1.83.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.83.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.83.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-10-04T12:06:48+00:00</updated>
<entry>
<title>Use wide pointers consistenly across the compiler</title>
<updated>2024-10-04T12:06:48+00:00</updated>
<author>
<name>Urgau</name>
<email>urgau@numericable.fr</email>
</author>
<published>2024-10-03T13:05:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=018ba0528fa5d22712397e520351295f8582a525'/>
<id>urn:sha1:018ba0528fa5d22712397e520351295f8582a525</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add unstable support for outputting file checksums for use in cargo</title>
<updated>2024-10-02T03:23:20+00:00</updated>
<author>
<name>Jacob Kiesel</name>
<email>jake@bitcrafters.co</email>
</author>
<published>2024-06-22T07:27:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bb5a8276be2d3dbc97d0f52e90db15455d542edf'/>
<id>urn:sha1:bb5a8276be2d3dbc97d0f52e90db15455d542edf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #130389 - Luv-Ray:LLVMMDNodeInContext2, r=nikic</title>
<updated>2024-09-24T12:07:48+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-09-24T12:07:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4cbfcf1b7f16245176488e581f57b39a7e32bc31'/>
<id>urn:sha1:4cbfcf1b7f16245176488e581f57b39a7e32bc31</id>
<content type='text'>
llvm: replace some deprecated functions

`LLVMMDStringInContext` and `LLVMMDNodeInContext` are deprecated, replace them with `LLVMMDStringInContext2` and `LLVMMDNodeInContext2`.
Also replace `Value` with `Metadata` in some function signatures for better consistency.
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do not unnecessarily eval consts in codegen</title>
<updated>2024-09-21T00:38:11+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-21T00:38:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=914193c8f40528fe82696e1054828de8c399882e'/>
<id>urn:sha1:914193c8f40528fe82696e1054828de8c399882e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat some comments.</title>
<updated>2024-09-19T10:11:28+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-09-18T03:34:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f359405cb661dc6e30f194a941b6948e9c14a7a'/>
<id>urn:sha1:1f359405cb661dc6e30f194a941b6948e9c14a7a</id>
<content type='text'>
So they are less than 100 chars.
</content>
</entry>
<entry>
<title>Remove a low-value local variable.</title>
<updated>2024-09-19T10:10:42+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-09-18T03:41:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b071692cb519aab3dd0956caf232cc9acec3802'/>
<id>urn:sha1:3b071692cb519aab3dd0956caf232cc9acec3802</id>
<content type='text'>
</content>
</entry>
<entry>
<title>replace some deprecated functions</title>
<updated>2024-09-19T01:39:28+00:00</updated>
<author>
<name>Luv-Ray</name>
<email>zhuoxun.yang777@outlook.com</email>
</author>
<published>2024-09-19T01:39:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b7c5656713158e826189db21eeea051347548e07'/>
<id>urn:sha1:b7c5656713158e826189db21eeea051347548e07</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename supertraits of `CodegenMethods`.</title>
<updated>2024-09-17T00:24:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-09-17T00:15:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a8d22eb39eafcc19d4c3db4f24582d869c8fdef2'/>
<id>urn:sha1:a8d22eb39eafcc19d4c3db4f24582d869c8fdef2</id>
<content type='text'>
Supertraits of `BuilderMethods` are all called `XyzBuilderMethods`.
Supertraits of `CodegenMethods` are all called `XyzMethods`. This commit
changes the latter to `XyzCodegenMethods`, for consistency.
</content>
</entry>
<entry>
<title>Don't leave debug locations for constants sitting on the builder indefinitely.</title>
<updated>2024-09-06T23:12:18+00:00</updated>
<author>
<name>Kyle Huey</name>
<email>khuey@kylehuey.com</email>
</author>
<published>2024-09-06T19:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7ed9f945a22a6e9cfb75405698e0eaa163c12beb'/>
<id>urn:sha1:7ed9f945a22a6e9cfb75405698e0eaa163c12beb</id>
<content type='text'>
Because constants are currently emitted *before* the prologue, leaving the
debug location on the IRBuilder spills onto other instructions in the prologue
and messes up both line numbers as well as the point LLVM chooses to be the
prologue end.

Example LLVM IR (irrelevant IR elided):
Before:

define internal { i64, i64 } @_ZN3tmp3Foo18var_return_opt_try17he02116165b0fc08cE(ptr align 8 %self) !dbg !347 {
start:
  %self.dbg.spill = alloca [8 x i8], align 8
  %_0 = alloca [16 x i8], align 8
  %residual.dbg.spill = alloca [0 x i8], align 1
    #dbg_declare(ptr %residual.dbg.spill, !353, !DIExpression(), !357)
  store ptr %self, ptr %self.dbg.spill, align 8, !dbg !357
    #dbg_declare(ptr %self.dbg.spill, !350, !DIExpression(), !358)

After:

define internal { i64, i64 } @_ZN3tmp3Foo18var_return_opt_try17h00b17d08874ddd90E(ptr align 8 %self) !dbg !347 {
start:
  %self.dbg.spill = alloca [8 x i8], align 8
  %_0 = alloca [16 x i8], align 8
  %residual.dbg.spill = alloca [0 x i8], align 1
    #dbg_declare(ptr %residual.dbg.spill, !353, !DIExpression(), !357)
  store ptr %self, ptr %self.dbg.spill, align 8
    #dbg_declare(ptr %self.dbg.spill, !350, !DIExpression(), !358)

Note in particular how !357 from %residual.dbg.spill's dbg_declare no longer
falls through onto the store to %self.dbg.spill. This fixes argument values
at entry when the constant is a ZST (e.g. &lt;Option as Try&gt;::Residual). This
fixes #130003 (but note that it does *not* fix issues with argument values and
non-ZST constants, which emit their own stores that have debug info on them,
like #128945).
</content>
</entry>
</feed>
