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 namespace clang {
18 class Sema;
19 class LookupResult;
20 class IdentifierInfo;
21 class Preprocessor;
22 
23 namespace sema {
24 class RISCVIntrinsicManager {
25 public:
26   virtual ~RISCVIntrinsicManager() = default;
27 
28   // Create RISC-V intrinsic and insert into symbol table and return true if
29   // found, otherwise return false.
30   virtual bool CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II,
31                                       Preprocessor &PP) = 0;
32 };
33 } // end namespace sema
34 } // end namespace clang
35 
36 #endif
37