llvm/llvm/lib/TargetParser/TargetParser.cpp

//===-- TargetParser - Parser for target features ---------------*- 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
//
//===----------------------------------------------------------------------===//
//
// This file implements a target parser to recognise hardware features such as
// FPU/CPU/ARCH names as well as specific support such as HDIV, etc.
//
//===----------------------------------------------------------------------===//

#include "llvm/TargetParser/TargetParser.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/TargetParser/Triple.h"

usingnamespacellvm;
usingnamespaceAMDGPU;

namespace {

struct GPUInfo {};

constexpr GPUInfo R600GPUs[] =;

// This table should be sorted by the value of GPUKind
// Don't bother listing the implicitly true features
constexpr GPUInfo AMDGCNGPUs[] =;

const GPUInfo *getArchEntry(AMDGPU::GPUKind AK, ArrayRef<GPUInfo> Table) {}

} // namespace

StringRef llvm::AMDGPU::getArchFamilyNameAMDGCN(GPUKind AK) {}

StringRef llvm::AMDGPU::getArchNameAMDGCN(GPUKind AK) {}

StringRef llvm::AMDGPU::getArchNameR600(GPUKind AK) {}

AMDGPU::GPUKind llvm::AMDGPU::parseArchAMDGCN(StringRef CPU) {}

AMDGPU::GPUKind llvm::AMDGPU::parseArchR600(StringRef CPU) {}

unsigned AMDGPU::getArchAttrAMDGCN(GPUKind AK) {}

unsigned AMDGPU::getArchAttrR600(GPUKind AK) {}

void AMDGPU::fillValidArchListAMDGCN(SmallVectorImpl<StringRef> &Values) {}

void AMDGPU::fillValidArchListR600(SmallVectorImpl<StringRef> &Values) {}

AMDGPU::IsaVersion AMDGPU::getIsaVersion(StringRef GPU) {}

StringRef AMDGPU::getCanonicalArchName(const Triple &T, StringRef Arch) {}

void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T,
                                  StringMap<bool> &Features) {}

static bool isWave32Capable(StringRef GPU, const Triple &T) {}

std::pair<FeatureError, StringRef>
AMDGPU::insertWaveSizeFeature(StringRef GPU, const Triple &T,
                              StringMap<bool> &Features) {}