diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-06-01 11:23:21 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-06-02 13:07:28 +1000 |
| commit | de2911f45464d595a0fabeedd83338da819ade16 (patch) | |
| tree | 4118578ff69b2ad8faa967047349357a804f7b14 /compiler/rustc_codegen_llvm/src | |
| parent | f85ab544dfbbce7448993c490ad16c176339b939 (diff) | |
| download | rust-de2911f45464d595a0fabeedd83338da819ade16.tar.gz rust-de2911f45464d595a0fabeedd83338da819ade16.zip | |
Overhaul CGU formation terminology.
Currently, the code uses multiple words to describe when a mono item `f` uses a mono item `g`, all of which have problems. - `f` references `g`: confusing because there are multiple kinds of use, e.g. "`f` calls `g`" is one, but "`f` takes a (`&T`-style) reference of `g`" is another, and that's two subtly different meanings of "reference" in play. - `f` accesses `g`: meh, "accesses" makes me think of data, and this is code. - `g` is a neighbor (or neighbour) of `f`: is verbose, and doesn't capture the directionality. This commit changes the code to use "`f` uses `g`" everywhere. I think it's better than the current terminology, and the consistency is important. Also, `InliningMap` is renamed `UsageMap` because (a) it was always mostly about usage, and (b) the inlining information it did record was removed in a recent commit.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
