Home
last modified time | relevance | path

Searched +full:- +full:- +full:token (Results 1 – 25 of 1024) sorted by relevance

12345678910>>...41

/llvm-project/llvm/test/Transforms/Inline/
H A Dconvergence-inline.ll2 ; RUN: opt -passes='cgscc(inline)' -S %s | FileCheck %s
5 ; CHECK-LABEL: @nonconvergent_callee(
6 ; CHECK-NEXT: entry:
7 ; CHECK-NEXT: [[TOKEN:%.*]] = call token @llvm.experimental.convergence.anchor()
8 ; CHECK-NEXT: call void @f(i32 0) [ "convergencectrl"(token [[TOKEN]]) ]
[all...]
/llvm-project/mlir/test/Dialect/Async/
H A Dasync-runtime-ref-counting.mlir1 // RUN: mlir-opt %s -async-runtime-ref-counting | FileCheck %s
3 // CHECK-LABEL: @token
4 func.func private @token() -> !async.token
6 // CHECK-LABEL: @cond
7 func.func private @cond() -> i1
9 // CHECK-LABEL: @take_token
10 func.func private @take_token(%arg0: !async.token)
12 // CHECK-LABEL: @token_arg_no_uses
13 // CHECK: %[[TOKEN:.*]]: !async.token
14 func.func @token_arg_no_uses(%arg0: !async.token) {
[all …]
H A Dops.mlir1 // RUN: mlir-opt %s | FileCheck %s
3 // CHECK-LABEL: @identity_token
4 func.func @identity_token(%arg0: !async.token) -> !async.token {
5 // CHECK: return %arg0 : !async.token
6 return %arg0 : !async.token
9 // CHECK-LABEL: @identity_value
10 func.func @identity_value(%arg0 : !async.value<f32>) -> !async.value<f32> {
15 // CHECK-LABEL: @empty_async_execute
16 func.func @empty_async_execute() -> !async.token {
18 %token = async.execute {
[all …]
H A Dasync-to-async-runtime.mlir1 // RUN: mlir-opt %s -split-input-file -async-func-to-async-runtime \
2 // RUN: -async-to-async-runtime | FileCheck %s --dump-input=always
4 // CHECK-LABEL: @execute_no_async_args
6 %token = async.execute {
11 async.await %token : !async.token
16 // CHECK-LABEL: func private @async_execute_fn
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
28 // CHECK-SAME: ^[[SUSPEND:.*]], ^[[RESUME:.*]], ^[[DESTROY:.*]]
[all …]
H A Dasync-runtime-ref-counting-opt.mlir1 // RUN: mlir-opt %s -async-runtime-ref-counting-opt | FileCheck %s
3 func.func private @consume_token(%arg0: !async.token)
5 // CHECK-LABEL: @cancellable_operations_0
6 func.func @cancellable_operations_0(%arg0: !async.token) {
7 // CHECK-NOT: async.runtime.add_ref
8 // CHECK-NOT: async.runtime.drop_ref
9 async.runtime.add_ref %arg0 {count = 1 : i64} : !async.token
10 async.runtime.drop_ref %arg0 {count = 1 : i64} : !async.token
15 // CHECK-LABEL: @cancellable_operations_1
16 func.func @cancellable_operations_1(%arg0: !async.token) {
[all …]
/llvm-project/llvm/test/Verifier/
H A Dconvergencectrl-invalid.ll1 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
3 ; 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) ]
[all …]
/llvm-project/clang-tools-extra/pseudo/unittests/
H A DTokenTest.cpp
/llvm-project/mlir/lib/AsmParser/
H A DTypeParser.cpp1 //===- TypeParser.cpp - MLIR Type Parser Implementation --------
[all...]
H A DAttributeParser.cpp1 //===- AttributeParser.cpp - MLIR Attribute Parser Implementation --------
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.h1 //===- AsmParserImpl.h - MLIR AsmParserImpl Class --------
[all...]
H A DLexer.cpp1 //===- Lexer.cpp - MLIR Lexer Implementation ------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
14 #include "Token.h"
30 // Returns true if 'c' is an allowable punctuation character: [$._-]
33 return c == '$' || c == '.' || c == '_' || c == '-'; in isPunct()
40 curBuffer = sourceMgr.getMemoryBuffer(bufferID)->getBuffer(); in Lexer()
45 codeCompleteLoc = codeCompleteContext->getCodeCompleteLoc().getPointer(); in Lexer()
59 (loc.getPointer() - bufferInfo.getPointerForLineNumber(lineNo)) + 1; in getEncodedSourceLocation()
[all …]
/llvm-project/clang/lib/Format/
H A DMacroCallReconstructor.cpp1 //===--- MacroCallReconstructor.cpp - Format C++ code -----------*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
24 #define DEBUG_TYPE "format-reconstruct"
29 // 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()
63 Result.Tokens.front()->Children.size() == 1); in takeResult()
65 *Result.Tokens.front()->Children.front(), Result.Level); in takeResult()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Doperators-representation-to-alternative.cpp1 // RUN: %check_clang_tidy %s readability-operators-representation %t -- -config="{CheckOptions: {\
2 // RUN: readability-operators-representation.BinaryOperators: 'and;and_eq;bitand;bitor;compl;not;no…
3 // RUN: readability-operators-representation.OverloadedOperators: 'and;and_eq;bitand;bitor;compl;no…
9-MESSAGES: :[[@LINE-1]]:12: warning: '||' is a traditional token spelling, consider using an alter… in testAllTokensToAlternative()
10 // CHECK-FIXES: {{^ }}value = a or b;{{$}} in testAllTokensToAlternative()
13-MESSAGES: :[[@LINE-1]]:12: warning: '&&' is a traditional token spelling, consider using an alter… in testAllTokensToAlternative()
14 // CHECK-FIXES: {{^ }}value = a and b;{{$}} in testAllTokensToAlternative()
17-MESSAGES: :[[@LINE-1]]:13: warning: '|' is a traditional token spelling, consider using an altern… in testAllTokensToAlternative()
18 // CHECK-FIXES: {{^ }}value = a bitor b;{{$}} in testAllTokensToAlternative()
21-MESSAGES: :[[@LINE-1]]:13: warning: '&' is a traditional token spelling, consider using an altern… in testAllTokensToAlternative()
[all …]
H A Doperators-representation-to-traditional.cpp1 // RUN: %check_clang_tidy %s readability-operators-representation %t -- -config="{CheckOptions: {\
2 // RUN: readability-operators-representation.BinaryOperators: '&&;&=;&;|;~;!;!=;||;|=;^;^=', \
3 // RUN: readability-operators-representation.OverloadedOperators: '&&;&=;&;|;~;!;!=;||;|=;^;^='}}"
9-MESSAGES: :[[@LINE-1]]:13: warning: 'or' is an alternative token spelling, consider using a tradi… in testAllTokensToAlternative()
10 // CHECK-FIXES: {{^ }}value = a || b;{{$}} in testAllTokensToAlternative()
13-MESSAGES: :[[@LINE-1]]:13: warning: 'and' is an alternative token spelling, consider using a trad… in testAllTokensToAlternative()
14 // CHECK-FIXES: {{^ }}value = a && b;{{$}} in testAllTokensToAlternative()
17-MESSAGES: :[[@LINE-1]]:13: warning: 'bitor' is an alternative token spelling, consider using a tr… in testAllTokensToAlternative()
18 // CHECK-FIXES: {{^ }}value = a | b;{{$}} in testAllTokensToAlternative()
21-MESSAGES: :[[@LINE-1]]:13: warning: 'bitand' is an alternative token spelling, consider using a t… in testAllTokensToAlternative()
[all …]
/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp1 //===- MIParser.cpp - Machine instructions parser implementation --------
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 -------
[all...]
/llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/
H A DSparseGPUCodegen.cpp1 //===- SparseGPUCodegen.cpp - Generates GPU code --------
147 genAllocMemRef(OpBuilder & builder,Location loc,Value mem,Value token) genAllocMemRef() argument
172 genAllocBuffer(OpBuilder & builder,Location loc,Type type,Value size,Value token) genAllocBuffer() argument
180 genAllocBuffer(OpBuilder & builder,Location loc,Value size,Value token) genAllocBuffer() argument
186 genDeallocMemRef(OpBuilder & builder,Location loc,Value mem,Value token) genDeallocMemRef() argument
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/mlir/lib/Tools/PDLL/Parser/
H A DLexer.cpp1 //===- Lexer.cpp ----------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
19 //===----------------------------------------------------------------------===//
20 // Token
21 //===----------------------------------------------------------------------===//
23 std::string Token::getStringValue() const { in getStringValue()
70 //===----------------------------------------------------------------------===//
72 //===----------------------------------------------------------------------===//
79 curBuffer = srcMgr.getMemoryBuffer(curBufferID)->getBuffer(); in Lexer()
[all …]
/llvm-project/clang/test/CodeGenHLSL/convergence/
H A Dfor.hlsl1 // RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
2 // RUN: spirv-pc-vulkan-library %s -emi
[all...]
/llvm-project/llvm/test/Transforms/LoopUnroll/
H A Dconvergent.controlled.ll2 ; RUN: opt < %s -passes=loop-unroll -unroll-runtime -unroll-allow-partial -S | FileCheck %s
10 ; CHECK-LABEL: @full_unroll(
11 ; CHECK-NEXT: entry:
12 ; CHECK-NEXT: [[ANCHOR:%.*]] = call token @llvm.experimental.convergence.anchor()
13 ; CHECK-NEXT: br label [[L3:%.*]]
15 ; CHECK-NEXT: [[TOK_LOOP:%.*]] = call token @llvm.experimental.convergence.loop() [ "convergence…
16 ; CHECK-NEXT: br label [[A:%.*]]
18 ; CHECK-NEXT: call void @f() [ "convergencectrl"(token [[TOK_LOOP]]) ]
19 ; CHECK-NEXT: br label [[A_1:%.*]]
21 ; CHECK-NEXT: call void @f() [ "convergencectrl"(token [[TOK_LOOP]]) ]
[all …]
/llvm-project/clang/include/clang/Lex/
H A DTokenLexer.h1 //===- TokenLexer.h - Lex from a token buffer -------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
24 class Token; variable
27 /// TokenLexer - This implements a lexer that returns tokens from a macro body
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.
36 /// The actual arguments specified for a function-like macro, or null. The
37 /// TokenLexer owns the pointed-to object.
[all …]
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dstatepoint-cleanup.ll2 ; RUN: opt < %s -passes='instcombine<max-iterations=1>' -S | FileCheck %s
10 define void @test(ptr addrspace(1) %b) gc "statepoint-example" {
11 ; CHECK-LABEL: @test(
12 ; CHECK-NEXT: entry:
13 ; CHECK-NEXT: [[D:%.*]] = getelementptr i8, ptr addrspace(1) [[B:%.*]], i64 64
14-NEXT: [[SAFEPOINT_TOKEN:%.*]] = tail call token (i64, i32, ptr, i32, i32, ...) @llvm.experimen…
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 [[…
[all …]
/llvm-project/llvm/test/CodeGen/AMDGPU/
H A Dconvergence-tokens.ll1 ; RUN: llc -stop-after=amdgpu-isel -mtriple=amdgcn-- -mcpu=gfx900 -verify-machineinstrs -o - %s | F…
2 ; RUN: llc -stop-after=dead-mi-elimination -mtriple=amdgcn-- -mcpu=gfx900 -verify-machineinstrs -o
3 ; RUN: llc -global-isel -stop-after=irtranslator -mtriple=amdgcn-- -mcpu=gfx900 -verify-machineinst…
5 ; CHECK-LABEL: name: basic_call
6 ; 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) ]
[all …]
/llvm-project/lldb/tools/debugserver/source/
H A DJSON.cpp1 //===--------------------- JSON.cpp -----------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
121 JSONString key(iter->first); in Write()
122 JSONValue::SP value(iter->second); in Write()
125 value->Write(s); in Write()
141 return iter->second; in GetObject()
176 value = static_cast<JSONString *>(value_sp.get())->GetData(); in GetObjectAsString()
191 (*iter)->Write(s); in Write()
227 JSONParser::Token JSONParser::GetToken(std::string &value) { in GetToken()
[all …]

12345678910>>...41