This is an archive of the discontinued LLVM Phabricator instance.

[DirectX backend] Translate cbuffer into DXIL.
Needs ReviewPublic

Authored by python3kgae on Aug 7 2022, 2:46 PM.

Details

Summary

cbuffer is a global ptr in address space 4 with annotation in named metadata "hlsl.cbufs".
A new pass DXILCBufferLoweringLegacy is added to collect users of cbuffer
and generate createHandle and cbufferLoad from the users of the cbuffer.

Diff Detail

Unit TestsFailed

Event Timeline

python3kgae created this revision.Aug 7 2022, 2:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2022, 2:46 PM
python3kgae requested review of this revision.Aug 7 2022, 2:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2022, 2:46 PM

Code Cleanup

Refactoring to share code for cbuffer and RWBuffer.

Refactoring collectZeroOffsetMemAccess for buffer lower.

kuhar resigned from this revision.Jun 11 2023, 1:14 PM