[llvm-commits] [PATCH] [Support][Endian] Add support for specifying the alignment and native unaligned types.

Michael Spencer bigcheesegs at gmail.com
Mon Dec 24 22:37:09 PST 2012


  * Simplified AlignedCharArrayUnion

  I attempted to fix the UB in read and write, however, this doesn't work in clang :(. I think it would only work if the typedef isn't accessed via indirection. alignof(aligned_ulittle32_t) is correct, but it doesn't generate more aligned loads than 1.

Hi rsmith, chandlerc,

http://llvm-reviews.chandlerc.com/D200

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D200?vs=499&id=582#toc

Files:
  include/llvm/Support/AlignOf.h
  include/llvm/Support/Endian.h
  unittests/Support/AlignOfTest.cpp
  unittests/Support/EndianTest.cpp
  utils/yaml2obj/yaml2obj.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D200.3.patch
Type: text/x-patch
Size: 17742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121224/879a1ecc/attachment.bin>


More information about the llvm-commits mailing list