summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2014-05-19 18:15:42 +0000
committerRenato Golin <renato.golin@linaro.org>2014-05-19 18:15:42 +0000
commit5df23100803789e9cac8dcec85d23cace2dafe46 (patch)
tree1d8538fe31dfab2f0204187619b8b53fa42462b5 /lib/CodeGen/CGExprConstant.cpp
parentc83d828a7978c267d9bd1331dd1bd41ee72feb55 (diff)
downloadclang-5df23100803789e9cac8dcec85d23cace2dafe46.tar.gz
clang-5df23100803789e9cac8dcec85d23cace2dafe46.tar.bz2
clang-5df23100803789e9cac8dcec85d23cace2dafe46.tar.xz
Non-allocatable Global Named Register
This patch implements global named registers in Clang, lowering to the just created intrinsics in LLVM (@llvm.read/write_register). A new type of LValue had to be created (Register), which just adds support to carry the metadata node containing the name of the register. Two new methods to emit loads and stores interoperate with another to emit the named metadata node. No guarantees are being made and only non-allocatable global variable named registers are being supported. Local named register support is unchanged. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions