From dc8de2a6b78c4f2d96c7a825a7b61faba3b834b0 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Thu, 6 Aug 2015 16:55:53 +0000 Subject: MIR Serialization: Serialize the 'invariant' machine memory operand flag. llvm-svn: 244230 --- llvm/lib/CodeGen/MIRParser/MIParser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp') diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp index 0c3f5ecce86..36460b3f3eb 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp @@ -1066,8 +1066,11 @@ bool MIParser::parseMemoryOperandFlag(unsigned &Flags) { case MIToken::kw_non_temporal: Flags |= MachineMemOperand::MONonTemporal; break; + case MIToken::kw_invariant: + Flags |= MachineMemOperand::MOInvariant; + break; // TODO: report an error when we specify the same flag more than once. - // TODO: parse the other memory operand flags. + // TODO: parse the target specific memory operand flags. default: llvm_unreachable("The current token should be a memory operand flag"); } -- cgit v1.2.3