[llvm-dev] Using single register class in Pat conversion in XXXInstrInfo.td

vivek pandya via llvm-dev llvm-dev at lists.llvm.org
Tue May 16 01:57:15 PDT 2017


>
>
> You can't. Type inference for instruction selection requires that the
> final types in a pattern are exact (i.e. that it infers a single type
> for each node in the pattern), regardless of the output pattern. Since
> GR32 allows multiple types, you need to specify the two input patterns
> separately.
>
> -Krzysztof
>
>  I think we can make table gen generate pattern with complete type
information (when type is not specify for some input/output parameter) so
that code is less. I am not sure apart from me anyone want such feature.
But if it is good to have then I can look into it.
-Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170516/19c0164f/attachment.html>


More information about the llvm-dev mailing list