#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/IR/IntrinsicsAMDGPU.h"
#include "llvm/IR/IntrinsicsR600.h"
#include "llvm/Target/TargetMachine.h"
#define DEBUG_TYPE …
usingnamespacellvm;
namespace {
class AMDGPUAnnotateKernelFeatures : public CallGraphSCCPass { … };
}
char AMDGPUAnnotateKernelFeatures::ID = …;
char &llvm::AMDGPUAnnotateKernelFeaturesID = …;
INITIALIZE_PASS(…)
bool AMDGPUAnnotateKernelFeatures::addFeatureAttributes(Function &F) { … }
bool AMDGPUAnnotateKernelFeatures::runOnSCC(CallGraphSCC &SCC) { … }
bool AMDGPUAnnotateKernelFeatures::doInitialization(CallGraph &CG) { … }
Pass *llvm::createAMDGPUAnnotateKernelFeaturesPass() { … }