[llvm-dev] LLVM IR question

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Wed Jun 6 05:50:06 PDT 2018


Zero-extend both to i16, shift one left by 8, then or. Same for all 
other integer scalar types.

There isn't any operator to do that, except maybe for some 
target-specific intrinsics.

-Krzysztof

On 6/5/2018 6:40 PM, Kenneth Adam Miller via llvm-dev wrote:
> Is there an easy straightforward way to concatenate to types into a 
> single larger type?
> 
> Such as from i8 i8 to i16?
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 

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


More information about the llvm-dev mailing list