[LLVMdev] Instruction MVT::ValueTypes

David Greene dag at cray.com
Tue Sep 2 10:42:40 PDT 2008


Is there an easy way to get the MVT::ValueType of a MachineInstruction 
MachineOperand?  For example, the register operand of an x86 MOVAPD should
have an MVT::ValueType of v2f64.  A MOVAPS register operand should have an
MVT::ValueType of v4f32.

So given a MachineInstruction and its MachineOperands is there some easy way
to derive this information?  I don't see anything in TargetInstrInfo that 
would help.

                                                 -Dave



More information about the llvm-dev mailing list