Switch ResourceHandle to use StringRef when storing container, name, and device strings (NFC).
These are never created and instead are referencing attributes from an op. PiperOrigin-RevId: 345028070 Change-Id: Iea40d9ac930214c328746e59283b8ba90b249a2e
This commit is contained in:
parent
2de460a15c
commit
d10afb111a
@ -82,9 +82,9 @@ struct ResourceHandle {
|
|||||||
// Make ResourceHandle hashable.
|
// Make ResourceHandle hashable.
|
||||||
friend ::llvm::hash_code hash_value(const ResourceHandle& resource_handle);
|
friend ::llvm::hash_code hash_value(const ResourceHandle& resource_handle);
|
||||||
|
|
||||||
std::string container;
|
StringRef container;
|
||||||
std::string name;
|
StringRef name;
|
||||||
std::string device;
|
StringRef device;
|
||||||
Operation* op = nullptr;
|
Operation* op = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user