2012-02-18 12:03:15 +00:00
|
|
|
//===-- MBlazeIntrinsicInfo.h - MBlaze Intrinsic Information ----*- C++ -*-===//
|
2010-02-23 19:15:24 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the MBlaze implementation of TargetIntrinsicInfo.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef MBLAZEINTRINSICS_H
|
|
|
|
#define MBLAZEINTRINSICS_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetIntrinsicInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MBlazeIntrinsicInfo : public TargetIntrinsicInfo {
|
|
|
|
public:
|
2011-07-18 04:54:35 +00:00
|
|
|
std::string getName(unsigned IntrID, Type **Tys = 0,
|
2010-02-23 19:15:24 +00:00
|
|
|
unsigned numTys = 0) const;
|
|
|
|
unsigned lookupName(const char *Name, unsigned Len) const;
|
2010-02-24 20:16:27 +00:00
|
|
|
unsigned lookupGCCName(const char *Name) const;
|
2010-02-23 19:15:24 +00:00
|
|
|
bool isOverloaded(unsigned IID) const;
|
2011-07-18 04:54:35 +00:00
|
|
|
Function *getDeclaration(Module *M, unsigned ID, Type **Tys = 0,
|
2010-02-23 19:15:24 +00:00
|
|
|
unsigned numTys = 0) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|