search for: targetcostkind

Displaying 1 result from an estimated 1 matches for "targetcostkind".

2020 Apr 28
2
[RFC] Being explicit in the cost model
...Help empower the backends. > Reduce the surface area of the API. > Reduce the dependencies between the layers - of which there are many! My latest patch is an NFC to help address the issue of ambiguity, I have uploaded the patch here: https://reviews.llvm.org/D79002. It's a biggy, adding TargetCostKind as an argument to almost all the get*Cost methods. My hope is that, as well as clarity, it will allow some backends to re-use and correlate costs if they wish. It would also allow adding a hook to query the backend which cost kind is the most important to it, which could then be passed around. But...