diff options
author | Chris Lattner <clattner@nondot.org> | 2020-04-12 22:15:26 -0700 |
---|---|---|
committer | Chris Lattner <clattner@nondot.org> | 2020-04-13 10:47:04 -0700 |
commit | d63036c0efd2faf164cbf06328277539fad5cd74 (patch) | |
tree | 11beca8e3385a596011db5c4c9545807690861e5 /llvm/lib/CodeGen/MachineStripDebug.cpp | |
parent | 31db1e0bd1ea020046eb7ac2359ced8c7239de1e (diff) | |
download | llvm-d63036c0efd2faf164cbf06328277539fad5cd74.zip llvm-d63036c0efd2faf164cbf06328277539fad5cd74.tar.gz llvm-d63036c0efd2faf164cbf06328277539fad5cd74.tar.bz2 |
Reimplement mlir::Identifier to be a wrapper around 'StringMapEntry*' instead of a wrapper around a 'const char*'. This makes it so strref() can be computed without calling strlen, which is more efficient and less error-prone. While here...
Summary:
..., reimplement DenseMapInfo<mlir::Identifier>::getHashValue in terms of mlir::hash_value(Identifier).
Both of these improvements were suggested by River, thanks!
Reviewers: rriddle!
Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, Joonsoo, grosul1, frgossen, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77999
Diffstat (limited to 'llvm/lib/CodeGen/MachineStripDebug.cpp')
0 files changed, 0 insertions, 0 deletions