On 09/23/15 14:51, Bernd Schmidt wrote:
On 09/23/2015 08:42 PM, Nathan Sidwell wrote:

As I feared, builtin folding occurs in several places.  In particular
its first call is very early on in the host compiler, which is far too
soon.

We have to defer folding until we know whether we're doing host or
device compilation.

Doesn't something like "symtab->state >= EXPANSION" give you that?

I don't know. It doesn't seem to me to be a good idea for the builtin expanders to be context-sensitive.

nathan

Reply via email to