Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 657) sorted by relevance

12345678910>>...27

/llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/
H A DTokenTest.cpp24 MATCHER_P2(token, Text, Kind, "") {
51 token("#", tok::hash), in TEST()
53 token("<", tok::less), in TEST()
55 token(".", tok::period), in TEST()
57 token(">", tok::greater), in TEST()
61 token("(", tok::l_paren), in TEST()
66 token(";", tok::semi), in TEST()
76 token("#", tok::hash), in TEST()
78 token("<", tok::less), in TEST()
80 token(".", tok::period), in TEST()
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Async/
H A Dasync-runtime-ref-counting.mlir4 func.func private @token() -> !async.token
31 %0 = call @token() : () -> !async.token
75 %token = async.runtime.create : !async.token
77 return %token : !async.token
97 return %token : !async.token
118 return %token : !async.token
146 return %token : !async.token
187 %token = call @token() : () -> !async.token
205 %token = call @token() : () -> !async.token
220 %token = call @token() : () -> !async.token
[all …]
H A Dops.mlir4 func.func @identity_token(%arg0: !async.token) -> !async.token {
22 // CHECK: return %token : !async.token
23 return %token : !async.token
46 // CHECK: return %token : !async.token
47 return %token : !async.token
69 // CHECK: return %token : !async.token
70 return %token : !async.token
80 // CHECK: return %token : !async.token
81 return %token : !async.token
91 // CHECK: return %token : !async.token
[all …]
H A Dasync-runtime-ref-counting-opt.mlir3 func.func private @consume_token(%arg0: !async.token)
6 func.func @cancellable_operations_0(%arg0: !async.token) {
16 func.func @cancellable_operations_1(%arg0: !async.token) {
20 call @consume_token(%arg0): (!async.token) -> ()
34 async.runtime.await %arg0 : !async.token
36 async.runtime.await %arg0 : !async.token
38 async.runtime.await %arg0 : !async.token
48 call @consume_token(%arg0): (!async.token) -> ()
52 async.runtime.await %arg0 : !async.token
62 call @consume_token(%arg0): (!async.token) -> ()
[all …]
H A Dasync-to-async-runtime-eliminate-blocking.mlir174 // CHECK-SAME: (%[[ARG:.*]]: !async.token) -> !async.token
184 async.await %arg : !async.token
191 %r = async.runtime.create : !async.token
194 … CHECK: %[[RETURNED_TO_CALLER:.*]] = call @recursive(%[[GIVEN]]) : (!async.token) -> !async.token
220 // CHECK-SAME: (%[[ARG:.*]]: !async.token) -> !async.token
230 async.await %arg : !async.token
237 %r = async.runtime.create : !async.token
240 …ECK: %[[RETURNED_TO_CALLER:.*]] = call @corecursive2(%[[GIVEN]]) : (!async.token) -> !async.token
266 // CHECK-SAME: (%[[ARG:.*]]: !async.token) -> !async.token
276 async.await %arg : !async.token
[all …]
H A Dasync-to-async-runtime.mlir6 %token = async.execute {
11 async.await %token : !async.token
17 // CHECK-SAME: -> !async.token
74 // CHECK-SAME: -> !async.token
114 // Set token available if the token is not in the error state.
128 %token = async.execute {
194 async.add_to_group %token, %0 : !async.token
337 %token = async.execute {
341 async.await %token : !async.token
421 %token = async.execute {
[all …]
H A Druntime.mlir4 func.func @create_token() -> !async.token {
5 // CHECK: %0 = async.runtime.create : !async.token
6 %0 = async.runtime.create : !async.token
7 // CHECK: return %0 : !async.token
8 return %0 : !async.token
44 func.func @set_token_error(%arg0: !async.token) {
46 async.runtime.set_error %arg0 : !async.token
79 func.func @await_token(%arg0: !async.token) {
81 async.runtime.await %arg0 : !async.token
156 func.func @add_ref(%arg0: !async.token) {
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_symbolizer_test.cpp20 char *token; in TEST() local
24 EXPECT_STREQ("a", token); in TEST()
26 InternalFree(token); in TEST()
29 EXPECT_STREQ("aaa", token); in TEST()
31 InternalFree(token); in TEST()
35 int token; in TEST() local
37 EXPECT_EQ(123, token); in TEST()
42 uptr token; in TEST() local
44 EXPECT_EQ(123U, token); in TEST()
49 char *token; in TEST() local
[all …]
/llvm-project-15.0.7/llvm/test/MC/Mips/
H A Dmacro-aliases-invalid-wrong-error.s10 subu $4, $4, %lo($start) # O32: [[@LINE]]:{{[0-9]+}}: error: unexpected token in argument list
11 … # N64: [[@LINE-1]]:{{[0-9]+}}: error: unexpected token in argument list
12 subu $4, $4, $start # O32: [[@LINE]]:{{[0-9]+}}: error: unexpected token in argument list
13 … # N64: [[@LINE-1]]:{{[0-9]+}}: error: unexpected token in argument list
14 subu $4, $a4, $a4 # O32: [[@LINE]]:{{[0-9]+}}: error: unexpected token in argument list
15 subu $4, $4, %hi(end) # O32: [[@LINE]]:{{[0-9]+}}: error: unexpected token in argument list
16 … # N64: [[@LINE-1]]:{{[0-9]+}}: error: unexpected token in argument list
17 subu $4, $4, end + 4 # O32: [[@LINE]]:{{[0-9]+}}: error: unexpected token in argument list
19 subu $4, $4, end # O32: [[@LINE]]:{{[0-9]+}}: error: unexpected token in argument list
21 subu $4, $4, sp # O32: [[@LINE]]:{{[0-9]+}}: error: unexpected token in argument list
[all …]
/llvm-project-15.0.7/libc/test/src/string/
H A Dstrtok_test.cpp55 ASSERT_STREQ(token, "12"); in TEST()
56 token = __llvm_libc::strtok(nullptr, ",."); in TEST()
57 ASSERT_STREQ(token, "34"); in TEST()
58 token = __llvm_libc::strtok(nullptr, ",."); in TEST()
59 ASSERT_STREQ(token, "56"); in TEST()
61 ASSERT_STREQ(token, nullptr); in TEST()
65 ASSERT_STREQ(token, nullptr); in TEST()
71 ASSERT_STREQ(token, "ab"); in TEST()
73 ASSERT_STREQ(token, "cd"); in TEST()
75 ASSERT_STREQ(token, "ef"); in TEST()
[all …]
H A Dstrtok_r_test.cpp100 ASSERT_STREQ(token, "12"); in TEST()
101 token = __llvm_libc::strtok_r(nullptr, ",.", &reserve); in TEST()
102 ASSERT_STREQ(token, "34"); in TEST()
103 token = __llvm_libc::strtok_r(nullptr, ",.", &reserve); in TEST()
104 ASSERT_STREQ(token, "56"); in TEST()
106 ASSERT_STREQ(token, nullptr); in TEST()
110 ASSERT_STREQ(token, nullptr); in TEST()
117 ASSERT_STREQ(token, "ab"); in TEST()
119 ASSERT_STREQ(token, "cd"); in TEST()
121 ASSERT_STREQ(token, "ef"); in TEST()
[all …]
/llvm-project-15.0.7/llvm/test/Verifier/
H A Dpreallocated-invalid.ll3 declare token @llvm.call.preallocated.setup(i32)
4 declare i8* @llvm.call.preallocated.arg(token, i32)
5 declare void @llvm.call.preallocated.teardown(token)
7 ; Fake LLVM intrinsic to return a token
8 declare token @llvm.what()
39 %cs = call token @llvm.what()
40 call void @foo0() ["preallocated"(token %cs)]
48 call void @foo0() ["preallocated"(token %cs0, token %cs1)]
56 call void @foo0() ["preallocated"(token %cs0), "preallocated"(token %cs1)]
116 %t = call token @llvm.what()
[all …]
H A Dpreallocated-valid.ll3 declare token @llvm.call.preallocated.setup(i32)
4 declare i8* @llvm.call.preallocated.arg(token, i32)
5 declare void @llvm.call.preallocated.teardown(token)
16 %cs = call token @llvm.call.preallocated.setup(i32 1)
24 %cs = call token @llvm.call.preallocated.setup(i32 1)
32 %cs = call token @llvm.call.preallocated.setup(i32 1)
38 %cs = call token @llvm.call.preallocated.setup(i32 2)
59 %cs = call token @llvm.call.preallocated.setup(i32 1)
60 call void @llvm.call.preallocated.teardown(token %cs)
65 %cs = call token @llvm.call.preallocated.setup(i32 1)
[all …]
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/
H A Dstrtok.c33 char *token; in test1() local
37 token = strtok(s, token_delimiter); in test1()
44 char *token; in test2() local
47 token = strtok(s, token_delimiter); in test2()
48 assert(strcmp(token, "a") == 0); in test2()
56 char *token; in test3() local
60 token = strtok(s, token_delimiter); in test3()
66 char *token; in test4() local
70 assert(token == NULL); in test4()
75 char *token; in test5() local
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dstatepoint-cleanup.ll111 ; CHECK-NEXT: [[LPAD:%.*]] = landingpad token
148 %lpad = landingpad token
150 …%lpb.new.1 = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %lpad, i32 0, i32 …
151 …%lpb.new.2 = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %lpad, i32 0, i32 …
152 …%lpd.new.1 = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %lpad, i32 0, i32 …
175 ; CHECK-NEXT: [[LPAD:%.*]] = landingpad token
197 %lpad = landingpad token
220 ; CHECK-NEXT: [[LPAD:%.*]] = landingpad token
242 %lpad = landingpad token
254 declare token @llvm.experimental.gc.statepoint.p0f_isVoidf(i64, i32, void ()*, i32, i32, ...)
[all …]
H A Dstatepoint.ll74 ; CHECK-NEXT: [[LPAD:%.*]] = landingpad token
89 %lpad = landingpad token
91 %pnew2 = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %lpad, i32 0, i32 0)
104 ; CHECK-NEXT: [[LPAD:%.*]] = landingpad token
117 %lpad = landingpad token
132 ; CHECK-NEXT: [[LPAD:%.*]] = landingpad token
145 %lpad = landingpad token
160 ; CHECK-NEXT: [[LPAD:%.*]] = landingpad token
173 %lpad = landingpad token
180 declare token @llvm.experimental.gc.statepoint.p0f_isVoidf(i64, i32, void ()*, i32, i32, ...)
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dpreallocated.ll3 declare token @llvm.call.preallocated.setup(i32)
4 declare ptr @llvm.call.preallocated.arg(token, i32)
16 %t = call token @llvm.call.preallocated.setup(i32 1)
26 %t = call token @llvm.call.preallocated.setup(i32 1)
39 %t = call token @llvm.call.preallocated.setup(i32 1)
57 %t = call token @llvm.call.preallocated.setup(i32 1)
74 %t = call token @llvm.call.preallocated.setup(i32 2)
88 %t = call token @llvm.call.preallocated.setup(i32 1)
108 %t1 = call token @llvm.call.preallocated.setup(i32 1)
137 %t = call token @llvm.call.preallocated.setup(i32 1)
[all …]
H A Dstatepoint-invoke.ll19 …%obj.relocated = call coldcc ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %0, i32 0, i…
27 %landing_pad = landingpad token
47 %ret_val = call ptr addrspace(1) @llvm.experimental.gc.result.p1(token %0)
51 %landing_pad = landingpad token
92 %landing_pad = landingpad token
98 %landing_pad1 = landingpad token
116 %landing_pad = landingpad token
137 %landing_pad = landingpad token
143 declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)
145 declare ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token, i32, i32)
[all …]
/llvm-project-15.0.7/llvm/test/MC/Mips/mt/
H A Dmftr-mttr-aliases-invalid-wrong-error.s6 mftc0 0($4), $5 # CHECK: error: unexpected token in argument list
7 mftc0 0($4), $5, 1 # CHECK: error: unexpected token in argument list
8 mftgpr 0($4), $5 # CHECK: error: unexpected token in argument list
9 mftlo 0($3) # CHECK: error: unexpected token in argument list
10 mftlo 0($3), $ac1 # CHECK: error: unexpected token in argument list
11 mfthi 0($3) # CHECK: error: unexpected token in argument list
12 mfthi 0($3), $ac1 # CHECK: error: unexpected token in argument list
13 mftacx 0($3) # CHECK: error: unexpected token in argument list
14 mftacx 0($3), $ac1 # CHECK: error: unexpected token in argument list
15 mftdsp 0($4) # CHECK: error: unexpected token in argument list
[all …]
/llvm-project-15.0.7/llvm/utils/lit/lit/
H A DBooleanExpression.py44 self.token = None
63 token = m.group(1)
65 yield token
67 def quote(self, token): argument
71 return repr(token)
74 if self.token == t:
81 if self.token == t:
89 def isMatchExpression(token): argument
90 if (token is BooleanExpression.END or token == '&&' or token == '||' or
91 token == '!' or token == '(' or token == ')'):
[all …]
/llvm-project-15.0.7/mlir/lib/ExecutionEngine/
H A DAsyncRuntime.cpp242 return token; in mlirAsyncRuntimeCreateToken()
265 auto onTokenReady = [group, token]() { in mlirAsyncRuntimeAddTokenToGroup()
267 if (State(token->state).isError()) in mlirAsyncRuntimeAddTokenToGroup()
314 token->state = state; in setTokenState()
315 token->cv.notify_all(); in setTokenState()
316 for (auto &awaiter : token->awaiters) in setTokenState()
322 token->dropRef(); in setTokenState()
352 setTokenState(token, State::kError); in mlirAsyncRuntimeSetTokenError()
360 return State(token->state).isError(); in mlirAsyncRuntimeIsTokenError()
374 token->cv.wait( in mlirAsyncRuntimeAwaitToken()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/Coroutines/
H A Dcoro-save-nomerge.ll4 declare token @llvm.coro.save(ptr) #0
5 declare i8 @llvm.coro.suspend(token, i1)
13 ; CHECK-NEXT: [[TMP0:%.*]] = call token @llvm.coro.save(ptr null)
28 %0 = call token @llvm.coro.save(ptr null)
29 %1 = call i8 @llvm.coro.suspend(token %0, i1 false)
33 %2 = call token @llvm.coro.save(ptr null)
34 %3 = call i8 @llvm.coro.suspend(token %2, i1 true)
62 %0 = call token @llvm.coro.save(ptr null)
63 %1 = call i8 @llvm.coro.suspend(token %0, i1 false)
67 %2 = call token @llvm.coro.save(ptr null)
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/EarlyCSE/
H A Dgc_relocate.ll17 …%a = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
18 …%b = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
38 …%a = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
40 …%b = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
109 ; CHECK-NEXT: [[LANDING_PAD:%.*]] = landingpad token
122 %landing_pad = landingpad token
124 %out1 = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %landing_pad, i32 0, i32 0)
148 …%a = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
152 …%b = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
157 declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/GVN/
H A Dgc_relocate.ll17 …%a = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 0, i…
18 …%b = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 0, i…
38 …%a = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 0, i…
40 …%b = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 0, i…
107 ; CHECK-NEXT: [[LANDING_PAD:%.*]] = landingpad token
120 %landing_pad = landingpad token
122 …%out1 = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %landing_pad, i32 0, i32…
146 …%a = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 0, i…
150 …%b = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 0, i…
155 declare token @llvm.experimental.gc.statepoint.p0f_isVoidf(i64, i32, void ()*, i32, i32, ...)
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Language/ClangCommon/
H A DClangHighlighter.cpp24 bool ClangHighlighter::isKeyword(llvm::StringRef token) const { in isKeyword()
25 return keywords.find(token) != keywords.end(); in isKeyword()
54 if (token.is(tok::comment)) { in determineClangStyle()
58 } else if (in_pp_directive || token.getKind() == tok::hash) { in determineClangStyle()
63 } else if (tok::isStringLiteral(token.getKind())) in determineClangStyle()
65 else if (tok::isLiteral(token.getKind())) in determineClangStyle()
70 switch (token.getKind()) { in determineClangStyle()
193 Token token; in Highlight() local
197 exit = lex.LexFromRawLexer(token); in Highlight()
219 if (token.isAnnotation()) in Highlight()
[all …]

12345678910>>...27