[PATCH] AsmParser: Add a function to parse a standalone type and value
Alex Lorenz
arphaman at gmail.com
Fri Jun 5 11:29:20 PDT 2015
Hi dexonsmith, bogner, bob.wilson,
This patch extends the interface provided by the AsmParser library by adding a function that allows the user to parse a standalone type and value in a given string.
This change would be useful for the MachineIR serialization, as it would allow the MIR parser to parse the constant values in a MachineConstantPool.
This is an example of a MIR fragment that shows several constant pool entries in a machine function:
constants:
- value: 'double 3.250000e+00'
- value: 'float 6.250000e+00'
alignment: 4
REPOSITORY
rL LLVM
http://reviews.llvm.org/D10280
Files:
include/llvm/AsmParser/Parser.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: D10280.27212.patch
Type: text/x-patch
Size: 3824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150605/738c4211/attachment.bin>
More information about the llvm-commits
mailing list