1 //===- AMDGPUIntrinsicInfo.h - AMDGPU Intrinsic Information ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //==-----------------------------------------------------------------------===//
11 /// \brief Interface for the AMDGPU Implementation of the Intrinsic Info class.
13 //===-----------------------------------------------------------------------===//
14 #ifndef AMDGPU_INTRINSICINFO_H
15 #define AMDGPU_INTRINSICINFO_H
17 #include "llvm/IR/Intrinsics.h"
18 #include "llvm/Target/TargetIntrinsicInfo.h"
23 namespace AMDGPUIntrinsic {
25 last_non_AMDGPU_intrinsic = Intrinsic::num_intrinsics - 1,
26 #define GET_INTRINSIC_ENUM_VALUES
27 #include "AMDGPUGenIntrinsics.inc"
28 #undef GET_INTRINSIC_ENUM_VALUES
29 , num_AMDGPU_intrinsics
32 } // end namespace AMDGPUIntrinsic
34 class AMDGPUIntrinsicInfo : public TargetIntrinsicInfo {
36 AMDGPUIntrinsicInfo(TargetMachine *tm);
37 std::string getName(unsigned IntrId, Type **Tys = nullptr,
38 unsigned numTys = 0) const override;
39 unsigned lookupName(const char *Name, unsigned Len) const override;
40 bool isOverloaded(unsigned IID) const override;
41 Function *getDeclaration(Module *M, unsigned ID,
43 unsigned numTys = 0) const override;
46 } // end namespace llvm
48 #endif // AMDGPU_INTRINSICINFO_H