[PATCH] D37054: Require address space to be specified when creating functions
Dylan McKay via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 01:57:31 PDT 2017
dylanmckay created this revision.
Herald added subscribers: eraman, nhaehnle, wdng, jfb, sdardis, mehdi_amini.
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/D37054
Files:
docs/LangRef.rst
include/llvm/IR/Function.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/IR/AsmWriter.cpp
lib/IR/AutoUpgrade.cpp
lib/IR/Core.cpp
lib/IR/Function.cpp
lib/IR/Module.cpp
lib/Linker/IRMover.cpp
lib/Linker/LinkModules.cpp
lib/Target/AMDGPU/AMDGPUOpenCLImageTypeLoweringPass.cpp
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
lib/Target/Mips/Mips16HardFloat.cpp
lib/Target/X86/X86WinEHState.cpp
lib/Transforms/IPO/ArgumentPromotion.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
lib/Transforms/IPO/ExtractGV.cpp
lib/Transforms/IPO/LowerTypeTests.cpp
lib/Transforms/IPO/MergeFunctions.cpp
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
lib/Transforms/Instrumentation/GCOVProfiling.cpp
lib/Transforms/Instrumentation/InstrProfiling.cpp
lib/Transforms/Utils/CloneFunction.cpp
lib/Transforms/Utils/CloneModule.cpp
lib/Transforms/Utils/CodeExtractor.cpp
lib/Transforms/Utils/ModuleUtils.cpp
lib/Transforms/Utils/SanitizerStats.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Bitcode/function-nonzero-address-spaces.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37054.112312.patch
Type: text/x-patch
Size: 35793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170823/34fe3111/attachment-0001.bin>
More information about the llvm-commits
mailing list