IntrinsicTable: De-duplicate returned Intrinsics

Much like sem::Type, it greatly simplifies downstream logic if we can compare sem::Intrinsic pointers to know if they refer to the same intrinsic overload.

Change-Id: If236247cd3979bbde821d9294f304ab85ba4938e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58061
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton
2021-07-15 20:34:21 +00:00
committed by Ben Clayton
parent e54e26d7e8
commit b478f97975
18 changed files with 410 additions and 15 deletions

View File

@@ -51,8 +51,8 @@ struct SamplerTexturePair {
namespace std {
/// Custom std::hash specialization for ttint::inspector::SamplerTexturePair so
/// SamplerTexturePairss be used as keys for std::unordered_map and
/// Custom std::hash specialization for tint::inspector::SamplerTexturePair so
/// SamplerTexturePairs be used as keys for std::unordered_map and
/// std::unordered_set.
template <>
class hash<tint::inspector::SamplerTexturePair> {