1894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//===- MBlazeIntrinsicInfo.h - MBlaze Intrinsic Information -----*- C++ -*-===//
2894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//
3894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//                     The LLVM Compiler Infrastructure
4894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//
5894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman// This file is distributed under the University of Illinois Open Source
6894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman// License. See LICENSE.TXT for details.
7894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//
8894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//===----------------------------------------------------------------------===//
9894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//
10894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman// This file contains the MBlaze implementation of TargetIntrinsicInfo.
11894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//
12894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman//===----------------------------------------------------------------------===//
13894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman#ifndef MBLAZEINTRINSICS_H
14894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman#define MBLAZEINTRINSICS_H
15894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman
16894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman#include "llvm/Target/TargetIntrinsicInfo.h"
17894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman
18894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Baumannamespace llvm {
19894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman
20894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman  class MBlazeIntrinsicInfo : public TargetIntrinsicInfo {
21894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman  public:
2219bac1e08be200c31efd26f0f5fd144c9b3eefd3John Bauman    std::string getName(unsigned IntrID, Type **Tys = 0,
23894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman                        unsigned numTys = 0) const;
24894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman    unsigned lookupName(const char *Name, unsigned Len) const;
25894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman    unsigned lookupGCCName(const char *Name) const;
26894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman    bool isOverloaded(unsigned IID) const;
2719bac1e08be200c31efd26f0f5fd144c9b3eefd3John Bauman    Function *getDeclaration(Module *M, unsigned ID, Type **Tys = 0,
28894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman                             unsigned numTys = 0) const;
29894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman  };
30894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman
31894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman}
32894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman
33894018228b0e0bdbd7aa7e8f47d4a9458789ca82John Bauman#endif
34