[LLVMdev] The type or size of virtual registers

John Criswell criswell at illinois.edu
Thu Jan 27 11:50:19 PST 2011


On 1/27/11 3:23 AM, Qingan Li wrote:
> Hi,
>
> I wonder if there is an interface for me to access the type or size of 
> virtual registers in the SSA form?
> I have scanned the MachineOperand in CodeGen part, and failed to find 
> this kind of info for virtual registers.

The getType() method of Value * will return the LLVM type.  The 
TargetData class will provide information on size for a type on a 
particular hardware platform.

-- John T.

>
> -- 
> Best regards,
>
> Li Qingan
>




More information about the llvm-dev mailing list