[PATCH] Support for address space casting in order to map these on the new 'addrspacecast' IR instruction
Michele Scandale
michele.scandale at gmail.com
Sat Nov 30 12:09:29 PST 2013
Extended version of the original patch that introduces a new CastKind in order to represent the address space conversion. It adds the support also for C++ cast operators: reintepret_cast is mapped to CK_BitCast that is lowered in a 'ptrtoint+inttoptr' pair, while static_cast is mapped to the new CK_AddressSpaceConversion that is lowered to 'addrspacecast'.
Hi pekka.jaaskelainen, rjmccall, rsmith,
http://llvm-reviews.chandlerc.com/D2241
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D2241?vs=5784&id=5830#toc
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/SemaCast.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
lib/StaticAnalyzer/Core/ExprEngineC.cpp
test/CodeGenCUDA/address-space-conversion.cu
test/CodeGenCXX/address-space-conversions.cpp
test/CodeGenOpenCL/address-space-conversion.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2241.5.patch
Type: text/x-patch
Size: 11811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131130/8bb1c96d/attachment.bin>
More information about the cfe-commits
mailing list