mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 08:24:44 +00:00
Remove CompositeRead statement and clean up statement visitor traits
This commit is contained in:
parent
eb841b3a88
commit
100831daaf
3 changed files with 271 additions and 400 deletions
|
@ -717,7 +717,7 @@ pub enum SrcOperand<Id> {
|
|||
Reg(Id),
|
||||
RegOffset(Id, i32),
|
||||
Imm(ImmediateValue),
|
||||
VecIndex(Id, u8),
|
||||
VecMember(Id, u8),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
|
|
@ -1856,7 +1856,7 @@ SrcOperand: ast::SrcOperand<&'input str> = {
|
|||
<x:ImmediateValue> => ast::SrcOperand::Imm(x),
|
||||
<mem_op:MemberOperand> => {
|
||||
let (reg, idx) = mem_op;
|
||||
ast::SrcOperand::VecIndex(reg, idx)
|
||||
ast::SrcOperand::VecMember(reg, idx)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue