HomePhabricator

[GlobalISel] Base implementation for sret demotion.

Authored by cdevadas on Dec 22 2020, 10:52 PM.

Description

[GlobalISel] Base implementation for sret demotion.

If the return values can't be lowered to registers
SelectionDAG performs the sret demotion. This patch
contains the basic implementation for the same in
the GlobalISel pipeline.

Furthermore, targets should bring relevant changes
during lowerFormalArguments, lowerReturn and
lowerCall to make use of this feature.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D92953

Details

Committed
cdevadasJan 5 2021, 9:00 PM
Reviewer
arsenm
Differential Revision
D92953: [GlobalISel] Base implementation for sret demotion.
Parents
rGc1cd42d69848: [NFC] Removed unused prefixes in CodeGen/AMDGPU
Branches
Unknown
Tags
Unknown