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 {
25class RISCVIntrinsicManager {
26public:
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.
35 virtual bool CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II,
36 Preprocessor &PP) = 0;
37};
38} // end namespace sema
39} // end namespace clang
40
41#endif
42

source code of clang/include/clang/Sema/RISCVIntrinsicManager.h