|
LLVM
5.0.0
|
#include "AMDGPU.h"#include "AMDGPUSubtarget.h"#include "llvm/ADT/Triple.h"#include "llvm/Analysis/CallGraphSCCPass.h"#include "llvm/CodeGen/TargetPassConfig.h"#include "llvm/IR/Constants.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/Module.h"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, const AMDGPUAS &AS) |
| 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) |
Variables | |
| const AMDGPUAS &AS return | SrcAS == AS.LOCAL_ADDRESS || SrcAS == AS.PRIVATE_ADDRESS |
| #define DEBUG_TYPE "amdgpu-annotate-kernel-features" |
Definition at line 25 of file AMDGPUAnnotateKernelFeatures.cpp.
|
static |
Definition at line 76 of file AMDGPUAnnotateKernelFeatures.cpp.
References llvm::AddrSpaceCastInst::getSrcAddressSpace().
|
static |
Definition at line 181 of file AMDGPUAnnotateKernelFeatures.cpp.
References handleAttr().
Definition at line 171 of file AMDGPUAnnotateKernelFeatures.cpp.
References llvm::Function::addFnAttr(), and llvm::Function::hasFnAttribute().
Referenced by copyFeaturesToFunction().
| INITIALIZE_PASS | ( | AMDGPUAnnotateKernelFeatures | , |
| DEBUG_TYPE | , | ||
| "Add AMDGPU function attributes" | , | ||
| false | , | ||
| false | |||
| ) |
|
static |
Definition at line 132 of file AMDGPUAnnotateKernelFeatures.cpp.
Definition at line 73 of file AMDGPUAnnotateKernelFeatures.cpp.
Referenced by llvm::ConstantFoldCastOperand(), llvm::createMemCpyLoop(), llvm::createMemCpyLoopKnownSize(), llvm::createMemCpyLoopUnknownSize(), llvm::SelectionDAG::getAddrSpaceCast(), and llvm::ConstantExpr::getPointerCast().
1.8.6