mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 21:46:50 +00:00
00e08fcaa0
Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215558 91177308-0d34-0410-b5e6-96231b3b80d8
49 lines
1.5 KiB
C++
49 lines
1.5 KiB
C++
//===- AMDGPUIntrinsicInfo.h - AMDGPU Intrinsic Information ------*- C++ -*-===//
|
|
//
|
|
// 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.
|
|
//
|
|
//===-----------------------------------------------------------------------===//
|
|
#ifndef LLVM_LIB_TARGET_R600_AMDGPUINTRINSICINFO_H
|
|
#define LLVM_LIB_TARGET_R600_AMDGPUINTRINSICINFO_H
|
|
|
|
#include "llvm/IR/Intrinsics.h"
|
|
#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
|
|
|
|
class AMDGPUIntrinsicInfo : public TargetIntrinsicInfo {
|
|
public:
|
|
AMDGPUIntrinsicInfo();
|
|
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,
|
|
Type **Tys = nullptr,
|
|
unsigned numTys = 0) const override;
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|