[PATCH] AsmParser: Extend the API to make the mappings from the numbers in the source to unnamed global values accessible to the library users.

Alex Lorenz arphaman at gmail.com
Thu Jun 18 14:59:23 PDT 2015


Hi dexonsmith, bob.wilson, bogner,

This patch creates a new SlotMapping struct in the AsmParser library which can be passed into the publicly accessible parsing functions in order to extract the data structures that map from numbers to global values and metadata nodes.

This patch would be useful for MIR serialization, as it would allow the MIR parser to lookup global values by their number and metadata nodes by their number.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10551

Files:
  include/llvm/AsmParser/Parser.h
  include/llvm/AsmParser/SlotMapping.h
  lib/AsmParser/LLParser.cpp
  lib/AsmParser/LLParser.h
  lib/AsmParser/Parser.cpp
  unittests/AsmParser/AsmParserTest.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10551.27965.patch
Type: text/x-patch
Size: 12052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150618/8b276127/attachment.bin>


More information about the llvm-commits mailing list