diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2015-07-27 22:42:41 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2015-07-27 22:42:41 +0000 |
| commit | 8a1915b04e68168234ca6463025268d364b31223 (patch) | |
| tree | d33a3ddaa8660542b5d51e6ae68849057b5418f3 /llvm/lib/CodeGen/MIRParser/MIParser.h | |
| parent | 6c6efa1786aab7b41e6cf28855c2da4728435048 (diff) | |
| download | bcm5719-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/MIParser.h')
| -rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIParser.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.h b/llvm/lib/CodeGen/MIRParser/MIParser.h index 49530f1a36e..92698f6e6d1 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.h +++ b/llvm/lib/CodeGen/MIRParser/MIParser.h @@ -19,6 +19,7 @@ namespace llvm { +class BasicBlock; class MachineBasicBlock; class MachineInstr; class MachineFunction; @@ -56,6 +57,11 @@ bool parseVirtualRegisterReference(unsigned &Reg, SourceMgr &SM, const SlotMapping &IRSlots, SMDiagnostic &Error); +bool parseIRBlockReference(const BasicBlock *&BB, SourceMgr &SM, + MachineFunction &MF, StringRef Src, + const PerFunctionMIParsingState &PFS, + const SlotMapping &IRSlots, SMDiagnostic &Error); + } // end namespace llvm #endif |

