search for: codefragment

Displaying 6 results from an estimated 6 matches for "codefragment".

2012 Jun 20
0
[LLVMdev] How to define macros in a tablegen file?
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... :-) class CodeFrag<dag frag> { dag Fragment = frag; } class I64SETCCNegCond<PatFrag cond, CodeFrag compare>: Pat<(cond R64C:$rA, R64C:$rB), (XORIr32 compare.Fragment, -1)>; def :
2012 Jun 20
3
[LLVMdev] How to define macros in a tablegen file?
Hi Micah, On Tue, Jun 19, 2012 at 6:29 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote: > If the patterns only include SDNodes, then pattern fragments will work. > > I might be wrong, but I've yet to find a way to do it with machine instructions, which is what you seem to have here. I found in the Cell SPU port: lib/Target/CellSPU/SPUMathInstr.td some examples using code
2012 Jun 20
2
[LLVMdev] How to define macros in a tablegen file?
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
2012 Jun 20
0
[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... :-) > >
2009 Jan 21
1
[LLVMdev] Errors while building and installation of llvm-1.9
...LVM/llvm-1.9/utils/TableGen/FileLexer.l:33:24: error: FileParser.h: No such file or directory /home/baburao/Desktop/LLVM/llvm-1.9/utils/TableGen/FileLexer.l:186: error: 'Filelval' was not declared in this scope /home/baburao/Desktop/LLVM/llvm-1.9/utils/TableGen/FileLexer.l:187: error: 'CODEFRAGMENT' was not declared in this scppe. g++: /home/baburao/Desktop/LLVM/llvm-1.9/utils/TableGen/FileParser.cpp: No such file or directory g++: no input files make[2]: *** [/home/baburao/Desktop/LLVM/llvm-1.9/utils/TableGen/Release/FileParser.o] Error 1 Target `all' not remade because of errors....
2012 Jun 20
3
[LLVMdev] How to define macros in a tablegen file?
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