llvm::AMDGPU::isCPUValidForSubArch

isCPUValidForSubArch overloads

Synopses

Declared in <llvm/TargetParser/AMDGPUTargetParser.h>

Return true if GPU AK is usable with triple subarch SubArch.

bool
isCPUValidForSubArch(
    Triple::SubArchType SubArch,
    GPUKind AK);
» more...

Return true if GPU name CPU is usable with triple subarch SubArch.

bool
isCPUValidForSubArch(
    Triple::SubArchType SubArch,
    StringRef CPU);
» more...

Return Value

  • True if AK is valid for SubArch.
  • True if CPU is valid for SubArch.

Parameters

NameDescription
SubArchTriple subarch to validate against.
AKGPU kind to check.
CPUGPU name to parse and check.