[PATCH] D73967: Implement _ExtInt as an extended int type specifier.

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 26 10:17:48 PDT 2021


erichkeane added a comment.

In D73967#2653246 <https://reviews.llvm.org/D73967#2653246>, @keryell wrote:

> In D73967#2653044 <https://reviews.llvm.org/D73967#2653044>, @erichkeane wrote:
>
>> In D73967#2653042 <https://reviews.llvm.org/D73967#2653042>, @keryell wrote:
>>
>>> 
>
>
>
>>> Why do you not allow a type able to represent `{-1, 0}`?
>>
>> Our FPGA team didn't see any value in it, so we didn't propose it to WG14, so we didn't implement it here.  I'm sure a follow-up paper to WG14 would be considered, and if it shows promise/positive reception, we'd welcome a patch here.
>
> It comes from an FPGA tool programmer who knows about HLS *and* modern C++, so probably a very rare specie. :-)
> The typical FPGA programmer and tool writer is often more focused on C, so knows barely nothing about generic programming.
> In the meantime we can probably use C++20 concepts, a C++ wrapping type and some specialization for the 1bit case to handle this negative cases or just have a SYCL-specific fork...
> Probably simpler to have a fork than trying to convince the C committee or FPGA people not understanding C++.

Our FPGA team DOES know HLS and (most of) modern C++, they are the implementers of https://www.intel.com/content/www/us/en/software/programmable/quartus-prime/hls-compiler.html.

That said, I can see potential value (though the SFINAE to get the unsigned vs signed seems easy enough), but would suggest either the WG14 paper, or to suggest it to the authors of the WG14 paper and see what they say.  Feel free to include me in the chain.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73967/new/

https://reviews.llvm.org/D73967



More information about the cfe-commits mailing list