[llvm-commits] [LLVM, SwitchInst, case ranges] Auxiliary patch #1

Stepan Dyatkovskiy stpworld at narod.ru
Fri Oct 28 05:09:01 PDT 2011


Hi all. The main discussion branch of this feature is here:
http://llvm.org/bugs/show_bug.cgi?id=1255

We need change SwitchInst internals: replace case value type from 
"ConstantInt" to "APInt", then move case values out from operands 
collection. To do that we need add APInt::isInitialized feature. We also 
need extend SmallSet class adding Compare parameter to this template:
template <typename T, unsigned N,  typename C = std::less<T> >

Please find attached patches for review.

Regards,
Stepan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cr-apint.patch
Type: text/x-patch
Size: 2201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111028/3425dd9c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cr-smallset.patch
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111028/3425dd9c/attachment-0001.bin>


More information about the llvm-commits mailing list