Change capitalization of Spirv to SpirV
This matches the capitalization of RiscV
This commit is contained in:
parent
f3441348e0
commit
0e34b73996
3 changed files with 22 additions and 22 deletions
|
@ -164,7 +164,7 @@ pub use hexagon::{HexagonInlineAsmReg, HexagonInlineAsmRegClass};
|
|||
pub use mips::{MipsInlineAsmReg, MipsInlineAsmRegClass};
|
||||
pub use nvptx::{NvptxInlineAsmReg, NvptxInlineAsmRegClass};
|
||||
pub use riscv::{RiscVInlineAsmReg, RiscVInlineAsmRegClass};
|
||||
pub use spirv::{SpirvInlineAsmReg, SpirvInlineAsmRegClass};
|
||||
pub use spirv::{SpirVInlineAsmReg, SpirVInlineAsmRegClass};
|
||||
pub use x86::{X86InlineAsmReg, X86InlineAsmRegClass};
|
||||
|
||||
#[derive(Copy, Clone, Encodable, Decodable, Debug, Eq, PartialEq, Hash)]
|
||||
|
@ -179,7 +179,7 @@ pub enum InlineAsmArch {
|
|||
Hexagon,
|
||||
Mips,
|
||||
Mips64,
|
||||
Spirv,
|
||||
SpirV,
|
||||
}
|
||||
|
||||
impl FromStr for InlineAsmArch {
|
||||
|
@ -197,7 +197,7 @@ impl FromStr for InlineAsmArch {
|
|||
"hexagon" => Ok(Self::Hexagon),
|
||||
"mips" => Ok(Self::Mips),
|
||||
"mips64" => Ok(Self::Mips64),
|
||||
"spirv" => Ok(Self::Spirv),
|
||||
"spirv" => Ok(Self::SpirV),
|
||||
_ => Err(()),
|
||||
}
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ pub enum InlineAsmReg {
|
|||
Nvptx(NvptxInlineAsmReg),
|
||||
Hexagon(HexagonInlineAsmReg),
|
||||
Mips(MipsInlineAsmReg),
|
||||
Spirv(SpirvInlineAsmReg),
|
||||
SpirV(SpirVInlineAsmReg),
|
||||
}
|
||||
|
||||
impl InlineAsmReg {
|
||||
|
@ -269,8 +269,8 @@ impl InlineAsmReg {
|
|||
InlineAsmArch::Mips | InlineAsmArch::Mips64 => {
|
||||
Self::Mips(MipsInlineAsmReg::parse(arch, has_feature, target, &name)?)
|
||||
}
|
||||
InlineAsmArch::Spirv => {
|
||||
Self::Spirv(SpirvInlineAsmReg::parse(arch, has_feature, target, &name)?)
|
||||
InlineAsmArch::SpirV => {
|
||||
Self::SpirV(SpirVInlineAsmReg::parse(arch, has_feature, target, &name)?)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -314,7 +314,7 @@ pub enum InlineAsmRegClass {
|
|||
Nvptx(NvptxInlineAsmRegClass),
|
||||
Hexagon(HexagonInlineAsmRegClass),
|
||||
Mips(MipsInlineAsmRegClass),
|
||||
Spirv(SpirvInlineAsmRegClass),
|
||||
SpirV(SpirVInlineAsmRegClass),
|
||||
}
|
||||
|
||||
impl InlineAsmRegClass {
|
||||
|
@ -327,7 +327,7 @@ impl InlineAsmRegClass {
|
|||
Self::Nvptx(r) => r.name(),
|
||||
Self::Hexagon(r) => r.name(),
|
||||
Self::Mips(r) => r.name(),
|
||||
Self::Spirv(r) => r.name(),
|
||||
Self::SpirV(r) => r.name(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -343,7 +343,7 @@ impl InlineAsmRegClass {
|
|||
Self::Nvptx(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Nvptx),
|
||||
Self::Hexagon(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Hexagon),
|
||||
Self::Mips(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Mips),
|
||||
Self::Spirv(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::Spirv),
|
||||
Self::SpirV(r) => r.suggest_class(arch, ty).map(InlineAsmRegClass::SpirV),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -366,7 +366,7 @@ impl InlineAsmRegClass {
|
|||
Self::Nvptx(r) => r.suggest_modifier(arch, ty),
|
||||
Self::Hexagon(r) => r.suggest_modifier(arch, ty),
|
||||
Self::Mips(r) => r.suggest_modifier(arch, ty),
|
||||
Self::Spirv(r) => r.suggest_modifier(arch, ty),
|
||||
Self::SpirV(r) => r.suggest_modifier(arch, ty),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -385,7 +385,7 @@ impl InlineAsmRegClass {
|
|||
Self::Nvptx(r) => r.default_modifier(arch),
|
||||
Self::Hexagon(r) => r.default_modifier(arch),
|
||||
Self::Mips(r) => r.default_modifier(arch),
|
||||
Self::Spirv(r) => r.default_modifier(arch),
|
||||
Self::SpirV(r) => r.default_modifier(arch),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -403,7 +403,7 @@ impl InlineAsmRegClass {
|
|||
Self::Nvptx(r) => r.supported_types(arch),
|
||||
Self::Hexagon(r) => r.supported_types(arch),
|
||||
Self::Mips(r) => r.supported_types(arch),
|
||||
Self::Spirv(r) => r.supported_types(arch),
|
||||
Self::SpirV(r) => r.supported_types(arch),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -428,7 +428,7 @@ impl InlineAsmRegClass {
|
|||
InlineAsmArch::Mips | InlineAsmArch::Mips64 => {
|
||||
Self::Mips(MipsInlineAsmRegClass::parse(arch, name)?)
|
||||
}
|
||||
InlineAsmArch::Spirv => Self::Spirv(SpirvInlineAsmRegClass::parse(arch, name)?),
|
||||
InlineAsmArch::SpirV => Self::SpirV(SpirVInlineAsmRegClass::parse(arch, name)?),
|
||||
})
|
||||
})
|
||||
}
|
||||
|
@ -444,7 +444,7 @@ impl InlineAsmRegClass {
|
|||
Self::Nvptx(r) => r.valid_modifiers(arch),
|
||||
Self::Hexagon(r) => r.valid_modifiers(arch),
|
||||
Self::Mips(r) => r.valid_modifiers(arch),
|
||||
Self::Spirv(r) => r.valid_modifiers(arch),
|
||||
Self::SpirV(r) => r.valid_modifiers(arch),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -587,7 +587,7 @@ pub fn allocatable_registers(
|
|||
mips::fill_reg_map(arch, has_feature, target, &mut map);
|
||||
map
|
||||
}
|
||||
InlineAsmArch::Spirv => {
|
||||
InlineAsmArch::SpirV => {
|
||||
let mut map = spirv::regclass_map();
|
||||
spirv::fill_reg_map(arch, has_feature, target, &mut map);
|
||||
map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue