llvm::AMDGPU::fillAMDGPUFeatureMap

Fills Features with default values for the given target GPU.

Synopsis

Declared in <llvm/TargetParser/AMDGPUTargetParser.h>

std::pair<FeatureError, StringRef>
fillAMDGPUFeatureMap(
    StringRef GPU,
    Triple const& T,
    StringMap<bool>& Features);

Description

Features contains overriding target features and this function returns default target features with entries overridden by Features.

Return Value

Pair of FeatureError and a StringRef naming the offending feature.

Parameters

NameDescription
GPUTarget GPU name.
TTarget triple.
FeaturesIn/out map of feature overrides; updated with defaults.