| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-12-11 | Remove unused import | Aaron Hill | -1/+0 | |
| 2019-12-11 | rustc: Link LLVM directly into rustc again | Alex Crichton | -0/+3 | |
| This commit builds on #65501 continue to simplify the build system and compiler now that we no longer have multiple LLVM backends to ship by default. Here this switches the compiler back to what it once was long long ago, which is linking LLVM directly to the compiler rather than dynamically loading it at runtime. The `codegen-backends` directory of the sysroot no longer exists and all relevant support in the build system is removed. Note that `rustc` still supports a dynamically loaded codegen backend as it did previously, it just no longer supports dynamically loaded codegen backends in its own sysroot. Additionally as part of this the `librustc_codegen_llvm` crate now once again explicitly depends on all of its crates instead of implicitly loading them through the sysroot. This involved filling out its `Cargo.toml` and deleting all the now-unnecessary `extern crate` annotations in the header of the crate. (this in turn required adding a number of imports for names of macros too). The end results of this change are: * Rustbuild's build process for the compiler as all the "oh don't forget the codegen backend" checks can be easily removed. * Building `rustc_codegen_llvm` is much simpler since it's simply another compiler crate. * Managing the dependencies of `rustc_codegen_llvm` is much simpler since it's "just another `Cargo.toml` to edit" * The build process should be a smidge faster because there's more parallelism in the main rustc build step rather than splitting `librustc_codegen_llvm` out to its own step. * The compiler is expected to be slightly faster by default because the codegen backend does not need to be dynamically loaded. * Disabling LLVM as part of rustbuild is still supported, supporting multiple codegen backends is still supported, and dynamic loading of a codegen backend is still supported. | ||||
| 2019-12-04 | Migrate to LLVM{Get,Set}ValueName2 | Josh Stone | -6/+4 | |
| The deprecated `LLVM{Get,Set}ValueName` only work with NUL-terminated strings, but the `2` variants use explicit lengths, which fits better with Rust strings and slices. We now use these in new helper functions `llvm::{get,set}_value_name` that convert to/from `&[u8]`. | ||||
| 2019-11-18 | Allow different global references to the same name | Stephen Crane | -3/+5 | |
| Combining CGUs can result in code that references a static variable through both an Item and a ForeignItem with the same name. We don't care that the global was already created by a ForeignItem reference when we see the Item reference, as long as the LLVM types of the ForeignItem and Item match. Fixes #66464 | ||||
| 2019-11-12 | Rename in librustc_codegen_llvm. | Camille GILLOT | -2/+2 | |
| 2019-10-21 | Change `SymbolName::name` from `InternedString` to `Symbol`. | Nicholas Nethercote | -1/+1 | |
| This requires changing the `PartialOrd`/`Ord` implementations to look at the chars rather than the symbol index. | ||||
| 2019-10-05 | Replaces some instances of `as *[const | mut] _` with `.cast()` | memoryruins | -3/+3 | |
| 2019-09-26 | Rename `ForeignItem.node` to `ForeignItem.kind` | varkor | -1/+1 | |
| 2019-09-26 | Rename `Item.node` to `Item.kind` | varkor | -1/+1 | |
| 2019-09-25 | Rename `sty` to `kind` | varkor | -1/+1 | |
| 2019-09-05 | Rollup merge of #64141 - nnethercote:minimize-LocalInternedString, ↵ | Mazdak Farrokhzad | -7/+8 | |
| r=petrochenkov Minimize uses of `LocalInternedString` `LocalInternedString` is described as "An alternative to `Symbol` and `InternedString`, useful when the chars within the symbol need to be accessed. It is best used for temporary values." This PR makes the code match that comment, by removing all non-local uses of `LocalInternedString`. This allows the removal of a number of operations on `LocalInternedString` and a couple of uses of `unsafe`. | ||||
| 2019-09-04 | Remove `LocalInternedString` uses from `librustc_codegen_llvm/consts.rs`. | Nicholas Nethercote | -7/+8 | |
| 2019-09-04 | Remove `LocalInternedString` uses from `librustc/ty/`. | Nicholas Nethercote | -1/+1 | |
| This is not a compelling change in isolation, but it is a necessary step. | ||||
| 2019-08-30 | Fixup remaining direct relocation field references | Andreas Molzer | -4/+4 | |
| 2019-08-28 | Address naming and comments from reviews | Andreas Molzer | -3/+3 | |
| 2019-08-21 | Fix codegen with explicit allocation byte access | Andreas Molzer | -7/+48 | |
| 2019-08-02 | CTFE: simplify Value type by not checking for alignment | Ralf Jung | -2/+2 | |
| 2019-06-22 | Rollup merge of #61984 - ljedrz:more_node_id_pruning, r=Zoxc | Mazdak Farrokhzad | -1/+1 | |
| More NodeId pruning Just another round of the `HirId`ification initiative. r? @Zoxc | ||||
| 2019-06-20 | rename hir::map::get_by_hir_id to get | ljedrz | -1/+1 | |
| 2019-06-19 | Pacify tidy | Oliver Scherer | -1/+3 | |
| 2019-06-19 | Change `ByRef` to a struct variant to clarify its fields via names | Oliver Scherer | -1/+1 | |
| 2019-06-19 | Remove the `AllocId` from `ByRef` values | Oliver Scherer | -1/+1 | |
| `ByRef` const values have no identity beyond their value, we should not treat them as having identity. The `AllocId` often differed between equal constants, because of the way that the miri-engine evaluates constants. | ||||
| 2019-06-19 | Weave the alignment through `ByRef` | Oliver Scherer | -1/+3 | |
| 2019-06-02 | remove unneeded deps | Mark Mansi | -1/+0 | |
| 2019-06-02 | remove reexports of mir::mono::{MonoItem,CodegenUnit} | Mark Mansi | -0/+1 | |
| 2019-06-02 | remove reexport of rustc::ty::Instance | Mark Mansi | -2/+1 | |
| 2019-05-27 | Refine the message to at least *mention* the attribute itself. | Felix S. Klock II | -1/+2 | |
| Update pre-existing test's diagnostic output accordingly. | ||||
| 2019-05-27 | Always supply span to check_and_apply_linkage, sidestepping need to add ↵ | Felix S. Klock II | -16/+6 | |
| `bug!`s to rustc. | ||||
| 2019-05-13 | Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions. | Nicholas Nethercote | -1/+2 | |
| 2019-03-07 | HirIdification: replace NodeId method calls | ljedrz | -2/+2 | |
| 2019-02-24 | Rollup merge of #58511 - oli-obk:const_to_op, r=RalfJung | Mazdak Farrokhzad | -1/+1 | |
| Const to op simplification r? @RalfJung alternative to https://github.com/rust-lang/rust/pull/58486 | ||||
| 2019-02-18 | librustc_codegen_llvm => 2018 | Taiki Endo | -9/+9 | |
| 2019-02-16 | Reuse the `Pointer` type instead of passing reassembling it at many use sites | Oliver Scherer | -1/+1 | |
| 2019-02-12 | Stabilize linker-plugin based LTO. | Michael Woerister | -3/+3 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-07 | Various minor/cosmetic improvements to code | Alexander Regueiro | -2/+2 | |
| 2018-12-06 | Use a function to access the Hir map to be able to turn it into a query later | John Kåre Alsaker | -2/+2 | |
| 2018-11-29 | Move get_static from CodegenCx to Builder | bjorn3 | -28/+28 | |
| 2018-11-29 | Rename static_bitcast to const_bitcast | bjorn3 | -1/+1 | |
| 2018-11-29 | Remove static_addr_of_mut from cg_ssa | bjorn3 | -3/+3 | |
| 2018-11-29 | Rename StaticMethods::static_ptrcast to ConstMethods::const_ptrcast | bjorn3 | -4/+0 | |
| 2018-11-29 | Remove static_bitcast from cg_ssa | bjorn3 | -7/+8 | |
| 2018-11-29 | Remove static_replace_all_uses and statics_to_rauw from cg_ssa | bjorn3 | -5/+0 | |
| 2018-11-29 | Make ConstMethods and StaticMethods require BackendTypes instead of Backend | bjorn3 | -1/+1 | |
| 2018-11-22 | rustc_target: avoid using AbiAndPrefAlign where possible. | Eduard-Mihai Burtescu | -7/+7 | |
| 2018-11-22 | rustc_target: separate out an individual Align from AbiAndPrefAlign. | Eduard-Mihai Burtescu | -5/+5 | |
| 2018-11-22 | rustc_target: rename abi::Align to AbiAndPrefAlign. | Eduard-Mihai Burtescu | -5/+5 | |
| 2018-11-16 | [eddyb] rustc_codegen_ssa: rename `interfaces` to `traits`. | Eduard-Mihai Burtescu | -1/+1 | |
| 2018-11-16 | [eddyb] rustc_codegen_ssa: handle LLVM unsafety correctly. | Eduard-Mihai Burtescu | -6/+4 | |
| 2018-11-16 | Finished moving backend-agnostic code to rustc_codegen_ssa | Denis Merigoux | -4/+7 | |
