[llvm-commits] [PATCH] Support for non-32bit return values from CC

Villmow, Micah Micah.Villmow at amd.com
Wed Jul 25 10:37:49 PDT 2012


It looks like with LLVM 3.1, vselect was added and vsetcc and setcc were combined
, but there are places that still assume the return value of the condition is i1.
However, there is a callback getSetCCResultType, this patch adds in support to
various locations for supporting setCC result types that are NOT i1.

This should apply cleanly to LLVM 3.1 but might not apply to TOT. After I get
feedback that this approach is OK, I'll port it to TOT. This only shows up on
backends that support vectors and don't support i1 as a SetCC result type.

if this approach is not ok, then I need to write lots of custom code in
my backend to work around this issue, so early feedback is welcome!

Thanks for any feedback,
Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120725/d1d0ec49/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: non_boolean_CC_patch.diff
Type: application/octet-stream
Size: 9111 bytes
Desc: non_boolean_CC_patch.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120725/d1d0ec49/attachment.obj>


More information about the llvm-commits mailing list