clang 17.0.0git
RISCVIntrinsicManager.h
Go to the documentation of this file.
1//===- RISCVIntrinsicManager.h - RISC-V Intrinsic Handler -------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file defines the RISCVIntrinsicManager, which handles RISC-V vector
10// intrinsic functions.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_SEMA_RISCVINTRINSICMANAGER_H
15#define LLVM_CLANG_SEMA_RISCVINTRINSICMANAGER_H
16
17#include <cstdint>
18
19namespace clang {
20class LookupResult;
21class IdentifierInfo;
22class Preprocessor;
23
24namespace sema {
26public:
27 enum class IntrinsicKind : uint8_t { RVV, SIFIVE_VECTOR };
28
29 virtual ~RISCVIntrinsicManager() = default;
30
31 // Create RISC-V intrinsic and insert into symbol table and return true if
32 // found, otherwise return false.
34 Preprocessor &PP) = 0;
35};
36} // end namespace sema
37} // end namespace clang
38
39#endif
One of these records is kept for each identifier that is lexed.
Represents the results of name lookup.
Definition: Lookup.h:46
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
Definition: Preprocessor.h:128
virtual bool CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II, Preprocessor &PP)=0
virtual ~RISCVIntrinsicManager()=default