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