jyknight added a comment. The large amount of casting to/from integers for AtomicOrderingCABI makes me think that it probably ought not actually be converted to an enum class after all. http://reviews.llvm.org/D18876