mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
MIR Serialization: Serialize the machine basic block live in registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -321,6 +321,14 @@ bool MIRParserImpl::initializeMachineBasicBlock(
|
||||
// TODO: Report an error when adding the same successor more than once.
|
||||
MBB.addSuccessor(SuccMBB);
|
||||
}
|
||||
// Parse the liveins.
|
||||
for (const auto &LiveInSource : YamlMBB.LiveIns) {
|
||||
unsigned Reg = 0;
|
||||
if (parseNamedRegisterReference(Reg, SM, MF, LiveInSource.Value, PFS,
|
||||
IRSlots, Error))
|
||||
return error(Error, LiveInSource.SourceRange);
|
||||
MBB.addLiveIn(Reg);
|
||||
}
|
||||
// Parse the instructions.
|
||||
for (const auto &MISource : YamlMBB.Instructions) {
|
||||
MachineInstr *MI = nullptr;
|
||||
|
Reference in New Issue
Block a user