This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Assume no-op addrspacecasts by default
ClosedPublic

Authored by frasercrmck on Dec 18 2020, 5:14 AM.

Details

Summary

To support OpenCL, which typically uses SPIR as an IR, non-zero address
spaces must be accounted for. This patch makes the RISC-V target assume
no-op address space casts across the board, which effectively removes
the need to support addrspacecast instructions in the backend.

For a RISC-V implementation with different configurations or specialized
address spaces where casts aren't no-ops, the function can be adjusted
as required.

Diff Detail

Event Timeline

frasercrmck created this revision.Dec 18 2020, 5:14 AM
frasercrmck requested review of this revision.Dec 18 2020, 5:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 18 2020, 5:14 AM
jrtc27 accepted this revision.Dec 18 2020, 11:37 AM
This revision is now accepted and ready to land.Dec 18 2020, 11:37 AM
This revision was landed with ongoing or failed builds.Dec 18 2020, 1:09 PM
This revision was automatically updated to reflect the committed changes.