diff options
author | Alex Lorenz <arphaman@gmail.com> | 2015-08-17 22:06:40 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2015-08-17 22:06:40 +0000 |
commit | a16f624dc3a066e57a424106336a3de6b3962703 (patch) | |
tree | edae5912d6ab8b31c283941c72831805c252db07 /llvm/lib/CodeGen/MIRParser/MIParser.cpp | |
parent | a617c9162dcc23e1b974c7e30509ef4e303fce33 (diff) | |
download | bcm5719-llvm-a16f624dc3a066e57a424106336a3de6b3962703.tar.gz bcm5719-llvm-a16f624dc3a066e57a424106336a3de6b3962703.zip |
MIR Serialization: Serialize the memory operand's alias scope metadata node.
llvm-svn: 245245
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIParser.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp index e076a2d5b5e..271f7f08227 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp @@ -1538,12 +1538,16 @@ bool MIParser::parseMachineMemoryOperand(MachineMemOperand *&Dest) { if (parseMDNode(AAInfo.TBAA)) return true; break; - // TODO: Parse AA Scope metadata. + case MIToken::md_alias_scope: + lex(); + if (parseMDNode(AAInfo.Scope)) + return true; + break; // TODO: Parse AA NoAlias metadata. // TODO: Parse the ranges metadata. // TODO: Report an error on duplicate metadata nodes. default: - return error("expected 'align' or '!tbaa'"); + return error("expected 'align' or '!tbaa' or '!alias.scope'"); } } if (expectAndConsume(MIToken::rparen)) |