Skip to content

Commit

Permalink
Merge pull request #109 from fitzgen/pulley
Browse files Browse the repository at this point in the history
Add `pbc32` and `pbc64` architectures for Pulley
  • Loading branch information
fitzgen authored Jul 30, 2024
2 parents 6dfc276 + 1e750e8 commit da9f879
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ pub enum Architecture {
Mips64(Mips64Architecture),
Msp430,
Nvptx64,
Pulley32,
Pulley64,
Powerpc,
Powerpc64,
Powerpc64le,
Expand Down Expand Up @@ -863,6 +865,8 @@ impl Architecture {
| Mips64(Mips64Architecture::Mipsisa64r6el)
| Msp430
| Nvptx64
| Pulley32
| Pulley64
| Powerpc64le
| Riscv32(_)
| Riscv64(_)
Expand All @@ -887,7 +891,6 @@ impl Architecture {
#[cfg(feature="arch_zkasm")]
ZkAsm => Ok(Endianness::Big),
}

}

/// Return the pointer bit width of this target's architecture.
Expand All @@ -911,6 +914,7 @@ impl Architecture {
| Wasm32
| M68k
| Mips32(_)
| Pulley32
| Powerpc
| XTensa => Ok(PointerWidth::U32),
AmdGcn
Expand All @@ -922,6 +926,7 @@ impl Architecture {
| X86_64h
| Mips64(_)
| Nvptx64
| Pulley64
| Powerpc64
| S390x
| Sparc64
Expand Down Expand Up @@ -963,6 +968,8 @@ impl Architecture {
Mips64(mips64) => mips64.into_str(),
Msp430 => Cow::Borrowed("msp430"),
Nvptx64 => Cow::Borrowed("nvptx64"),
Pulley32 => Cow::Borrowed("pulley32"),
Pulley64 => Cow::Borrowed("pulley64"),
Powerpc => Cow::Borrowed("powerpc"),
Powerpc64 => Cow::Borrowed("powerpc64"),
Powerpc64le => Cow::Borrowed("powerpc64le"),
Expand Down Expand Up @@ -1248,6 +1255,8 @@ impl FromStr for Architecture {
"m68k" => M68k,
"msp430" => Msp430,
"nvptx64" => Nvptx64,
"pulley32" => Pulley32,
"pulley64" => Pulley64,
"powerpc" => Powerpc,
"powerpc64" => Powerpc64,
"powerpc64le" => Powerpc64le,
Expand Down

0 comments on commit da9f879

Please sign in to comment.