Displaying 2 results from an estimated 2 matches for "add32_reg_imm_mem".
2017 Apr 12
2
Is there a way to correlate operation to machine instruction?
For example, given a multiclass for ADD 32 bit that might produce something
like:
ADD32_REG_REG_REG (operands are all registers for a 32 bit add)
ADD32_REG_IMM_REG (srcA is a register, srcB is an immediate and dst is a
register)
ADD32_REG_IMM_MEM (srcA is a register, srcB is an immediate and dst is a
memory address)
What I'd like to do is replace an operand, for example, change srcA from a
REG to a MEM in ADD32_REG_REG_REG (so it would be ADD32_MEM_REG_REG).
Currently, I'm simply building a new machine instruction via BuildMI with...
2017 Apr 12
2
Is there a way to correlate operation to machine instruction?
...yan Taylor via llvm-dev wrote:
>
> For example, given a multiclass for ADD 32 bit that might produce
> something like:
>
> ADD32_REG_REG_REG (operands are all registers for a 32 bit add)
> ADD32_REG_IMM_REG (srcA is a register, srcB is an immediate and dst is a
> register)
> ADD32_REG_IMM_MEM (srcA is a register, srcB is an immediate and dst is a
> memory address)
>
> What I'd like to do is replace an operand, for example, change srcA from a
> REG to a MEM in ADD32_REG_REG_REG (so it would be ADD32_MEM_REG_REG).
>
> Currently, I'm simply building a new machine...