llvm-project/llvm/lib/Bitcode/Writer
Alexander Richardson 6bcf2ba2f0 Allow creating llvm::Function in non-zero address spaces
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.

This is based on https://reviews.llvm.org/D37054 but without the changes to
make passing a Module to Function::Create() mandatory. I have also added
some more tests and fixed the LLParser to accept call instructions for
types in the program address space.

Reviewed By: bjope

Differential Revision: https://reviews.llvm.org/D47541

llvm-svn: 340519
2018-08-23 09:25:17 +00:00
..
BitWriter.cpp Pass a reference to a module to the bitcode writer. 2018-02-14 19:11:32 +00:00
BitcodeWriter.cpp Allow creating llvm::Function in non-zero address spaces 2018-08-23 09:25:17 +00:00
BitcodeWriterPass.cpp [Debugify] Don't apply DI before the bitcode writer pass 2018-06-04 00:11:49 +00:00
CMakeLists.txt
LLVMBuild.txt Add missing library dependency. 2017-06-28 00:05:27 +00:00
ValueEnumerator.cpp [STLExtras] Add distance() for ranges, pred_size(), and succ_size() 2018-05-10 23:01:54 +00:00
ValueEnumerator.h Modularize: Include some required headers 2017-11-03 20:24:19 +00:00