[PATCH] D103491: [ADT] Move DenseMapInfo for ArrayRef/StringRef into respective headers (NFC)

Nikita Popov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 1 13:45:40 PDT 2021


nikic created this revision.
nikic added reviewers: lattner, RKSimon.
Herald added subscribers: foad, dcaballe, cota, teijeong, dexonsmith, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, kerbowa, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, csigg, antiagainst, shauheen, rriddle, mehdi_amini, hiraditya, nhaehnle, jvesely, arsenm.
Herald added a reviewer: rriddle.
nikic requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, stephenneuendorffer, nicolasvasilache.
Herald added projects: clang, MLIR, LLVM.

This is a followup to D103422 <https://reviews.llvm.org/D103422>. The `DenseMapInfo` implementations for `ArrayRef` and `StringRef` are moved into the `ArrayRef.h` and `StringRef.h` headers, which means that these two headers no longer need to be included by `DenseMapInfo.h`.

This required adding quite a few additional includes, as many files were relying on various things pulled in by `ArrayRef.h`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103491

Files:
  clang/include/clang/AST/ComparisonCategories.h
  llvm/include/llvm/ADT/ArrayRef.h
  llvm/include/llvm/ADT/DenseMapInfo.h
  llvm/include/llvm/ADT/StringRef.h
  llvm/include/llvm/IR/PassInstrumentation.h
  llvm/include/llvm/Support/Threading.h
  llvm/lib/CodeGen/AsmPrinter/WinException.h
  llvm/lib/CodeGen/MBFIWrapper.cpp
  llvm/lib/MC/StringTableBuilder.cpp
  llvm/lib/Support/SmallPtrSet.cpp
  llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
  llvm/tools/llvm-c-test/echo.cpp
  mlir/include/mlir/IR/AffineExpr.h
  mlir/include/mlir/IR/DialectInterface.h
  mlir/include/mlir/Support/InterfaceSupport.h
  mlir/include/mlir/Support/StorageUniquer.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103491.349093.patch
Type: text/x-patch
Size: 11319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210601/aca032cc/attachment.bin>


More information about the cfe-commits mailing list