aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-11-15 00:03:14 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-11-15 00:03:14 +0000
commit9c884e495c83e73c4cc8768adc1572fcf582c08c (patch)
treeb06efbd22911ec0d3129d67defd56d849a561184 /llvm/lib/CodeGen/MIRParser/MIRParser.cpp
parent3ee54a693394c3e00cd0357650665fed4cf94695 (diff)
downloadllvm-9c884e495c83e73c4cc8768adc1572fcf582c08c.zip
llvm-9c884e495c83e73c4cc8768adc1572fcf582c08c.tar.gz
llvm-9c884e495c83e73c4cc8768adc1572fcf582c08c.tar.bz2
MIRParser: Add support for parsing vreg reg alloc hints
Reviewers: qcolombet, MatzeB Subscribers: wdng, llvm-commits Differential Revision: https://reviews.llvm.org/D26573 llvm-svn: 286911
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIRParser.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIRParser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
index d95caf8..f6a403b 100644
--- a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
@@ -439,8 +439,9 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
if (Info.Kind != VRegInfo::NORMAL)
return error(VReg.Class.SourceRange.Start,
Twine("preferred register can only be set for normal vregs"));
- if (parseNamedRegisterReference(PFS, Info.PreferredReg,
- VReg.PreferredRegister.Value, Error))
+
+ if (parseRegisterReference(PFS, Info.PreferredReg,
+ VReg.PreferredRegister.Value, Error))
return error(Error, VReg.PreferredRegister.SourceRange);
}
}