[all-commits] [llvm/llvm-project] fee27b: [DirectX] Legalize lifetime intrinsics for DXIL (#...
Deric C. via All-commits
all-commits at lists.llvm.org
Fri Jul 11 12:27:14 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fee27b33373c126c2205f49c8fc9b8c9fd2f3dca
https://github.com/llvm/llvm-project/commit/fee27b33373c126c2205f49c8fc9b8c9fd2f3dca
Author: Deric C. <cheung.deric at gmail.com>
Date: 2025-07-11 (Fri, 11 Jul 2025)
Changed paths:
M llvm/lib/Target/DirectX/DXILPrepare.cpp
M llvm/lib/Target/DirectX/DXILShaderFlags.cpp
M llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
A llvm/test/CodeGen/DirectX/ShaderFlags/lifetimes-noint64op.ll
M llvm/test/CodeGen/DirectX/legalize-lifetimes-valver-1.6.ll
A llvm/test/tools/dxil-dis/lifetimes.ll
Log Message:
-----------
[DirectX] Legalize lifetime intrinsics for DXIL (#148003)
Fixes #147395
This PR legalizes lifetime intrinsics for DXIL by
- Adding a bitcast for the lifetime intrinsics' pointer operand in
dxil-prepare to ensure it gets cast to an `i8*` when written to DXIL
- Removing the memory attribute from lifetime intrinsics in dxil-prepare
to match DXIL
- Making the DXIL bitcode writer write the base/demangled name of
lifetime intrinsics to the symbol table
- Making lifetime intrinsics an exception to Int64Ops shader flag
analysis (otherwise we get `error: Flags must match usage.` from the
validator)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list