This will help in using CTAD with IRBuilder.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
For the uninitiated, could you provide an example of what practical impact this would have?
We have a policy that classes that are meant to be used in CTAD should have at least one deduction guide. There is a warning (-Wctad-maybe-unsupported) that was added to LLVM build options to warn about using CTAD with classes that may not have been intended to be auto-deduced. The practical impact of this change would be that we could "officially" use IRBuilder without explicitly specifying template argument (in compliance with the CTAD policy).
Maybe cover it with a unit test (or if it can be tested with a static_assert, that'd be great - but not sure it can)? Or not, not sure the guides are sufficiently interesting.
Do you have particular use cases in mind?
The use case for me was not having to write IRBuilder<InstSimplifyFolder>. Since we need at least one guide for CTAD, I added them for each constructor.