Skip to content

Commit

Permalink
Rename EvmCallData* (evm_call_data*) insts to EvmCalldata* (evm_calld…
Browse files Browse the repository at this point in the history
…ata*)
  • Loading branch information
sbillig committed Dec 2, 2024
1 parent d8861bf commit b70cfde
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions crates/ir/src/inst/evm/inst_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ pub struct EvmInstSet(
evm::EvmOrigin,
evm::EvmCaller,
evm::EvmCallValue,
evm::EvmCallDataLoad,
evm::EvmCallDataCopy,
evm::EvmCallDataSize,
evm::EvmCalldataLoad,
evm::EvmCalldataCopy,
evm::EvmCalldataSize,
evm::EvmCodeSize,
evm::EvmCodeCopy,
evm::EvmExtCodeCopy,
Expand Down
6 changes: 3 additions & 3 deletions crates/ir/src/inst/evm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ pub struct EvmCallValue {}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Inst)]
#[inst(side_effect(crate::inst::SideEffect::Read))]
pub struct EvmCallDataLoad {
pub struct EvmCalldataLoad {
#[inst(value)]
data_offset: ValueId,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Inst)]
#[inst(side_effect(crate::inst::SideEffect::Read))]
pub struct EvmCallDataSize {}
pub struct EvmCalldataSize {}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Inst)]
#[inst(side_effect(crate::inst::SideEffect::Write))]
pub struct EvmCallDataCopy {
pub struct EvmCalldataCopy {
#[inst(value)]
dst_addr: ValueId,
#[inst(value)]
Expand Down
6 changes: 3 additions & 3 deletions crates/ir/src/inst/inst_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ define_inst_set_base! {
evm::EvmOrigin,
evm::EvmCaller,
evm::EvmCallValue,
evm::EvmCallDataLoad,
evm::EvmCallDataCopy,
evm::EvmCallDataSize,
evm::EvmCalldataLoad,
evm::EvmCalldataCopy,
evm::EvmCalldataSize,
evm::EvmCodeSize,
evm::EvmCodeCopy,
evm::EvmGasPrice,
Expand Down
6 changes: 3 additions & 3 deletions crates/parser/src/inst/evm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ super::impl_inst_build! {EvmBalance, (contract_addr: ValueId)}
super::impl_inst_build! {EvmOrigin, ()}
super::impl_inst_build! {EvmCaller, ()}
super::impl_inst_build! {EvmCallValue, ()}
super::impl_inst_build! {EvmCallDataLoad, (data_offset: ValueId)}
super::impl_inst_build! {EvmCallDataCopy, (dst_addr: ValueId, data_offset: ValueId, len: ValueId)}
super::impl_inst_build! {EvmCallDataSize, ()}
super::impl_inst_build! {EvmCalldataLoad, (data_offset: ValueId)}
super::impl_inst_build! {EvmCalldataCopy, (dst_addr: ValueId, data_offset: ValueId, len: ValueId)}
super::impl_inst_build! {EvmCalldataSize, ()}
super::impl_inst_build! {EvmCodeSize, ()}
super::impl_inst_build! {EvmCodeCopy, (dst_addr: ValueId, code_offset: ValueId, len: ValueId)}
super::impl_inst_build! {EvmGasPrice, ()}
Expand Down

0 comments on commit b70cfde

Please sign in to comment.