pub fn lookup(triple: Triple) -> Result<IsaBackend, LookupError> {
    match triple.architecture {
        Architecture::Riscv32 | Architecture::Riscv64 => isa_builder!(riscv, "riscv", triple),
        #[cfg(not(feature = "new-x64"))]
        Architecture::I386 | Architecture::I586 | Architecture::I686 | Architecture::X86_64 => {
            isa_builder!(x86, "x86", triple)
        }
        Architecture::Arm { .. } => isa_builder!(arm32, "arm32", triple),
        // ARM64 uses the new backend.
        Architecture::Aarch64 { .. } => Ok(IsaBackend::Builder(Builder::wrap(Box::new(
            TargetIsaAdapter::new(arm64::Arm64Backend::new()),
        )))),
        // X86_64 uses the new backend.  Bwaha!
        #[cfg(feature = "new-x64")]
        Architecture::X86_64 => Ok(IsaBackend::Builder(Builder::wrap(Box::new(
            TargetIsaAdapter::new(x64::X64Backend::new()),
        )))),
        _ => Err(LookupError::Unsupported),
    }
}
/// Look for an ISA for the given `triple`.
/// Return a builder that can create a corresponding `TargetIsa`.
Look for an ISA for the given `triple`.
Return a builder that can create a corresponding `TargetIsa`.
Look for an ISA for the given ` triple ` . Return a builder that can create a corresponding ` TargetIsa ` .
pub fn lookup(triple: Triple) -> Result<IsaBackend, LookupError> {
    match triple.architecture {
        Architecture::Riscv32 | Architecture::Riscv64 => isa_builder!(riscv, "riscv", triple),
        #[cfg(not(feature = "new-x64"))]
        Architecture::I386 | Architecture::I586 | Architecture::I686 | Architecture::X86_64 => {
            isa_builder!(x86, "x86", triple)
        }
        Architecture::Arm { .. } => isa_builder!(arm32, "arm32", triple),
        // ARM64 uses the new backend.
        Architecture::Aarch64 { .. } => Ok(IsaBackend::Builder(Builder::wrap(Box::new(
            TargetIsaAdapter::new(arm64::Arm64Backend::new()),
        )))),
        // X86_64 uses the new backend.  Bwaha!
        #[cfg(feature = "new-x64")]
        Architecture::X86_64 => Ok(IsaBackend::Builder(Builder::wrap(Box::new(
            TargetIsaAdapter::new(x64::X64Backend::new()),
        )))),
        _ => Err(LookupError::Unsupported),
    }
}
pub fn lookup ( triple : Triple ) -> Result < IsaBackend , LookupError > { match triple . architecture { Architecture :: Riscv32 | Architecture :: Riscv64 => isa_builder ! ( riscv " " triple ) , # [ cfg ( not ( feature " " ) ) ] Architecture :: I386 | Architecture :: I586 | Architecture :: I686 | Architecture :: X86_64 => { isa_builder ! ( x86 " " triple ) } Architecture :: Arm { .. } => isa_builder ! ( arm32 " " triple ) , // ARM64 uses the new backend. Architecture :: Aarch64 { .. } => Ok ( IsaBackend :: Builder ( Builder :: wrap ( Box :: new ( TargetIsaAdapter :: new ( arm64 :: Arm64Backend :: new ( ) ) , ) ) ) ) , // X86_64 uses the new backend.  Bwaha! # [ cfg ( feature " " ) ] Architecture :: X86_64 => Ok ( IsaBackend :: Builder ( Builder :: wrap ( Box :: new ( TargetIsaAdapter :: new ( x64 :: X64Backend :: new ( ) ) , ) ) ) ) , _ => Err ( LookupError :: Unsupported ) , } }
Look for an ISA for the given `triple`.
Look for an ISA for the given ` triple ` .
triple
Triple
triple
Triple