Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:37:01

0001 //===- RISCVIntrinsicManager.h - RISC-V Intrinsic Handler -------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file defines the RISCVIntrinsicManager, which handles RISC-V vector
0010 // intrinsic functions.
0011 //
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_CLANG_SEMA_RISCVINTRINSICMANAGER_H
0015 #define LLVM_CLANG_SEMA_RISCVINTRINSICMANAGER_H
0016 
0017 #include <cstdint>
0018 
0019 namespace clang {
0020 class LookupResult;
0021 class IdentifierInfo;
0022 class Preprocessor;
0023 
0024 namespace sema {
0025 class RISCVIntrinsicManager {
0026 public:
0027   enum class IntrinsicKind : uint8_t { RVV, SIFIVE_VECTOR };
0028 
0029   virtual ~RISCVIntrinsicManager() = default;
0030 
0031   virtual void InitIntrinsicList() = 0;
0032 
0033   // Create RISC-V intrinsic and insert into symbol table and return true if
0034   // found, otherwise return false.
0035   virtual bool CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II,
0036                                       Preprocessor &PP) = 0;
0037 };
0038 } // end namespace sema
0039 } // end namespace clang
0040 
0041 #endif