From 8a1915b04e68168234ca6463025268d364b31223 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Mon, 27 Jul 2015 22:42:41 +0000 Subject: MIR Serialization: Serialize the unnamed basic block references. This commit serializes the references from the machine basic blocks to the unnamed basic blocks. This commit adds a new attribute to the machine basic block's YAML mapping called 'ir-block'. This attribute contains the actual reference to the basic block. Reviewers: Duncan P. N. Exon Smith llvm-svn: 243340 --- llvm/lib/CodeGen/MIRParser/MILexer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h') diff --git a/llvm/lib/CodeGen/MIRParser/MILexer.h b/llvm/lib/CodeGen/MIRParser/MILexer.h index b84fb743599..06fa1f256dd 100644 --- a/llvm/lib/CodeGen/MIRParser/MILexer.h +++ b/llvm/lib/CodeGen/MIRParser/MILexer.h @@ -66,7 +66,8 @@ struct MIToken { IntegerLiteral, VirtualRegister, ConstantPoolItem, - JumpTableIndex + JumpTableIndex, + IRBlock, }; private: @@ -132,7 +133,8 @@ public: return Kind == IntegerLiteral || Kind == MachineBasicBlock || Kind == StackObject || Kind == FixedStackObject || Kind == GlobalValue || Kind == VirtualRegister || - Kind == ConstantPoolItem || Kind == JumpTableIndex; + Kind == ConstantPoolItem || Kind == JumpTableIndex || + Kind == IRBlock; } }; -- cgit v1.2.3