Home
last modified time | relevance | path

Searched refs:TokenType (Results 1 – 17 of 17) sorted by relevance

/llvm-project/clang/lib/Format/
H A DFormatTokenLexer.h62 bool tryMergeTokens(ArrayRef<tok::TokenKind> Kinds, TokenType NewType);
64 bool tryMergeTokens(size_t Count, TokenType NewType);
67 TokenType NewType);
130 llvm::SmallMapVector<IdentifierInfo *, TokenType, 8> Macros;
H A DUnwrappedLineParser.h148 bool parseParens(TokenType AmpAmpTokenType = TT_Unknown);
240 void setPreviousRBraceType(TokenType Type);
H A DFormatToken.h218 enum TokenType : uint8_t {
226 const char *getTokenTypeName(TokenType Type);
431 TokenType Type; in setType()
436 TokenType getType() const { return Type; } in setType()
437 void setType(TokenType T) { in setType()
451 void setFinalizedType(TokenType T) { in overwriteFixedType()
457 void overwriteFixedType(TokenType T) {
619 bool is(TokenType TT) const { return getType() == TT; }
211 enum TokenType : uint8_t { global() enum
H A DWhitespaceManager.h227 TokenType Type);
H A DFormatTokenLexer.cpp563 TokenType NewType) { in tryMergeTokens()
575 bool FormatTokenLexer::tryMergeTokens(size_t Count, TokenType NewType) { in tryMergeTokens()
598 ArrayRef<ArrayRef<tok::TokenKind>> Kinds, TokenType NewType) { in precedesOperand()
1047 TokenType Type = TT_Unknown; in tryMergeConflictMarkers()
H A DFormatToken.cpp24 const char *getTokenTypeName(TokenType Type) { in getTokenTypeName()
33 llvm_unreachable("unknown TokenType"); in getTokenTypeName()
H A DUnwrappedLineParser.cpp660 void UnwrappedLineParser::setPreviousRBraceType(TokenType Type) { in setPreviousRBraceType()
2461 // Fat arrows (=>) have tok::TokenKind tok::equal but TokenType TT_FatArrow. in parseBracedList()
2569 bool UnwrappedLineParser::parseParens(TokenType AmpAmpTokenType) { in parseParens()
4147 [](const FormatToken &RecordTok) -> std::pair<TokenType, TokenType> { in parseObjCProtocolList()
H A DWhitespaceManager.cpp864 const FormatStyle::AlignConsecutiveStyle &AlignStyle, TokenType Type) { in alignConsecutiveColons()
H A DTokenAnnotator.cpp2968 TokenType determineStarAmpUsage(const FormatToken &Tok, bool IsExpression, in determineStarAmpUsage()
3115 TokenType determinePlusMinusCaretUsage(const FormatToken &Tok) { in parse()
3131 TokenType determineIncrementUsage(const FormatToken &Tok) { in parse()
/llvm-project/mlir/lib/Conversion/AsyncToLLVM/
H A DAsyncToLLVM.cpp94 return FunctionType::get(ctx, {}, {TokenType::get(ctx)}); in createTokenFunctionType()
114 return FunctionType::get(ctx, {TokenType::get(ctx)}, {}); in emplaceTokenFunctionType()
123 return FunctionType::get(ctx, {TokenType::get(ctx)}, {}); in setTokenErrorFunctionType()
133 return FunctionType::get(ctx, {TokenType::get(ctx)}, {i1}); in isTokenErrorFunctionType()
148 return FunctionType::get(ctx, {TokenType::get(ctx)}, {}); in awaitTokenFunctionType()
167 return FunctionType::get(ctx, {TokenType::get(ctx), GroupType::get(ctx)}, in addTokenToGroupFunctionType()
173 return FunctionType::get(ctx, {TokenType::get(ctx), ptrType, ptrType}, {}); in awaitTokenAndExecuteFunctionType()
295 if (isa<TokenType, GroupType, ValueType>(type)) in convertAsyncTypes()
587 if (isa<TokenType>(resultType)) { in matchAndRewrite()
663 .Case<TokenType>([](Typ in matchAndRewrite()
[all...]
/llvm-project/mlir/lib/Dialect/Async/IR/
H A DAsync.cpp84 result.addTypes({TokenType::get(result.getContext())}); in build()
139 auto tokenTy = TokenType::get(ctx); in parse()
280 if (llvm::isa<TokenType>(argType) && !getResultTypes().empty()) in verify()
345 if (!llvm::isa<TokenType>(type) && !llvm::isa<ValueType>(type)) in verify()
350 if (llvm::isa<TokenType>(type) && i != 0) { in verify()
/llvm-project/mlir/include/mlir/Dialect/Async/IR/
H A DAsync.h53 return isa<TokenType, ValueType, GroupType>(type); in isRefCounted()
H A DAsyncOps.td175 bool isStateful() { return isa<TokenType>(getFunctionType().getResult(0));}
/llvm-project/mlir/lib/Dialect/Async/Transforms/
H A DAsyncToAsyncRuntime.cpp186 bool isStateful = isa<TokenType>(func.getResultTypes().front()); in setupCoroMachinery()
190 retToken.emplace(builder.create<RuntimeCreateOp>(TokenType::get(ctx))); in setupCoroMachinery()
658 class AwaitTokenOpLowering : public AwaitOpLoweringBase<AwaitOp, TokenType> {
659 using Base = AwaitOpLoweringBase<AwaitOp, TokenType>;
H A DAsyncRuntimeRefCounting.cpp531 bool isToken = isa<TokenType>(type); in initializeDefaultPolicy()
/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/
H A DBreakpadRecords.cpp230 static std::optional<T> parseNumberName(llvm::StringRef Line, Token TokenType) { in parseNumberName() argument
232 if (consume<Token>(Line) != TokenType) in parseNumberName()
/llvm-project/mlir/lib/Dialect/GPU/Transforms/
H A DAsyncRegionRewriter.cpp163 assert(isa<async::TokenType>(type) && "expected token type"); in addExecuteResults()