diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2022-04-21 13:42:46 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-06-14 14:50:52 +0200 |
| commit | d55787a155a34753c1dd8751dd2b77804aa8f442 (patch) | |
| tree | d323c40f07dbae75a7dddc6e1e837f36e8e85533 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 20f597ffcd29d71d116c617def76291689549d6c (diff) | |
| download | rust-d55787a155a34753c1dd8751dd2b77804aa8f442.tar.gz rust-d55787a155a34753c1dd8751dd2b77804aa8f442.zip | |
Add typeid_for_trait_ref function
This function computes a Itanium-like typeid for a trait_ref. This is required for the VFE optimization in LLVM. It is used to map `llvm.type.checked.load` invocations, that is loading the function from a vtable, to the vtables this function could be from. It is important to note that `typeid`s are not unique. So multiple vtables of the same trait can share `typeid`s.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
