[PATCH] D14581: [IR] Add support for empty tokens
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 11:45:04 PST 2015
majnemer created this revision.
majnemer added reviewers: rnk, JosephTremoulet, andrew.w.kaylor.
majnemer added a subscriber: llvm-commits.
When working with tokens, it is often the case that one has instructions
which consume a token and produce a new token. Currently, we have no
mechanism to represent an initial token state.
Instead, we can create a notional "empty token" by inventing a new
constant which captures the semantics we would like. This new constant
is called ConstantTokenNone and is written textually as "token none".
http://reviews.llvm.org/D14581
Files:
docs/LangRef.rst
include/llvm-c/Core.h
include/llvm/IR/Constants.h
include/llvm/IR/Value.def
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/AsmParser/LLToken.h
lib/IR/AsmWriter.cpp
lib/IR/Constants.cpp
lib/IR/LLVMContextImpl.cpp
lib/IR/LLVMContextImpl.h
lib/Transforms/IPO/MergeFunctions.cpp
test/Assembler/token.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14581.39954.patch
Type: text/x-patch
Size: 10222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151111/c1afa1f9/attachment.bin>
More information about the llvm-commits
mailing list