llvm::AMDGPU::mergeSubArch

Returns the effective triple appropriate to use when linking B into A by merging the subarches in case of inexact match.

Synopsis

Declared in <llvm/TargetParser/AMDGPUTargetParser.h>

std::string
mergeSubArch(
    Triple const& A,
    Triple const& B);

Description

In cases where isSubArchCompatible would return false, returns B. This assumes that the non-arch triple components are the same.

Return Value

Effective triple string after merging the subarches.

Parameters

NameDescription
ADestination/link-into triple.
BSource/linked-from triple.