[libc-commits] [PATCH] D153388: [libc] Add basic utility support for timing functions on the GPU

Matt Arsenault via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jun 21 06:41:49 PDT 2023


arsenm added a comment.

In D153388#4437695 <https://reviews.llvm.org/D153388#4437695>, @JonChesterfield wrote:

> @arsenm what do you think of adding a built-in that expands to one of the above? This sort of "try to get the time" isn't libc specific and the switch over different builtins is basically architecture mess that ideally wouldn't get reimplemented in lot of different library code.

That's kind of what I thought __builtin_readcyclecounter was for. I don't really understand the difference between the different time operations (e.g what is the difference between clock and time?)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153388



More information about the libc-commits mailing list