about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-20 09:46:12 +0100
committerGitHub <noreply@github.com>2023-12-20 09:46:12 +0100
commit8b3914ce4829f6d19ff76dbad7e648f78adf8dfd (patch)
tree690676492d89ff7f506f12792caa40f7942fa036 /compiler/rustc_resolve/src
parentf9c752d931c3ad05974765f796db33c6d72e21ea (diff)
parent76b3e6de558cc67dca0098def00b0ee55dfc8d58 (diff)
downloadrust-8b3914ce4829f6d19ff76dbad7e648f78adf8dfd.tar.gz
rust-8b3914ce4829f6d19ff76dbad7e648f78adf8dfd.zip
Rollup merge of #119094 - celinval:smir-layout, r=compiler-errors
Add function ABI and type layout to StableMIR

This change introduces a new module to StableMIR named `abi` with information from `rustc_target::abi` and `rustc_abi`, that allow users to retrieve more low level information required to perform bit-precise analysis.

The layout of a type can be retrieved via `Ty::layout`, and the instance ABI can be retrieved via `Instance::fn_abi()`.

To properly handle errors while retrieve layout information, we had to implement a few layout related traits.

r? ```@compiler-errors```
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions