about summary refs log tree commit diff
path: root/compiler/stable_mir/src/abi.rs
AgeCommit message (Collapse)AuthorLines
2023-12-19Fix c_variadic flag and add opaque info to PassModeCelina G. Val-9/+6
We should expand the information in PassMode later.
2023-12-18Add function ABI and type layout to StableMIRCelina G. Val-0/+286
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.