1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/lib/Bitcode/Writer
Chris Lattner 9ec640a902 This is a major cleanup of the instruction metadata interfaces that
I asked Devang to do back on Sep 27.  Instead of going through the
MetadataContext class with methods like getMD() and getMDs(), just
ask the instruction directly for its metadata with getMetadata()
and getAllMetadata().

This includes a variety of other fixes and improvements: previously
all Value*'s were bloated because the HasMetadata bit was thrown into
value, adding a 9th bit to a byte.  Now this is properly sunk down to
the Instruction class (the only place where it makes sense) and it
will be folded away somewhere soon.

This also fixes some confusion in getMDs and its clients about 
whether the returned list is indexed by the MDID or densely packed.
This is now returned sorted and densely packed and the comments make
this clear.

This introduces a number of fixme's which I'll follow up on.

llvm-svn: 92235
2009-12-28 23:41:32 +00:00
..
BitcodeWriter.cpp This is a major cleanup of the instruction metadata interfaces that 2009-12-28 23:41:32 +00:00
BitcodeWriterPass.cpp eliminate the std::ostream forms of the bitcode writing APIs. 2009-08-23 07:49:08 +00:00
BitWriter.cpp Make LLVM command-line tools overwrite their output files without -f. 2009-08-25 15:34:52 +00:00
CMakeLists.txt
Makefile
Serialize.cpp Change errs() to dbgs(). 2009-12-24 00:06:26 +00:00
SerializeAPFloat.cpp
SerializeAPInt.cpp
ValueEnumerator.cpp This is a major cleanup of the instruction metadata interfaces that 2009-12-28 23:41:32 +00:00
ValueEnumerator.h bitcode writer support for blockaddress. 2009-10-28 05:24:40 +00:00