linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christopher Li <sparse@chrisli.org>
To: Jeff Garzik <jeff@garzik.org>
Cc: linux-sparse@vger.kernel.org
Subject: Re: [PATCH v2] sparse: add LLVM code generation backend
Date: Mon, 27 Apr 2009 16:27:01 -0700	[thread overview]
Message-ID: <70318cbf0904271627w25df616di12e5b1454e89764f@mail.gmail.com> (raw)
In-Reply-To: <49F6342B.30605@garzik.org>

On Mon, Apr 27, 2009 at 3:39 PM, Jeff Garzik <jeff@garzik.org> wrote:
> You can see the above code was taken verbatim from show-parse.c, and is
> probably nothing more than a check the original author (Linus?) felt
> appropriate at the time, for show-parse.c.  I wouldn't read too much into
> its presence in s2l-gen.c -- maybe those checks can simply be deleted.

I did not explain it clear it enough. It is not about the code is not
used. My point is:

1) linearize instruction does not lose the information you care about
   generating better LLVM code. The evaluation does.

2) By writing your own AST recursive code, it does not gain more
   information than what you can already do with current linearize
   instruction. The EXPR_DEREF is processed in evaluation stage.
   The structure laid you care about is already gone by the time your
   s2l-gen about to emit LLVM byte codes. You did not generate any
   GET_ELEMENT_PTR in your LLVM byte code, right?

I still think you should write your LLVM back end base on linearized
instructions. Avoiding it right now does not gain your new features, but
duplicate a lot of complexity. I am not convinced those complexity is
justifiable yet.

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-04-27 23:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-26 20:58 [PATCH v2] sparse: add LLVM code generation backend Jeff Garzik
2009-04-27 19:15 ` Christopher Li
2009-04-27 22:39   ` Jeff Garzik
2009-04-27 23:27     ` Christopher Li [this message]
2009-04-28  0:32       ` Jeff Garzik
2009-04-28  1:04         ` Christopher Li
2009-04-28  1:21           ` Jeff Garzik
2009-04-28  2:15             ` Christopher Li
2009-04-28 22:59             ` Christopher Li
2009-04-29 22:25               ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=70318cbf0904271627w25df616di12e5b1454e89764f@mail.gmail.com \
    --to=sparse@chrisli.org \
    --cc=jeff@garzik.org \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).