<div dir="ltr">Did you add the type to include llvm/CodeGen/ValueTypes.td and utils/TableGen/CodeGenTarget.cpp?<div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 5, 2016 at 2:26 PM, Martin J. O'Riordan via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-IE" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif">I have been able to adapt the main LLVM sources to work with vectors of 16 x FP16 values and I have introduced the ‘</span><span style="font-size:12pt;font-family:'Courier New'">v16f16</span><span style="font-size:12pt;font-family:'Book Antiqua',serif">’ data type to CLang and LLVM, but I am stumped on how to get TableGen to recognise this type.  At the moment I am trying to optimise the calling convention code, and whenever I refer to ‘</span><span style="font-size:12pt;font-family:'Courier New'">v16f16</span><span style="font-size:12pt;font-family:'Book Antiqua',serif">’ I get a crash in TableGen (unrecognised type).  Unfortunately I haven’t got my head around the innards of TableGen yet, so I am asking if anyone has any advice on how to add a new vector data type to TableGen?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif">The main reason I need this is that OpenCL supports vectors with 16 elements for all supported scalar types, and the SHAVE processor does support FP16 (aka ‘</span><span style="font-size:12pt;font-family:'Courier New'">half</span><span style="font-size:12pt;font-family:'Book Antiqua',serif">’) data types.  Although we don’t natively support 16 x FP16, I would like to optimise how values of this type are passed and returned; so any advice is appreciated.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif">I have the same problem with ‘</span><span style="font-size:12pt;font-family:'Courier New'">v16f64</span><span style="font-size:12pt;font-family:'Book Antiqua',serif">’, although this type does not occur in any real code that I have found outside the OpenCL test-suite.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif">            MartinO<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12pt;font-family:'Book Antiqua',serif"><u></u> <u></u></span></p></div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">~Craig</div>
</div></div>