[PATCH] Introduce llvm/ADT/OptionSet.h utility class

Argyrios Kyrtzidis via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 21:23:44 PST 2016


Hi all,

The attached patch introduces ‘OptionSet’ in llvm/ADT headers, which is a utility class that makes it convenient to work with enumerators representing bit options.

We have found it useful in the swift repo (https://github.com/apple/swift/blob/master/include/swift/Basic/OptionSet.h) and I think it will be useful to other llvm projects as well.

Let me know if you think it is ok to commit in llvm repo.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: optionset.patch
Type: application/octet-stream
Size: 8265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/69aa953b/attachment.obj>


More information about the llvm-commits mailing list