[cfe-dev] "generic" address space

Eli Friedman eli.friedman at gmail.com
Thu Jul 17 07:15:41 PDT 2008


On Wed, Jul 16, 2008 at 11:36 PM, Mon P Wang <wangmp at apple.com> wrote:
>
> By a new expr tree, do you mean that instead of creating a CallExpr, we
> create another node type like IntrinsicExpr and these have slightly
> different rules for processing?

Yes, that's the idea.

> During CodeGen, both of these nodes will be
> process the same.  If that is the case, I don't see much of a problem going
> this way.
>
> At the time when I first thought about synthesizing the prototype, my
> concern was that we will be spending some extra time to create the prototype
> and do some redundant work because after we create the prototype, we would
> check it again since we will pass it to normal processing.  However, we
> already to create the intrinsic on the fly and when we create a custom
> prototype based on some call site information, we could skip the regular
> checks and conversions since we would have already done this.  At the
> abstraction level, it does seem the cleanest way to go since arguments would
> match correctly.

Okay; I don't have a strong preference between the two approaches.

-Eli



More information about the cfe-dev mailing list