<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div dir="ltr">On Thu, Dec 20, 2012 at 3:39 PM, Vane, Edwin <span dir="ltr"><<a href="mailto:edwin.vane@intel.com" target="_blank">edwin.vane@intel.com</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I wasn't planning on dynamically loading transforms. Yesterday when I tried turning a transform into a static library to link into cpp11-migrate I was reminded that unused global variables like the RegisterTransform<...> vars won't get included in the link. My next goal is just to set up the build system to slurp through subdirectories adding all sources to the executable as one monolithic entity. I'm not sure how this is any less complex than using tablegen although I admit I don't have much experience with it.<br>
</blockquote><div><br></div><div style>Why tablegen? I'm still not sure why we need anything but simple classes that can be instantiated...</div><div style>Can you give examples of what you want to do that this wouldn't fulfill?</div>
<div style><br></div><div style>Thanks,</div><div style>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb"><br>
-----Original Message-----<br>
From: Manuel Klimek [mailto:<a href="mailto:klimek@google.com">klimek@google.com</a>]<br>
</div><div class="im HOEnZb">Sent: Thursday, December 20, 2012 2:43 AM<br>
To: <a href="mailto:klimek@google.com">klimek@google.com</a>; Vane, Edwin<br>
</div><div class="im HOEnZb">Cc: <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a>; <a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>; <a href="mailto:silvas@purdue.edu">silvas@purdue.edu</a><br>

Subject: Re: [PATCH] Foundation for Transform registration infrastructure<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">  Sean's main point is my primary question: why do we need to load stuff dynamically?<br>
<br>
  I would expect to have a Transform class at some point, and have main basically look like:<br>
  if (Flag1)<br>
    Transforms.push_back(new T1);<br>
  ...<br>
  and then do something with the vector of transforms we've built - that wouldn't need any plugin infrastructure.<br>
<br>
  PS: regarding my rants - many people in llvm disagree with my positions here :) There's a lot of taste and personal preference to them, so if you agree with my reasoning, cool, but always feel free to argue if you don't agree :) I'm happy to learn new points of view<br>

<br>
<a href="http://llvm-reviews.chandlerc.com/D221" target="_blank">http://llvm-reviews.chandlerc.com/D221</a><br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div></div>