Displaying 6 results from an estimated 6 matches for "codefrag".
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 : I64SETCCNegCond<setne, I64EQr64>;
def : I64SELECTNegCond<setne, I64EQr64>;
Sebastian
--
Qualco...
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?
...n 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.
Sebastian
--
Qualcomm Innovati...
2012 Jun 20
0
[LLVMdev] How to define macros in a tablegen file?
...ora.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 t...
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 err...
2012 Jun 20
3
[LLVMdev] How to define macros in a tablegen file?
...erence, 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"?
>...