summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MILexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MILexer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MILexer.h b/llvm/lib/CodeGen/MIRParser/MILexer.h
index 1ff7dda1151..79bcb7fce01 100644
--- a/llvm/lib/CodeGen/MIRParser/MILexer.h
+++ b/llvm/lib/CodeGen/MIRParser/MILexer.h
@@ -68,6 +68,7 @@ struct MIToken {
kw_target_flags,
kw_volatile,
kw_non_temporal,
+ kw_invariant,
// Identifier tokens
Identifier,
@@ -130,7 +131,8 @@ public:
}
bool isMemoryOperandFlag() const {
- return Kind == kw_volatile || Kind == kw_non_temporal;
+ return Kind == kw_volatile || Kind == kw_non_temporal ||
+ Kind == kw_invariant;
}
bool is(TokenKind K) const { return Kind == K; }
OpenPOWER on IntegriCloud