Jia Liu | 31d157a | 2012-02-18 12:03:15 +0000 | [diff] [blame] | 1 | //===-- MBlazeIntrinsicInfo.h - MBlaze Intrinsic Information ----*- C++ -*-===// |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the MBlaze implementation of TargetIntrinsicInfo. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | #ifndef MBLAZEINTRINSICS_H |
| 14 | #define MBLAZEINTRINSICS_H |
| 15 | |
| 16 | #include "llvm/Target/TargetIntrinsicInfo.h" |
| 17 | |
| 18 | namespace llvm { |
| 19 | |
| 20 | class MBlazeIntrinsicInfo : public TargetIntrinsicInfo { |
| 21 | public: |
Chris Lattner | db125cf | 2011-07-18 04:54:35 +0000 | [diff] [blame] | 22 | std::string getName(unsigned IntrID, Type **Tys = 0, |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 23 | unsigned numTys = 0) const; |
| 24 | unsigned lookupName(const char *Name, unsigned Len) const; |
Wesley Peck | 173c5c4 | 2010-02-24 20:16:27 +0000 | [diff] [blame] | 25 | unsigned lookupGCCName(const char *Name) const; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 26 | bool isOverloaded(unsigned IID) const; |
Chris Lattner | db125cf | 2011-07-18 04:54:35 +0000 | [diff] [blame] | 27 | Function *getDeclaration(Module *M, unsigned ID, Type **Tys = 0, |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 28 | unsigned numTys = 0) const; |
| 29 | }; |
| 30 | |
| 31 | } |
| 32 | |
| 33 | #endif |