[PATCH] Added llvm.is.constant intrinsic
Renato Golin
renato.golin at linaro.org
Mon Jun 30 03:35:01 PDT 2014
================
Comment at: docs/LangRef.rst:7164
@@ +7163,3 @@
+
+This is an overloaded intrinsic. You can use llvm.is.constant on any integer bit width.
+
----------------
As I understand, __builtin_constant_p can be used with any valid expression, and "constant" is the C semantics, so a numeric expression is constant if all its arguments are, string literals are always constant, but pointers are a bit more complicated.
Since this is a GNU extension and we're trying to implement it, it would be wise to add a FIXME and some comments on this documentation to that effect, if our intentions is to not expand to full expresisons, or to do so in the future.
http://reviews.llvm.org/D4276
More information about the llvm-commits
mailing list