mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
ff4faabd2d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176439 91177308-0d34-0410-b5e6-96231b3b80d8
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
//===-- AMDILSIDevice.cpp - Device Info for Southern Islands GPUs ---------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
/// \file
|
|
//==-----------------------------------------------------------------------===//
|
|
#include "AMDILSIDevice.h"
|
|
#include "AMDGPUSubtarget.h"
|
|
#include "AMDILEvergreenDevice.h"
|
|
#include "AMDILNIDevice.h"
|
|
|
|
using namespace llvm;
|
|
|
|
AMDGPUSIDevice::AMDGPUSIDevice(AMDGPUSubtarget *ST)
|
|
: AMDGPUEvergreenDevice(ST) {
|
|
}
|
|
AMDGPUSIDevice::~AMDGPUSIDevice() {
|
|
}
|
|
|
|
size_t
|
|
AMDGPUSIDevice::getMaxLDSSize() const {
|
|
if (usesHardware(AMDGPUDeviceInfo::LocalMem)) {
|
|
return MAX_LDS_SIZE_900;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
uint32_t
|
|
AMDGPUSIDevice::getGeneration() const {
|
|
return AMDGPUDeviceInfo::HD7XXX;
|
|
}
|
|
|
|
std::string
|
|
AMDGPUSIDevice::getDataLayout() const {
|
|
return std::string(
|
|
"e"
|
|
"-p:64:64:64"
|
|
"-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64"
|
|
"-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128"
|
|
"-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024"
|
|
"-v2048:2048:2048"
|
|
"-n32:64"
|
|
);
|
|
}
|