Home
last modified time | relevance | path

Searched full:token (Results 1 – 25 of 1762) sorted by relevance

12345678910>>...71

/llvm-project/llvm/test/Transforms/Inline/
H A Dconvergence-inline.ll7 ; CHECK-NEXT: [[TOKEN:%.*]] = call token @llvm.experimental.convergence.anchor()
8 ; CHECK-NEXT: call void @f(i32 0) [ "convergencectrl"(token [[TOKEN]]) ]
12 %token = call token @llvm.experimental.convergence.anchor()
13 call void @f(i32 0) [ "convergencectrl"(token %token) ]
20 ; CHECK-NEXT: [[TOKEN:%.*]] = call token
[all...]
/llvm-project/mlir/test/Dialect/Async/
H A Dasync-runtime-ref-counting.mlir3 // CHECK-LABEL: @token
4 func.func private @token() -> !async.token
10 func.func private @take_token(%arg0: !async.token)
13 // CHECK: %[[TOKEN:.*]]: !async.token
14 func.func @token_arg_no_uses(%arg0: !async.token) {
15 // CHECK: async.runtime.drop_ref %[[TOKEN]] {count = 1 : i64}
21 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
22 // CHECK: async.runtime.drop_ref %[[TOKEN]] {count = 1 : i64}
23 %0 = async.runtime.create : !async.token
29 // CHECK: %[[TOKEN:.*]] = call @token
[all …]
H A Dops.mlir4 func.func @identity_token(%arg0: !async.token) -> !async.token {
5 // CHECK: return %arg0 : !async.token
6 return %arg0 : !async.token
16 func.func @empty_async_execute() -> !async.token {
18 %token = async.execute {
22 // CHECK: return %token : !async.token
23 return %token : !async.token
29 %token, %bodyResults = async.execute -> !async.value<f32> {
39 func.func @return_captured_value() -> !async.token {
42 %token, %results = async.execute -> !async.value<f32> {
[all …]
H A Dasync-to-async-runtime.mlir6 %token = async.execute {
11 async.await %token : !async.token
17 // CHECK-SAME: -> !async.token
19 // Create token for return op, and mark a function as a coroutine.
20 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
33 // CHECK: async.runtime.set_available %[[TOKEN]]
47 // CHECK: return %[[TOKEN]]
53 // CHECK: %[[TOKEN:.*]] = call @async_execute_fn_0(%arg0, %arg2, %arg1)
62 async.await %token1 : !async.token
67 // CHECK: async.runtime.await %[[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) {
9 async.runtime.add_ref %arg0 {count = 1 : i64} : !async.token
10 async.runtime.drop_ref %arg0 {count = 1 : i64} : !async.token
16 func.func @cancellable_operations_1(%arg0: !async.token) {
18 async.runtime.add_ref %arg0 {count = 1 : i64} : !async.token
20 call @consume_token(%arg0): (!async.token) -> ()
22 async.runtime.drop_ref %arg0 {count = 1 : i64} : !async.token
28 func.func @cancellable_operations_2(%arg0: !async.token) {
33 async.runtime.add_ref %arg0 {count = 1 : i64} : !async.token
[all …]
/llvm-project/llvm/test/Verifier/
H A Dconvergencectrl-invalid.ll3 ; CHECK: Entry or anchor intrinsic cannot have a convergencectrl token operand.
4 ; CHECK-NEXT: %t04_tok2 = call token
5 ; CHECK: Loop intrinsic must have a convergencectrl token operand.
6 ; CHECK-NEXT: %t04_tok3 = call token
8 %t04_tok1 = call token @llvm.experimental.convergence.anchor()
9 …%t04_tok2 = call token @llvm.experimental.convergence.anchor() [ "convergencectrl"(token %t04_tok1…
10 %t04_tok3 = call token @llvm.experimental.convergence.loop()
15 ; CHECK-NEXT: %t04_tok1 = call token @produce_token()
16 ; CHECK-NEXT: call void @f() [ "convergencectrl"(token %t04_tok1) ]
18 %t04_tok1 = call token @produce_token()
[all …]
H A Dpreallocated-invalid.ll3 declare token @llvm.call.preallocated.setup(i32)
4 declare ptr @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()
17 %cs = call token @llvm.call.preallocated.setup(i32 1)
18 %x = call ptr @llvm.call.preallocated.arg(token %cs, i32 0)
19 call void @foo1(ptr preallocated(i32) %x) ["preallocated"(token %cs)]
29 ; CHECK: "preallocated" argument must be a token from llvm.call.preallocated.setup
36 ; CHECK: "preallocated" argument must be a token from llvm.call.preallocated.setup
[all …]
/llvm-project/clang-tools-extra/pseudo/unittests/
H A DTokenTest.cpp
/llvm-project/mlir/lib/AsmParser/
H A DTypeParser.cpp35 case Token::l_paren: in parseOptionalType()
36 case Token::kw_memref: in parseOptionalType()
37 case Token::kw_tensor: in parseOptionalType()
38 case Token::kw_complex: in parseOptionalType()
39 case Token::kw_tuple: in parseOptionalType()
40 case Token::kw_vector: in parseOptionalType()
41 case Token::inttype: in parseOptionalType()
42 case Token::kw_f4E2M1FN: in parseOptionalType()
43 case Token::kw_f6E2M3FN: in parseOptionalType()
44 case Token in parseOptionalType()
[all...]
H A DAttributeParser.cpp55 case Token::kw_affine_map: { in parseAttribute()
56 consumeToken(Token::kw_affine_map); in parseAttribute()
59 if (parseToken(Token::less, "expected '<' in affine map") || in parseAttribute()
61 parseToken(Token::greater, "expected '>' in affine map")) in parseAttribute()
65 case Token::kw_affine_set: { in parseAttribute()
66 consumeToken(Token::kw_affine_set); in parseAttribute()
69 if (parseToken(Token::less, "expected '<' in integer set") || in parseAttribute()
71 parseToken(Token::greater, "expected '>' in integer set")) in parseAttribute()
77 case Token::l_square: { in parseAttribute()
78 consumeToken(Token in parseAttribute()
617 const Token &token = signAndToken.second; getIntAttrElements() local
660 const Token &token = signAndToken.second; getFloatAttrElements() local
909 Token token = p.getToken(); parseFloatElement() local
1234 Token token = getToken(); parseDistinctAttr() local
[all...]
H A DAsmParserImpl.h34 /// Return the location of the original name token.
54 /// Get the location of the next token and store it into the argument. This
64 // Token Parsing
69 /// Parse a `->` token.
71 return parser.parseToken(Token::arrow, "expected '->'"); in parseArrow()
76 return success(parser.consumeIf(Token::arrow)); in parseOptionalArrow()
79 /// Parse a '{' token.
81 return parser.parseToken(Token::l_brace, "expected '{'"); in parseLBrace()
84 /// Parse a '{' token if present
86 return success(parser.consumeIf(Token in parseOptionalLBrace()
[all...]
/llvm-project/clang/lib/Format/
H A DMacroCallReconstructor.cpp29 // Call \p Call for each token in the unwrapped line given, passing
30 // the token, its parent and whether it is the first token in the line.
55 forEachToken(Line, [&](FormatToken *Token, FormatToken *Parent, bool First, in addLine()
56 unsigned Level) { add(Token, Parent, First, Level); }); in addLine()
70 // Reconstruct the position of the next \p Token, given its parent \p
72 // is the first token in a given unwrapped line.
73 void MacroCallReconstructor::add(FormatToken *Token, in add() argument
77 llvm::dbgs() << "MCR: Token: " << Token->TokenText << ", Parent: " in add()
80 // In order to be able to find the correct parent in the reconstructed token in add()
82 // given token if it is part of the reconstructed token stream. in add()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Doperators-representation-to-alternative.cpp9 …S: :[[@LINE-1]]:12: warning: '||' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
13 …S: :[[@LINE-1]]:12: warning: '&&' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
17 …ES: :[[@LINE-1]]:13: warning: '|' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
21 …ES: :[[@LINE-1]]:13: warning: '&' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
25 …ES: :[[@LINE-1]]:11: warning: '!' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
29 …ES: :[[@LINE-1]]:12: warning: '^' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
33 …ES: :[[@LINE-1]]:11: warning: '~' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
37 …ES: :[[@LINE-1]]:9: warning: '&=' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
41 …ES: :[[@LINE-1]]:9: warning: '|=' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
45 …S: :[[@LINE-1]]:13: warning: '!=' is a traditional token spelling, consider using an alternative t… in testAllTokensToAlternative()
[all …]
H A Doperators-representation-to-traditional.cpp9 …: :[[@LINE-1]]:13: warning: 'or' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
13 … :[[@LINE-1]]:13: warning: 'and' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
17 …[[@LINE-1]]:13: warning: 'bitor' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
21 …[@LINE-1]]:13: warning: 'bitand' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
25 … :[[@LINE-1]]:11: warning: 'not' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
29 … :[[@LINE-1]]:13: warning: 'xor' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
33 …[[@LINE-1]]:11: warning: 'compl' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
37 …[[@LINE-1]]:9: warning: 'and_eq' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
41 …:[[@LINE-1]]:9: warning: 'or_eq' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
45 …[@LINE-1]]:13: warning: 'not_eq' is an alternative token spelling, consider using a traditional to… in testAllTokensToAlternative()
[all …]
/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp405 MIToken Token;
417 /// for the next token.
531 /// Convert the integer literal in the current token into an unsigned integer.
536 /// Convert the integer literal in the current token into an uint64.
541 /// Convert the hexadecimal literal in the current token into an unsigned
547 /// If the current token is of the given kind, consume it and return false.
551 /// If the current token is of the given kind, consume it and return true.
592 CurrentSource.substr(SkipChar), Token, in error()
596 bool MIParser::error(const Twine &Msg) { return error(Token.location(), Msg); } in error()
638 return "<unknown token>"; in expectAndConsume()
396 MIToken Token; global() member in __anon4b70c34e0111::MIParser
2052 getHexUint(const MIToken & Token,APInt & Result) getHexUint() argument
2069 getUnsigned(const MIToken & Token,unsigned & Result,ErrorCallbackType ErrCB) getUnsigned() argument
2177 parseGlobalValue(const MIToken & Token,PerFunctionMIParsingState & PFS,GlobalValue * & GV,ErrorCallbackType ErrCB) parseGlobalValue() argument
3113 parseIRValue(const MIToken & Token,PerFunctionMIParsingState & PFS,const Value * & V,ErrorCallbackType ErrCB) parseIRValue() argument
3663 MIToken Token; parseIRValue() local
[all...]
/llvm-project/clang/lib/Lex/
H A DTokenLexer.cpp1 //===- TokenLexer.cpp - Lex from a token stream ---------------------------===//
25 #include "clang/Lex/Token.h"
39 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI,
73 // creating separate source location entries for each token. in Init()
93 /// Create a TokenLexer for the specified token stream. This does not
94 /// take ownership of the specified token vector.
95 void TokenLexer::Init(const Token *TokArray, unsigned NumToks,
117 // Set HasLeadingSpace/AtStartOfLine so that the first token will be in Init()
139 SmallVectorImpl<Token> &ResultToks, bool HasPasteOperator, MacroInfo *Macro, in MaybeRemoveCommaBeforeVaArgs()
173 // then removal of the comma should produce a placemarker token (i in MaybeRemoveCommaBeforeVaArgs()
[all...]
/llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/
H A DSparseGPUCodegen.cpp147 Value token) { in genAllocMemRef() argument
159 return builder.create<gpu::AllocOp>(loc, TypeRange({memTp, token.getType()}), in genAllocMemRef()
160 token, dynamicSizes, ValueRange()); in genAllocMemRef()
172 Value size, Value token) { in genAllocBuffer() argument
174 return builder.create<gpu::AllocOp>(loc, TypeRange({memTp, token.getType()}), in genAllocBuffer()
175 token, size, ValueRange()); in genAllocBuffer()
180 Value token) { in genAllocBuffer() argument
181 return genAllocBuffer(builder, loc, builder.getI8Type(), size, token); in genAllocBuffer()
186 Value token) { in genDeallocMemRef() argument
187 return builder.create<gpu::DeallocOp>(loc, token in genDeallocMemRef()
193 genCopyMemRef(OpBuilder & builder,Location loc,Value dst,Value src,Value token) genCopyMemRef() argument
519 genSpMat(OpBuilder & builder,Location loc,SparseTensorType & aTp,Type handleTp,Type tokenTp,Value token,Value sz1,Value sz2,Value nseA,Value rowA,Value colA,Value valA,CuSparseFormat format,bool enableRT) genSpMat() argument
603 Value token = genFirstWait(rewriter, loc); rewriteSpMV() local
701 Value token = genFirstWait(rewriter, loc); rewriteSpMM() local
806 Value token = genFirstWait(rewriter, loc); rewriteSpGEMM() local
979 Value token = genFirstWait(rewriter, loc); rewrite2To4SpMM() local
1096 Value token = genFirstWait(rewriter, loc); rewriteSDDMM() local
[all...]
/llvm-project/clang-tools-extra/pseudo/include/clang-pseudo/
H A DToken.h
/llvm-project/clang/test/CodeGenHLSL/convergence/
H A Dfor.hlsl16 // CHECK: [[T0:%[0-9]+]] = call token @llvm.experimental.convergence.entry()
18 // CHECK: [[T1:%[0-9]+]] = call token @llvm.experimental.convergence.loop() [ "convergencectrl"(token [[T0]]) ]
19 // CHECK: call spir_func void @_Z3foov() [[A3:#[0-9]+]] [ "convergencectrl"(token [[T1]]) ]
29 // CHECK: [[T0:%[0-9]+]] = call token @llvm.experimental.convergence.entry()
31 // CHECK: [[T1:%[0-9]+]] = call token @llvm.experimental.convergence.loop() [ "convergencectrl"(token [[T0]]) ]
32 // CHECK: call spir_func noundef i1 @_Z4condv() [[A3]] [ "convergencectrl"(token [[T1]]) ]
34 // CHECK: call spir_func void @_Z3foov() [[A3]] [ "convergencectrl"(token [[T1]]) ]
44 // CHECK: [[T0:%[0-9]+]] = call token
[all...]
/llvm-project/mlir/lib/Tools/PDLL/Parser/
H A DLexer.cpp20 // Token
23 std::string Token::getStringValue() const { in getStringValue()
120 Token Lexer::emitError(SMRange loc, const Twine &msg) { in emitError()
122 return formToken(Token::error, loc.Start.getPointer()); in emitError()
124 Token Lexer::emitErrorAndNote(SMRange loc, const Twine &msg, SMRange noteLoc, in emitErrorAndNote()
127 return formToken(Token::error, loc.Start.getPointer()); in emitErrorAndNote()
129 Token Lexer::emitError(const char *loc, const Twine &msg) { in emitError()
160 Token Lexer::lexToken() { in lexToken()
164 // Check to see if this token is at the code completion location. in lexToken()
166 return formToken(Token::code_complete, tokStart); in lexToken()
[all …]
/llvm-project/llvm/test/Transforms/LoopUnroll/
H A Dconvergent.controlled.ll12 ; CHECK-NEXT: [[ANCHOR:%.*]] = call token @llvm.experimental.convergence.anchor()
15 ; CHECK-NEXT: [[TOK_LOOP:%.*]] = call token @llvm.experimental.convergence.loop() [ "convergence…
18 ; CHECK-NEXT: call void @f() [ "convergencectrl"(token [[TOK_LOOP]]) ]
21 ; CHECK-NEXT: call void @f() [ "convergencectrl"(token [[TOK_LOOP]]) ]
24 ; CHECK-NEXT: call void @f() [ "convergencectrl"(token [[TOK_LOOP]]) ]
28 %anchor = call token @llvm.experimental.convergence.anchor()
33 %tok.loop = call token @llvm.experimental.convergence.loop() [ "convergencectrl"(token %anchor) ]
39 call void @f() [ "convergencectrl"(token %tok.loop) ]
52 ; CHECK-NEXT: [[ANCHOR:%.*]] = call token @llvm.experimental.convergence.anchor()
57 ; CHECK-NEXT: [[TOK_LOOP:%.*]] = call token @llvm.experimental.convergence.loop() [ "convergence…
[all …]
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dstatepoint-cleanup.ll14 ; CHECK-NEXT: [[SAFEPOINT_TOKEN:%.*]] = tail call token (i64, i32, ptr, i32, i32, ...) @llvm.exp…
15 ; CHECK-NEXT: [[B_NEW_1:%.*]] = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token [[…
16 ; CHECK-NEXT: [[B_NEW_2:%.*]] = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token [[…
17 ; CHECK-NEXT: [[D_NEW_1:%.*]] = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token [[…
18 ; CHECK-NEXT: [[D_NEW_2:%.*]] = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token [[…
19 ; CHECK-NEXT: [[D_NEW_3:%.*]] = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token [[…
20 ; CHECK-NEXT: [[D_NEW_4:%.*]] = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token [[…
31 …%safepoint_token = tail call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint…
32 …%b.new.1 = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0,…
33 …%b.new.2 = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0,…
[all …]
/llvm-project/clang/include/clang/Lex/
H A DTokenLexer.h1 //===- TokenLexer.h - Lex from a token buffer -------------------*- C++ -*-===//
24 class Token; variable
28 /// or token stream instead of lexing from a character buffer. This is used for
33 /// The macro we are expanding from. This is null if expanding a token stream.
45 /// a token stream, these are the tokens we are returning. This points into
51 const Token *Tokens;
56 /// This is the index of the next token that Lex will return.
81 // When this is true, the next token appended to the
85 // leading space will be applied to the first token following the macro
91 /// macros (for example) we just point into the token buffer of the macro
[all …]
/llvm-project/llvm/test/CodeGen/AMDGPU/
H A Dconvergence-tokens.ll6 ; CHECK: [[TOKEN:%[0-9]+]]{{[^ ]*}} = CONVERGENCECTRL_ENTRY
7 ; ISEL: {{.*}} SI_CALL_ISEL {{.*}}, @foo, csr_amdgpu, {{.*}}, implicit [[TOKEN]]
8 ; DEADMI: {{.*}} SI_CALL {{.*}}, @foo, csr_amdgpu, {{.*}}, implicit [[TOKEN]]
9 ; GISEL: {{.*}} G_SI_CALL {{.*}}, @foo, csr_amdgpu, {{.*}}, implicit [[TOKEN]]
11 %t = call token @llvm.experimental.convergence.entry()
12 %r = call i32 @foo(i32 %src) [ "convergencectrl"(token %t) ]
17 ; CHECK: [[TOKEN:%[0-9]+]]{{[^ ]*}} = CONVERGENCECTRL_ANCHOR
18 ; ISEL: CONVERGENCECTRL_GLUE [[TOKEN]]
20 ; ISEL: {{.*}} = V_READFIRSTLANE_B32 {{.*}}, implicit [[TOKEN]]
21 … {{.*}} = G_INTRINSIC_CONVERGENT intrinsic(@llvm.amdgcn.readfirstlane){{.*}}, implicit [[TOKEN]]
[all …]
/llvm-project/lldb/tools/debugserver/source/
H A DJSON.cpp227 JSONParser::Token JSONParser::GetToken(std::string &value) { in GetToken()
236 return Token::ObjectStart; in GetToken()
238 return Token::ObjectEnd; in GetToken()
240 return Token::ArrayStart; in GetToken()
242 return Token::ArrayEnd; in GetToken()
244 return Token::Comma; in GetToken()
246 return Token::Colon; in GetToken()
248 return Token::EndOfFile; in GetToken()
253 return Token::True; in GetToken()
261 return Token::False; in GetToken()
[all …]

12345678910>>...71