aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorZhengyang Liu <liuz@cs.utah.edu>2020-11-24 14:55:24 -0700
committerZhengyang Liu <liuz@cs.utah.edu>2020-11-25 17:33:51 -0700
commit75f50e15bf8fff6fba1d4678adedd33ef6a945e5 (patch)
treeb9793ec3e05ba630c0354c13aa443a688f5a21e3 /llvm/lib/AsmParser/LLLexer.cpp
parent3fb0879867d7039cb61ffb6287ac17ac949adfa9 (diff)
downloadllvm-75f50e15bf8fff6fba1d4678adedd33ef6a945e5.zip
llvm-75f50e15bf8fff6fba1d4678adedd33ef6a945e5.tar.gz
llvm-75f50e15bf8fff6fba1d4678adedd33ef6a945e5.tar.bz2
Adding PoisonValue for representing poison value explicitly in IR
Define ConstantData::PoisonValue. Add support for poison value to LLLexer/LLParser/BitcodeReader/BitcodeWriter. Add support for poison value to llvm-c interface. Add support for poison value to OCaml binding. Add m_Poison in PatternMatch. Differential Revision: https://reviews.llvm.org/D71126
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r--llvm/lib/AsmParser/LLLexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp
index b7e3a12..baabd55 100644
--- a/llvm/lib/AsmParser/LLLexer.cpp
+++ b/llvm/lib/AsmParser/LLLexer.cpp
@@ -531,6 +531,7 @@ lltok::Kind LLLexer::LexIdentifier() {
KEYWORD(undef);
KEYWORD(null);
KEYWORD(none);
+ KEYWORD(poison);
KEYWORD(to);
KEYWORD(caller);
KEYWORD(within);