[all-commits] [llvm/llvm-project] d129ac: [BPF] Introduce support for type match relocations
Daniel Müller via All-commits
all-commits at lists.llvm.org
Wed Jun 29 18:24:20 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d129ac27e872e189363e3d8cd6bc4e2152cd73ec
https://github.com/llvm/llvm-project/commit/d129ac27e872e189363e3d8cd6bc4e2152cd73ec
Author: Daniel Müller <deso at posteo.net>
Date: 2022-06-29 (Wed, 29 Jun 2022)
Changed paths:
M llvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp
M llvm/lib/Target/BPF/BPFCORE.h
A llvm/test/CodeGen/BPF/CORE/intrinsic-typeinfo-type-match.ll
Log Message:
-----------
[BPF] Introduce support for type match relocations
Among others, BPF currently supports the type-exists CO-RE relocation
(e.g., see D83878 & D83242). Its intention, as the name tries to convey,
is to be used for checking existence of a type in a target.
While that check is useful and has its place, we would also like to
be able to perform stricter type queries: instead of just checking mere
existence, we want to make sure that members match up in composite
types, that enum variants are present, etc. We refer to this as "type
match".
This change proposes the addition of a new relocation variant/value that
we intend to use for establishing this match relation.
Differential Revision: https://reviews.llvm.org/D126838
More information about the All-commits
mailing list