Method GetCanonicalArchForSubArch
GetCanonicalArchForSubArch(Triple.ArchType, Triple.SubArchType)
Provides the canonical Architecture form for a given architecture sub architecture pair
Declaration
public static Triple.ArchType GetCanonicalArchForSubArch(Triple.ArchType archType, Triple.SubArchType subArch)
Parameters
public static Triple.ArchType GetCanonicalArchForSubArch(Triple.ArchType archType, Triple.SubArchType subArch)
Triple.ArchType | archType | Architecture type |
Triple.SubArchType | subArch | Sub Architecture type |
Returns
Triple.ArchType | Canonical Triple.ArchType |
Remarks
Some architectures, particularly ARM variants, have multiple sub-architecture types that have a canonical form (i.e. Arch=Arm; SubArch=ARMSubArch_v7m; has the Canonical Arch of Thumb). This method retrieves the canonical Arch for a given architecture,SubArchitecture pair.