search for: targetregisterdesc

Displaying 4 results from an estimated 4 matches for "targetregisterdesc".

2008 Sep 02
0
[LLVMdev] Instruction MVT::ValueTypes
...ve an MVT::ValueType of v2f64. A MOVAPS register operand should > have an > MVT::ValueType of v4f32. The short answer is no. A op of a number of different VTs can map to the same instruction. However, given a register class you can get to the list of VTs that map to it. Take a look at TargetRegisterDesc. Evan > > > 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 > ________________...
2008 Sep 02
2
[LLVMdev] Instruction MVT::ValueTypes
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
2008 Sep 03
3
[LLVMdev] Instruction MVT::ValueTypes
...just bits, after all, but there is a "preference" to what should be in the register for performance reasons. It's not good to mix-and-match MOVAPD and MOVAPS on the same data. > However, given a register class you can get to > the list of VTs that map to it. Take a look at TargetRegisterDesc. Tha'ts usually not enough. For example, in an SSE operand you want to know the type of data contained in it (32-bit [or less] or 64-bit) to generate optimal code. Just knowing that it's a 128-bit vector register that can hold 8-, 16-, 32- or 64-bit data is not enough. Getting this i...
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...able for llvm::EBCInstrInfoin libLLVMEBCCodeGen.a(EBCTargetMachine.cpp.o) vtable for llvm::TargetInstrInfoImplin libLLVMCodeGen.a(TargetInstrInfoImpl.cpp.o) vtable for llvm::EBCInstrInfoin libLLVMEBCCodeGen.a(EBCInstrInfo.cpp.o) "llvm::TargetRegisterInfo::TargetRegisterInfo(llvm::TargetRegisterDesc const*, unsigned int, llvm::TargetRegisterClass const* const*, llvm::TargetRegisterClass const* const*, char const* const*, int, int, unsigned int const*, unsigned int, unsigned int const*, unsigned int)", referenced from: llvm::EBCGenRegisterInfo::EBCGenRegisterInfo(int, int)in libLLVME...