mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
3deb8be573
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". Differential Revision: http://reviews.llvm.org/D14581 llvm-svn: 252811
12 lines
275 B
LLVM
12 lines
275 B
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder %s
|
|
; Basic smoke test for token type.
|
|
|
|
; CHECK: declare void @llvm.token.foobar(token)
|
|
declare void @llvm.token.foobar(token)
|
|
|
|
define void @f() {
|
|
call void @llvm.token.foobar(token none)
|
|
ret void
|
|
}
|