[PATCH] D37057: [clang] Require address space to be specified when creating functions (4/4)
Dylan McKay via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 04:04:27 PDT 2017
dylanmckay created this revision.
Herald added subscribers: wdng, jholewinski.
This makes it necessary to specify address spaces when creating new
functions.
Most users won't have to worry about this as all of the
'getOrInsertFunction' functions on Module will default to the program
address space.
An overload has been added to Function::Create to abstract away the
details for most callers.
https://reviews.llvm.org/D37057
Files:
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGCUDANV.cpp
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CGException.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGGPUBuiltin.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCGNU.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37057.112329.patch
Type: text/x-patch
Size: 20351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170823/388af056/attachment.bin>
More information about the llvm-commits
mailing list