<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Rui,<br>
      <br>
      I think flavors would use only a subset of the reference kinds
      that are available. There is no need to spin in a reference kind,
      which doesnot find any atom.<br>
      <br>
      For example, I am not sure if MachO/COFF have weak symbols,the
      current layout passes are very generic and if the usecase is not
      relevant, we can curtail those passes in the subclasses as well.<br>
      <br>
      This could simplify and could achieve good speed up too.<br>
      <br>
      Thanks<br>
      <br>
      Shankar Easwaran<br>
      <br>
      On 3/27/2014 1:24 PM, Rui Ueyama wrote:<br>
    </div>
    <blockquote
cite="mid:CAJENXgvxb2k8aMFjg4iBcEmecRQJ-kuDb9EAXe8jQmnAq228Mw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Existing reference kinds, namly layout-before
        (until it's removed), layout-after and in-group, have clear
        semantics that is already implemented in the layout pass. For
        example, hen you create a reference from atom A to B with a
        layout-after reference, B will be always placed after A.
        Allowing users to redefine such basic relationship is more
        confusing than good. It's like redefining an operator, so
        caution needed.
        <div>
          <br>
        </div>
        <div>Do you have any immediate need to subclass it? Because we
          have the entire codebase, we can add such abstraction when we
          need it, so doing it beforehand for future possible use tend
          to be overdesigning stuff.</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Thu, Mar 27, 2014 at 8:57 AM,
            Shankar Easwaran <span dir="ltr"><<a
                moz-do-not-send="true"
                href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"> Hi,<br>
                <br>
                I think it would be great if we could subclass the
                LayoutPass. <br>
                <br>
                All the generic functionality could be in the parent to
                run the layout-after/in-group/ and currently the
                layout-before passes(until it gets removed).<br>
                <br>
                Flavors can <b>choose to run the layout passes</b> that
                they use and determine the way things get ordered in the
                layout pass.<br>
                <br>
                The compare function in the LayoutPass would callĀ 
                doLayoutAfter, doInGroup.<br>
                <br>
                Any concerns on sub-classing ?<br>
                <br>
                Thanks<span><font color="#888888"><br>
                    <br>
                    Shankar Easwaran<br>
                    <pre cols="72">-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation</pre>
                  </font></span></div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation</pre>
  </body>
</html>