2014-06-24 02:00:31 +08:00
|
|
|
//===- AMDGPUIntrinsicInfo.h - AMDGPU Intrinsic Information ------*- C++ -*-===//
|
2012-12-12 05:25:42 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//==-----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
/// \brief Interface for the AMDGPU Implementation of the Intrinsic Info class.
|
|
|
|
//
|
|
|
|
//===-----------------------------------------------------------------------===//
|
2016-03-11 16:00:27 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUINTRINSICINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUINTRINSICINFO_H
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-01-02 19:36:10 +08:00
|
|
|
#include "llvm/IR/Intrinsics.h"
|
2012-12-12 05:25:42 +08:00
|
|
|
#include "llvm/Target/TargetIntrinsicInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class TargetMachine;
|
|
|
|
|
|
|
|
namespace AMDGPUIntrinsic {
|
|
|
|
enum ID {
|
|
|
|
last_non_AMDGPU_intrinsic = Intrinsic::num_intrinsics - 1,
|
|
|
|
#define GET_INTRINSIC_ENUM_VALUES
|
|
|
|
#include "AMDGPUGenIntrinsics.inc"
|
|
|
|
#undef GET_INTRINSIC_ENUM_VALUES
|
|
|
|
, num_AMDGPU_intrinsics
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace AMDGPUIntrinsic
|
|
|
|
|
2016-03-11 16:00:27 +08:00
|
|
|
class AMDGPUIntrinsicInfo final : public TargetIntrinsicInfo {
|
2012-12-12 05:25:42 +08:00
|
|
|
public:
|
2014-07-26 06:22:39 +08:00
|
|
|
AMDGPUIntrinsicInfo();
|
2014-06-24 02:00:31 +08:00
|
|
|
std::string getName(unsigned IntrId, Type **Tys = nullptr,
|
|
|
|
unsigned numTys = 0) const override;
|
|
|
|
unsigned lookupName(const char *Name, unsigned Len) const override;
|
|
|
|
bool isOverloaded(unsigned IID) const override;
|
|
|
|
Function *getDeclaration(Module *M, unsigned ID,
|
2014-04-28 12:05:08 +08:00
|
|
|
Type **Tys = nullptr,
|
2014-06-24 02:00:31 +08:00
|
|
|
unsigned numTys = 0) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#endif
|