[all-commits] [llvm/llvm-project] 3fa3cb: [XRay] Make llvm.xray.typedevent parameter type ma...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Jun 19 20:28:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3fa3cb408d8d0f1365b322262e501b6945f7ead9
https://github.com/llvm/llvm-project/commit/3fa3cb408d8d0f1365b322262e501b6945f7ead9
Author: Fangrui Song <i at maskray.me>
Date: 2023-06-19 (Mon, 19 Jun 2023)
Changed paths:
M clang/test/CodeGen/xray-always-emit-typedevent.cpp
M clang/test/CodeGen/xray-instrumentation-bundles.cpp
M clang/test/CodeGen/xray-typedevent.cpp
M compiler-rt/include/xray/xray_interface.h
M compiler-rt/lib/xray/xray_fdr_logging.cpp
M compiler-rt/lib/xray/xray_interface.cpp
M compiler-rt/test/xray/TestCases/Posix/typed-event-logging.cpp
M llvm/include/llvm/IR/Intrinsics.td
M llvm/test/CodeGen/X86/xray-custom-log.ll
Log Message:
-----------
[XRay] Make llvm.xray.typedevent parameter type match __xray_typedevent
The Clang built-in function is void __xray_typedevent(size_t, const void *, size_t),
but the LLVM intrinsics has smaller integer types. Since we only allow
64-bit ELF/Mach-O targets, we can change llvm.xray.typedevent to
i64/ptr/i64.
This allows encoding more information and avoids i16 legalization for
many non-X86 targets.
fdrLoggingHandleTypedEvent only supports uint16_t event type.
More information about the All-commits
mailing list