[LLVMdev] The type or size of virtual registers in machineinstr

Qingan Li ww345ww at gmail.com
Fri Jan 28 18:34:11 PST 2011


Hi,

I want to know what is the type or size of a virtual register in a
Machineinstr::MachineOperand (If this MachineOperand is a register). For
example, what is the size of reg16385 in the following MachineInstr. I know
now in the llvm bitcode, the type of a Instruction could be obtained from
the Value::GetType(), but what is the counterpart in MachineInstr (not
derived from class Value)?

 %reg16385<def> = MOV32rm <fi#0>, 1, %reg0, 0, %reg0; mem:LD4[%x_addr]
GR32:%reg16385

-- 
Best regards,

Li Qingan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110129/9cb9b514/attachment.html>


More information about the llvm-dev mailing list