[PATCH] Support for address space casting in order to map these on the new 'addrspacecast' IR instruction

Michele Scandale michele.scandale at gmail.com
Thu Nov 21 06:24:42 PST 2013


Hi rjmccall, rsmith,

This patch introduces a new kind of cast to support explicit address space conversions. Starting from llvm r194760 it has been added a new IR instruction named 'addrspacecast' that is used to represent conversion between address

This version of the patch now is limited to C pointers, I don't know if this would require also the extension other pointer kinds.

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

Files:
  include/clang/AST/OperationKinds.h
  lib/AST/Expr.cpp
  lib/AST/ExprConstant.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CGExprAgg.cpp
  lib/CodeGen/CGExprComplex.cpp
  lib/CodeGen/CGExprConstant.cpp
  lib/CodeGen/CGExprScalar.cpp
  lib/Edit/RewriteObjCFoundationAPI.cpp
  lib/Sema/SemaExpr.cpp
  lib/StaticAnalyzer/Core/ExprEngineC.cpp
  test/CodeGenOpenCL/address-spaces-cast.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2241.1.patch
Type: text/x-patch
Size: 7099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131121/b27982d2/attachment.bin>


More information about the cfe-commits mailing list