HomePhabricator

[SystemZ] Add implementation for the intrinsic llvm.read_register

Authored by Kai on Jan 8 2020, 11:26 AM.

Description

[SystemZ] Add implementation for the intrinsic llvm.read_register

This change implements the llvm intrinsic llvm.read_register for
the SystemZ platform which returns the value of the specified
register
(http://llvm.org/docs/LangRef.html#llvm-read-register-and-llvm-write-register-intrinsics).
This implementation returns the value of the stack register, and
can be extended to return the value of other registers. The
implementation for this intrinsic exists on various other platforms
including Power, x86, ARM, etc. but missing on SystemZ.

Reviewers: uweigand

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

Details

Committed
KaiFeb 10 2020, 5:19 AM
Differential Revision
D73378: [SystemZ] Add implementation for the intrinsic llvm.read_register
Parents
rGea9850b6c71d: Fix an unused variable warning
Branches
Unknown
Tags
Unknown