[PATCH] Reject bitcasts between address spaces with different sizes

Matt Arsenault Matthew.Arsenault at amd.com
Tue Jul 2 20:16:37 PDT 2013


Reject bitcasts between address spaces with different sizes
    
Autoupgrade from address space bitcasts in existing binaries
to ptrtoint / inttoptr. This conversion does not happen for
bitcasts between address spaces with the same pointer size for now.
    
For bitcode, turn bitcasts from pointers to different address
spaces into ptrtoint -> inttoptr to the different address space.
    
For text IR, the module fails verification.
    
This was discussed a while ago in this thread:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-September/053277.html


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

Files:
  docs/LangRef.rst
  include/llvm/AutoUpgrade.h
  lib/AsmParser/LLParser.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/IR/AutoUpgrade.cpp
  lib/IR/Verifier.cpp
  test/Bitcode/bitcast-upgrade.ll
  test/Bitcode/bitcast.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1083.1.patch
Type: text/x-patch
Size: 11441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130702/782a67d4/attachment.bin>


More information about the llvm-commits mailing list