[PATCH] D74572: [WIP][BPF] implement intrinsic function __builtin__btf_type_id()
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 13 11:10:41 PST 2020
yonghong-song created this revision.
yonghong-song added reviewers: ast, anakryiko.
Herald added subscribers: llvm-commits, cfe-commits, hiraditya, mgorny.
Herald added projects: clang, LLVM.
The builtin signature looks like:
unsigned type_id = __builtin_btf_type_id(expression);
The "expression" can be a normal C expression such as
1, var_a, var_a + 4, &var_a, var_b[10]
etc.
The return value returns the BTF type_id for the "expression".
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74572
Files:
clang/include/clang/Basic/BuiltinsBPF.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Sema/SemaChecking.cpp
llvm/include/llvm/IR/IntrinsicsBPF.td
llvm/lib/Target/BPF/BPF.h
llvm/lib/Target/BPF/BPFCORE.h
llvm/lib/Target/BPF/BPFMIPreserveDIType.cpp
llvm/lib/Target/BPF/BPFPreserveDIType.cpp
llvm/lib/Target/BPF/BPFTargetMachine.cpp
llvm/lib/Target/BPF/BTFDebug.cpp
llvm/lib/Target/BPF/BTFDebug.h
llvm/lib/Target/BPF/CMakeLists.txt
llvm/test/CodeGen/BPF/BTF/builtin-btf-type-id.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74572.244481.patch
Type: text/x-patch
Size: 28986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200213/39b2d833/attachment-0001.bin>
More information about the cfe-commits
mailing list