[PATCH] MIR Serialization: Serialize MBB operands.
Alex Lorenz
arphaman at gmail.com
Mon Jun 22 11:38:27 PDT 2015
Hi dexonsmith, bob.wilson, bogner,
This patch is based on a previous serialization patch that serializes null register operands (http://reviews.llvm.org/D10580).
This patch serializes machine basic block operands.
The following syntax is used for basic block operands:
%bb.<name>
%bb.<index>
The name is printed when the machine basic block has a name, i.e. when its basic block has a name. Otherwise, a number is printed, which is just an index into a list of machine basic blocks for that function.
Example:
JG_1 %bb.if.cond
JG_1 %bb.2
REPOSITORY
rL LLVM
http://reviews.llvm.org/D10608
Files:
lib/CodeGen/MIRParser/MILexer.cpp
lib/CodeGen/MIRParser/MILexer.h
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/MIRParser/MIParser.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/large-index-number-error.mir
test/CodeGen/MIR/X86/machine-basic-block-operands.mir
test/CodeGen/MIR/X86/unknown-machine-basic-block.mir
test/CodeGen/MIR/X86/unknown-named-machine-basic-block.mir
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10608.28137.patch
Type: text/x-patch
Size: 15827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150622/2e636beb/attachment.bin>
More information about the llvm-commits
mailing list