[PATCH] D142388: [clang] Add builtin_nondeterministic_value

Manuel Brito via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 16 08:11:44 PDT 2023


ManuelJBrito added a comment.

In D142388#4425246 <https://reviews.llvm.org/D142388#4425246>, @aaron.ballman wrote:

> In D142388#4415349 <https://reviews.llvm.org/D142388#4415349>, @rsmith wrote:
>
>> I think `__builtin_any_value` works pretty well, and emphasizes that this can really return any value. I'd also be OK with `__builtin_convenient_value`, to emphasize that the compiler will pick something that's convenient for it, but I prefer `__builtin_any_value`.
>
> I can get behind `__builtin_any_value` as the name.
>
> @ManuelJBrito: would you be willing to make these modifications?

Yes, I can change the name to `__builtin_any_value` . 
Where do we stand in terms of further restricting the types for which we can use this? I'm a bit out of my depth in regards to all the subtleties.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142388



More information about the cfe-commits mailing list