[PATCH] D152899: Introduce RThreadAccess pass

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 25 14:50:45 PDT 2023


arsenm added a comment.

In D152899#4446947 <https://reviews.llvm.org/D152899#4446947>, @yrouban wrote:

> In D152899#4444040 <https://reviews.llvm.org/D152899#4444040>, @arsenm wrote:
>
>> Would this be better served with an intrinsic to read this register? Does the register need to be globally reserved or just within the local function?
>
> Actually this new pass RThreadAccess generates reading the //rthread// register with //@llvm.read_register()//.

Right, this is the ugly thing I'm trying to guide you away from doing but need to understand exactly what the constraints are on the register. An intrinsic with a defined meaning is better than an unrestricted register read


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152899/new/

https://reviews.llvm.org/D152899



More information about the llvm-commits mailing list