[PATCH] Add pointer types to global named register

Renato Golin renato.golin at linaro.org
Tue May 27 02:58:26 PDT 2014


Hi rnk, rafael,

This patch adds support for pointer types in global named registers variables.
It'll be lowered as a pair of read/write_register and inttoptr/ptrtoint calls.
Also adds some early checks on types on SemaDecl to avoid the assert.

Tests changed accordingly. (PR19837)

http://reviews.llvm.org/D3919

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/CodeGen/CGExpr.cpp
  lib/Sema/SemaDecl.cpp
  test/CodeGen/named_reg_global.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3919.9827.patch
Type: text/x-patch
Size: 4912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140527/8d3ddff3/attachment.bin>


More information about the cfe-commits mailing list