[llvm-commits] [LLVMdev] How to define macros in a tablegen file?

Villmow, Micah Micah.Villmow at amd.com
Wed Jun 20 13:40:51 PDT 2012


Possible to add a test case?

Micah

> -----Original Message-----
> From: Sebastian Pop [mailto:spop at codeaurora.org]
> Sent: Wednesday, June 20, 2012 1:40 PM
> To: Villmow, Micah
> Cc: llvmdev at cs.uiuc.edu; llvm-commits at cs.uiuc.edu
> Subject: Re: [LLVMdev] How to define macros in a tablegen file?
> 
> On Wed, Jun 20, 2012 at 12:34 PM, Sebastian Pop <spop at codeaurora.org>
> wrote:
> > On Wed, Jun 20, 2012 at 12:26 PM, Sebastian Pop <spop at codeaurora.org>
> wrote:
> >> For reference, here is how the SPU port is using code and pattern
> fragments:
> >>
> >> // Holder of code fragments (you'd think this'd already be in // a
> td
> >> file somewhere... :-)
> >
> > And this comment makes me think, shouldn't this class CodeFrag be
> > included in the same place where PatFrag is declared:
> >
> > ./include/llvm/Target/TargetSelectionDAG.td:544:class PatFrag<dag
> ops,
> > dag frag, code pred = [{}],
> >
> > such that we get it included through "llvm/Target/Target.td"?
> >
> > I will prepare a patch for this.
> >
> 
> Please see the attached patch.  Ok to commit?
> 
> Thanks,
> Sebastian
> --
> Qualcomm Innovation Center, Inc is a member of Code Aurora Forum





More information about the llvm-commits mailing list