[llvm-dev] how to type-legalize a dag

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 15 14:21:49 PDT 2016


On 3/15/2016 4:16 PM, Rail Shafigulin via llvm-dev wrote:
> Below is the output of llc with a -debug-only=isel. As you could see the
> output type for load, store, and add changes from v4i32 to i32 during
> legalization. How can I preserve the output type to v4i32?

Make sure that there is a register class associated with v4i32.

See TargetLoweringBase::addRegisterClass. It's generally called in 
<target>ISelLowering.cpp.

-Krzysztof

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation


More information about the llvm-dev mailing list