diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-07-02 18:11:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 18:11:48 -0500 |
commit | 594bc520a8a14617bdfc158f4c78fa70567dab19 (patch) | |
tree | fa0fc8e17beaac8d8b4b88576ee4b04515011f62 /libc/spec/stdc.td | |
parent | b5b0a22ecc58c9950fb4b1cd3532e75f42155978 (diff) | |
download | llvm-594bc520a8a14617bdfc158f4c78fa70567dab19.zip llvm-594bc520a8a14617bdfc158f4c78fa70567dab19.tar.gz llvm-594bc520a8a14617bdfc158f4c78fa70567dab19.tar.bz2 |
[lld] Change `--lto-emit-llvm` to use the pre-codegen module (#97480)
Summary:
Currently the `--lto-emit-llvm` option writes out the
post-internalization bitcode. This is the bitcode before any
optimizations or other pipelines have been run on it. This patch changes
that to use the pre-codegen module, which is the state of the LLVM-IR
after the optimizations have been run.
I believe that this makes sense as the `--lto-emit-llvm` option seems to
imply that we should emit the final output of the LLVM pass as if it
were the desired output. This should include optimizations at the
requested optimization level. My main motivation for this change is to
be able to use this to link several LLVM-IR files into a single one that
I can then pass back to `ld.lld` later (for JIT purposes).
Diffstat (limited to 'libc/spec/stdc.td')
0 files changed, 0 insertions, 0 deletions