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

Michele Scandale michele.scandale at gmail.com
Mon Dec 2 12:45:24 PST 2013


Kindly reup!

-Michele

On 11/30/2013 09:09 PM, Michele Scandale wrote:
>    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
>




More information about the cfe-commits mailing list