summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MIParser.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-12 20:44:16 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-12 20:44:16 +0000
commit46e9558ac6cdf97ccaca60d01fa7fc5b66df6727 (patch)
tree3728d2287ac146af81214cbceb043626c0229711 /llvm/lib/CodeGen/MIRParser/MIParser.cpp
parente24c60eb54c1bb1d1a146da79004c90a1ac2e84d (diff)
downloadbcm5719-llvm-46e9558ac6cdf97ccaca60d01fa7fc5b66df6727.tar.gz
bcm5719-llvm-46e9558ac6cdf97ccaca60d01fa7fc5b66df6727.zip
MIR Serialization: Serialize the stack pseudo source values.
llvm-svn: 244806
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
index afa6ffcc5e4..47a9eaf14c3 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -1121,6 +1121,9 @@ bool MIParser::parseMemoryOperandFlag(unsigned &Flags) {
bool MIParser::parseMemoryPseudoSourceValue(const PseudoSourceValue *&PSV) {
switch (Token.kind()) {
+ case MIToken::kw_stack:
+ PSV = MF.getPSVManager().getStack();
+ break;
case MIToken::kw_constant_pool:
PSV = MF.getPSVManager().getConstantPool();
break;
@@ -1133,7 +1136,7 @@ bool MIParser::parseMemoryPseudoSourceValue(const PseudoSourceValue *&PSV) {
}
bool MIParser::parseMachinePointerInfo(MachinePointerInfo &Dest) {
- if (Token.is(MIToken::kw_constant_pool)) {
+ if (Token.is(MIToken::kw_constant_pool) || Token.is(MIToken::kw_stack)) {
const PseudoSourceValue *PSV = nullptr;
if (parseMemoryPseudoSourceValue(PSV))
return true;
OpenPOWER on IntegriCloud