summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MILexer.h
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-07-27 22:42:41 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-07-27 22:42:41 +0000
commit8a1915b04e68168234ca6463025268d364b31223 (patch)
treed33a3ddaa8660542b5d51e6ae68849057b5418f3 /llvm/lib/CodeGen/MIRParser/MILexer.h
parent6c6efa1786aab7b41e6cf28855c2da4728435048 (diff)
downloadbcm5719-llvm-8a1915b04e68168234ca6463025268d364b31223.tar.gz
bcm5719-llvm-8a1915b04e68168234ca6463025268d364b31223.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MILexer.h6
1 files changed, 4 insertions, 2 deletions
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;
}
};
OpenPOWER on IntegriCloud