about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2022-04-21 13:58:25 +0100
committerPhilipp Krones <hello@philkrones.com>2022-06-14 14:50:52 +0200
commit0acd23c1da0a954fa177c195d89db98204bf4867 (patch)
tree203448f3bb21c5818bebedb2fc15d8ae8201f120 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parentfc7030130e8f68fa75f9b54fba71b6e884eb4250 (diff)
downloadrust-0acd23c1da0a954fa177c195d89db98204bf4867.tar.gz
rust-0acd23c1da0a954fa177c195d89db98204bf4867.zip
Add llvm.type.checked.load intrinsic
Add the intrinsic

declare {i8*, i1} @llvm.type.checked.load(i8* %ptr, i32 %offset, metadata %type)

This is used in the VFE optimization when lowering loading functions
from vtables to LLVM IR. The `metadata` is used to map the function to
all vtables this function could belong to. This ensures that functions
from vtables that might be used somewhere won't get removed.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions