mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-12-init-17869-g8e464dd76bef, the last commit before the upstream release/12.x branch was created. PR: 255570 MFC after: 6 weeks
37 lines
1.3 KiB
C++
37 lines
1.3 KiB
C++
//===--- AMDGPUMachineModuleInfo.cpp ----------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
/// \file
|
|
/// AMDGPU Machine Module Info.
|
|
///
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "AMDGPUMachineModuleInfo.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");
|
|
SystemOneAddressSpaceSSID =
|
|
CTX.getOrInsertSyncScopeID("one-as");
|
|
AgentOneAddressSpaceSSID =
|
|
CTX.getOrInsertSyncScopeID("agent-one-as");
|
|
WorkgroupOneAddressSpaceSSID =
|
|
CTX.getOrInsertSyncScopeID("workgroup-one-as");
|
|
WavefrontOneAddressSpaceSSID =
|
|
CTX.getOrInsertSyncScopeID("wavefront-one-as");
|
|
SingleThreadOneAddressSpaceSSID =
|
|
CTX.getOrInsertSyncScopeID("singlethread-one-as");
|
|
}
|
|
|
|
} // end namespace llvm
|