rename target to polkavm

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-05-02 08:47:44 +02:00
parent 9fc24af355
commit 336fc63f1d
112 changed files with 876 additions and 873 deletions
@@ -72,10 +72,10 @@ impl Literal {
/// Converts the literal into its LLVM.
pub fn into_llvm<'ctx, D>(
self,
context: &revive_llvm_context::EraVMContext<'ctx, D>,
) -> anyhow::Result<revive_llvm_context::EraVMArgument<'ctx>>
context: &revive_llvm_context::PolkaVMContext<'ctx, D>,
) -> anyhow::Result<revive_llvm_context::PolkaVMArgument<'ctx>>
where
D: revive_llvm_context::EraVMDependency + Clone,
D: revive_llvm_context::PolkaVMDependency + Clone,
{
match self.inner {
LexicalLiteral::Boolean(inner) => {
@@ -97,7 +97,7 @@ impl Literal {
BooleanLiteral::True => num::BigUint::one(),
};
Ok(revive_llvm_context::EraVMArgument::new_with_constant(
Ok(revive_llvm_context::PolkaVMArgument::new_with_constant(
value, constant,
))
}
@@ -127,7 +127,7 @@ impl Literal {
}
.expect("Always valid");
Ok(revive_llvm_context::EraVMArgument::new_with_constant(
Ok(revive_llvm_context::PolkaVMArgument::new_with_constant(
value, constant,
))
}
@@ -201,7 +201,7 @@ impl Literal {
};
if hex_string.len() > revive_common::BYTE_LENGTH_FIELD * 2 {
return Ok(revive_llvm_context::EraVMArgument::new_with_original(
return Ok(revive_llvm_context::PolkaVMArgument::new_with_original(
r#type.const_zero().as_basic_value_enum(),
string,
));
@@ -221,7 +221,7 @@ impl Literal {
)
.expect("The value is valid")
.as_basic_value_enum();
Ok(revive_llvm_context::EraVMArgument::new_with_original(
Ok(revive_llvm_context::PolkaVMArgument::new_with_original(
value, string,
))
}