HomePhabricator

[RISCV] Implement the TargetLowering::getRegisterByName hook

Authored by luismarques on Nov 4 2019, 3:21 AM.

Description

[RISCV] Implement the TargetLowering::getRegisterByName hook

Summary: The hook should work for any RISC-V register. Non-allocatable registers
do not need to be reserved, for the remaining the hook will only succeed
if you pass clang the -ffixed-xX flag. This builds upon D67185, which
currently only allows reserving GPRs.

Reviewers: asb, lenary

Reviewed By: lenary

Tags: #llvm

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

Details

Committed
luismarquesNov 4 2019, 3:23 AM
Reviewer
lenary
Differential Revision
D69130: [RISCV] Implement the TargetLowering::getRegisterByName hook
Parents
rG91167e22eca5: [hwasan] Remove lazy thread-initialisation
Branches
Unknown
Tags
Unknown