Skip to content

Commit

Permalink
Add pbc32 and pbc64 architectures for Pulley
Browse files Browse the repository at this point in the history
"pbc" = Pulley Bytecode. The 32 and 64 refer to the pointer size.
  • Loading branch information
fitzgen committed Jul 29, 2024
1 parent 6dfc276 commit 4b7fec1
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,
Pbc32,
Pbc64,
Powerpc,
Powerpc64,
Powerpc64le,
Expand Down Expand Up @@ -863,6 +865,8 @@ impl Architecture {
| Mips64(Mips64Architecture::Mipsisa64r6el)
| Msp430
| Nvptx64
| Pbc32
| Pbc64
| 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(_)
| Pbc32
| Powerpc
| XTensa => Ok(PointerWidth::U32),
AmdGcn
Expand All @@ -922,6 +926,7 @@ impl Architecture {
| X86_64h
| Mips64(_)
| Nvptx64
| Pbc64
| 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"),
Pbc32 => Cow::Borrowed("pbc32"),
Pbc64 => Cow::Borrowed("pbc64"),
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,
"pbc32" => Pbc32,
"pbc64" => Pbc64,
"powerpc" => Powerpc,
"powerpc64" => Powerpc64,
"powerpc64le" => Powerpc64le,
Expand Down

0 comments on commit 4b7fec1

Please sign in to comment.