This is an archive of the discontinued LLVM Phabricator instance.

[DirectX backend] support resource array when lower typed buffer ld/st to DXIL.
Needs ReviewPublic

Authored by python3kgae on Oct 25 2022, 11:27 AM.

Details

Summary

A new kind of Memory offset is added to calculate array index.
Use data layout with ptr size of 1 to help to get the array index with EmitGEPOffset and DL.getIndexedOffsetInType.
Added HandleCache to reuse DXIL Handle.

Diff Detail

Event Timeline

python3kgae created this revision.Oct 25 2022, 11:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2022, 11:27 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
python3kgae requested review of this revision.Oct 25 2022, 11:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2022, 11:27 AM