clang  19.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 
19 namespace clang {
20 class LookupResult;
21 class IdentifierInfo;
22 class Preprocessor;
23 
24 namespace sema {
26 public:
27  enum class IntrinsicKind : uint8_t { RVV, SIFIVE_VECTOR };
28 
29  virtual ~RISCVIntrinsicManager() = default;
30 
31  virtual void InitIntrinsicList() = 0;
32 
33  // Create RISC-V intrinsic and insert into symbol table and return true if
34  // found, otherwise return false.
36  Preprocessor &PP) = 0;
37 };
38 } // end namespace sema
39 } // end namespace clang
40 
41 #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
The JSON file list parser is used to communicate input to InstallAPI.