LLVM  8.0.0svn
Macros | Functions
AMDGPUAnnotateKernelFeatures.cpp File Reference
#include "AMDGPU.h"
#include "AMDGPUSubtarget.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Use.h"
#include "llvm/Pass.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Target/TargetMachine.h"
Include dependency graph for AMDGPUAnnotateKernelFeatures.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-annotate-kernel-features"
 

Functions

 INITIALIZE_PASS (AMDGPUAnnotateKernelFeatures, DEBUG_TYPE, "Add AMDGPU function attributes", false, false) static bool castRequiresQueuePtr(unsigned SrcAS)
 
static bool castRequiresQueuePtr (const AddrSpaceCastInst *ASC)
 
static StringRef intrinsicToAttrName (Intrinsic::ID ID, bool &NonKernelOnly, bool &IsQueuePtr)
 
static bool handleAttr (Function &Parent, const Function &Callee, StringRef Name)
 
static void copyFeaturesToFunction (Function &Parent, const Function &Callee, bool &NeedQueuePtr)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-annotate-kernel-features"

Definition at line 40 of file AMDGPUAnnotateKernelFeatures.cpp.

Function Documentation

◆ castRequiresQueuePtr()

static bool castRequiresQueuePtr ( const AddrSpaceCastInst ASC)
static

◆ copyFeaturesToFunction()

static void copyFeaturesToFunction ( Function Parent,
const Function Callee,
bool NeedQueuePtr 
)
static

◆ handleAttr()

static bool handleAttr ( Function Parent,
const Function Callee,
StringRef  Name 
)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( AMDGPUAnnotateKernelFeatures  ,
DEBUG_TYPE  ,
"Add AMDGPU function attributes ,
false  ,
false   
)

◆ intrinsicToAttrName()

static StringRef intrinsicToAttrName ( Intrinsic::ID  ID,
bool NonKernelOnly,
bool IsQueuePtr 
)
static

Definition at line 143 of file AMDGPUAnnotateKernelFeatures.cpp.

Referenced by copyFeaturesToFunction().