[PATCH] libgccjit: Add ability to get CPU features

Antoni Boucher bouanto@zoho.com
Thu Nov 9 22:27:47 GMT 2023


Hi.
This patch adds support for getting the CPU features in libgccjit (bug
112466)

There's a TODO in the test:
I'm not sure how to test that gcc_jit_target_info_arch returns the
correct value since it is dependant on the CPU.
Any idea on how to improve this?

Also, I created a CStringHash to be able to have a
std::unordered_set<const char *>. Is there any built-in way of doing
this?

Thanks for the review.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libgccjit-Add-ability-to-get-CPU-features.patch
Type: text/x-patch
Size: 51157 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20231109/d9fc0142/attachment-0001.bin>


More information about the Jit mailing list