[PATCH] D142388: [clang] Add builtin_nondet
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 23 11:55:24 PST 2023
shafik added inline comments.
================
Comment at: clang/include/clang/Basic/Builtins.def:658
BUILTIN(__builtin_call_with_static_chain, "v.", "nt")
+BUILTIN(__builtin_nondet, "v.", "nt")
----------------
erichkeane wrote:
> Not a fan of the name in general, it doesn't really explain what is happening. Perhaps `__builtin_nondeterministic_value` or something?
>
> I also wonder if others might have a better name :)
`__builtin_indeterminate_value` wdyt?
================
Comment at: clang/test/CodeGen/builtins-nondet.c:3
+
+typedef float float4 __attribute__((ext_vector_type(4)));
+
----------------
erichkeane wrote:
> Add some examples for 'bool' and vector-bool as well to make sure this is doing what you want.
Does this also work for structs?
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