2017-07-22 05:19:23 +08:00
|
|
|
//===--- AMDGPUMachineModuleInfo.cpp ----------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// \file
|
2018-05-01 23:54:18 +08:00
|
|
|
/// AMDGPU Machine Module Info.
|
2017-07-22 05:19:23 +08:00
|
|
|
///
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "AMDGPUMachineModuleInfo.h"
|
|
|
|
#include "llvm/IR/Module.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
AMDGPUMachineModuleInfo::AMDGPUMachineModuleInfo(const MachineModuleInfo &MMI)
|
|
|
|
: MachineModuleInfoELF(MMI) {
|
|
|
|
LLVMContext &CTX = MMI.getModule()->getContext();
|
|
|
|
AgentSSID = CTX.getOrInsertSyncScopeID("agent");
|
|
|
|
WorkgroupSSID = CTX.getOrInsertSyncScopeID("workgroup");
|
|
|
|
WavefrontSSID = CTX.getOrInsertSyncScopeID("wavefront");
|
|
|
|
}
|
|
|
|
|
|
|
|
} // end namespace llvm
|