LLVM API Documentation
00001 //===- AMDGPUIntrinsicInfo.h - AMDGPU Intrinsic Information ------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //==-----------------------------------------------------------------------===// 00009 // 00010 /// \file 00011 /// \brief Interface for the AMDGPU Implementation of the Intrinsic Info class. 00012 // 00013 //===-----------------------------------------------------------------------===// 00014 #ifndef LLVM_LIB_TARGET_R600_AMDGPUINTRINSICINFO_H 00015 #define LLVM_LIB_TARGET_R600_AMDGPUINTRINSICINFO_H 00016 00017 #include "llvm/IR/Intrinsics.h" 00018 #include "llvm/Target/TargetIntrinsicInfo.h" 00019 00020 namespace llvm { 00021 class TargetMachine; 00022 00023 namespace AMDGPUIntrinsic { 00024 enum ID { 00025 last_non_AMDGPU_intrinsic = Intrinsic::num_intrinsics - 1, 00026 #define GET_INTRINSIC_ENUM_VALUES 00027 #include "AMDGPUGenIntrinsics.inc" 00028 #undef GET_INTRINSIC_ENUM_VALUES 00029 , num_AMDGPU_intrinsics 00030 }; 00031 00032 } // end namespace AMDGPUIntrinsic 00033 00034 class AMDGPUIntrinsicInfo : public TargetIntrinsicInfo { 00035 public: 00036 AMDGPUIntrinsicInfo(); 00037 std::string getName(unsigned IntrId, Type **Tys = nullptr, 00038 unsigned numTys = 0) const override; 00039 unsigned lookupName(const char *Name, unsigned Len) const override; 00040 bool isOverloaded(unsigned IID) const override; 00041 Function *getDeclaration(Module *M, unsigned ID, 00042 Type **Tys = nullptr, 00043 unsigned numTys = 0) const override; 00044 }; 00045 00046 } // end namespace llvm 00047 00048 #endif