rust/src/librustc_codegen_llvm
bors e94eaa6dce Auto merge of #70674 - cjgillot:query-arena-all, r=matthewjasper
Have the per-query caches store the results on arenas

This PR leverages the cache for each query to serve as storage area for the query results.

It introduces a new cache `ArenaCache`, which moves the result to an arena,
and only stores the reference in the hash map.
This allows to remove a sizeable part of the usage of the global `TyCtxt` arena.

I only migrated queries that already used arenas before.
2020-05-01 01:38:05 +00:00
..
2020-03-26 15:49:22 +00:00
2020-03-30 07:19:55 +02:00
2020-03-30 07:02:56 +02:00
2020-04-29 01:05:56 +01:00
2020-03-30 07:16:56 +02:00
2020-04-07 22:47:25 -05:00
2020-03-30 10:09:51 -04:00
2019-12-22 17:42:47 -05:00

The codegen crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how codegen works, see the rustc dev guide.