d044f65e37f09a6c69da4d002c1e8957bd4d99c0 |
|
09-May-2013 |
Jordan Rose <jordan_rose@apple.com> |
Rewrite assert to avoid warning when the record element type is byte-sized. BitstreamWriter asserts that when blob data is written from the record element vector, each element fits in a byte. However, if the record elements are specified as a SmallVector of 'char', this causes a warning from -Wtautological-constant-out-of-range-compare. Fix this by using llvm::isUInt<8> instead of a plain comparison against 256. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181545 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
ef7964c1b78f57e277e74bda4f38e1143d1363fe |
|
01-Apr-2013 |
Joe Abbey <jabbey@arxan.com> |
Whitespace cleanup git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178454 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
674be02d525d4e24bc6943ed9274958c580bcfbc |
|
10-Jan-2013 |
Jakub Staszak <kubastaszak@gmail.com> |
Fix include guards so they exactly match file names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
255f89faee13dc491cb64fbeae3c763e7e2ea4e6 |
|
03-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort the #include lines for the include/... tree with the script. AKA: Recompile *ALL* the source code! This one went much better. No manual edits here. I spot-checked for silliness and grep-checked for really broken edits and everything seemed good. It all still compiles. Yell if you see something that looks goofy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169133 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
170a15e98dc6900df1ae40d03c5f0622d792fb45 |
|
25-Nov-2012 |
Joe Abbey <jabbey@arxan.com> |
Code Custodian: - Widespread trailing space removal - A dash of OCD spacing to block align enums - joined a line that probably needed 80 cols a while back git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168566 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
578d5f4b80a52906a31f1b22329bc2113b79a866 |
|
21-Aug-2012 |
Duncan Sands <baldrick@free.fr> |
Pacify PVS-Studio by changing the type rather than doing a cast, a tweak suggested by David Blaikie. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162286 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
91fcb7f42099f11f8ea298c4b231d801998bf2dd |
|
21-Aug-2012 |
Duncan Sands <baldrick@free.fr> |
PVS-Studio noticed that EmitVBR64 would perform undefined behaviour if the number of bits was bigger than 32. I checked every use of this function that I could find and it looks like the maximum number of bits is 32, so I've added an assertion checking this property, and a type cast to (hopefully) stop PVS-Studio from warning about this in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162277 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
9ca3b8984794cb62d4e3bd0ccc16d2404d85b96b |
|
21-Mar-2012 |
Jan Sjödin <jan_sjodin@yahoo.com> |
Fix windows compilation warning. Patch by Micah. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153215 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
88e48e7d58eeb138e30ce21592eb903c7f193c42 |
|
29-Feb-2012 |
Daniel Dunbar <daniel@zuster.org> |
BitstreamWriter: Use SmallVector::append instead of multiple push_back calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151755 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
acbceeae4d7bdfbbc3437c60a5a3e26449888a15 |
|
29-Feb-2012 |
Daniel Dunbar <daniel@zuster.org> |
BitstreamWriter: Change primary output buffer to be a SmallVector instead of an std::vector. - Good for 1-2% speedup on writing PCH for Cocoa.h. - Clang side API match to follow shortly, there wasn't an easy way to make this non-breaking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151750 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
a8d16bbdfba55b309234cecbabad015a13683781 |
|
29-Feb-2012 |
Daniel Dunbar <daniel@zuster.org> |
BitstreamWriter: Isolate access to the underlying buffer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151749 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
02a248afe310c86aea682302fc587f22bb999fa7 |
|
29-Feb-2012 |
Daniel Dunbar <daniel@zuster.org> |
BitcodeWriter: Expose less implementation details -- make BackpatchWord private and remove getBuffer(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
50bee42b54cd9aec5f49566307df2b0cf23afcf6 |
|
05-Feb-2012 |
Craig Topper <craig.topper@gmail.com> |
Convert assert(0) to llvm_unreachable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149849 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
c62a4b0f03269fdad85fa683d57f1bd2b80a5c7a |
|
18-Aug-2010 |
Chris Lattner <sabre@nondot.org> |
don't emit zero bit fields with Emit, fixing undefined behavior, PR7778 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111336 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
f451cb870efcf9e0302d25ed05f4cac6bb494e42 |
|
10-Feb-2010 |
Dan Gohman <gohman@apple.com> |
Fix "the the" and similar typos. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95781 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
2928c83b010f7cfdb0f819199d806f6942a7d995 |
|
06-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Pass StringRef by value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86251 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
2b1d3d76d78353d3d7c793d437c6ee355dd0f9ab |
|
24-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add StringRef based APIs to BitstreamWriter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79904 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
0648f54b889e0f627172acaa1d622f8d3d9f5409 |
|
08-Apr-2009 |
Douglas Gregor <dgregor@apple.com> |
Use 8 instead of CHAR_BIT git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68616 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
b7e7886c79cd273f68eb47b534135322fa76c68d |
|
08-Apr-2009 |
Douglas Gregor <dgregor@apple.com> |
Add BitstreamWriter::GetCurrentBitNo, to report where we are in the output bitstream git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
298a82dd0d042479e419c4fa2219c1a08c1becc4 |
|
07-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Add a new EmitRecordWithBlob API that allows a blob to be emitted without converting each byte to a uint64_t to stick in a SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
dcd006bf7be859367f35db2417a42c83451431e8 |
|
06-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
add a new Blob encoding abbreviation for bitcode files that emits elements in a form that is efficient for the reader to just get a pointer in memory and start reading. APIs to do efficient reading and writing are still todo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
96153a45fd706db8731ba17bdf848912c8033e1d |
|
06-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
simplify code a bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68461 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
40728791f5c8c77d3460a30fcdce6d1fac72aa0d |
|
06-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
simplify to reduce indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
d3ff4a188e823baa141c288d31eb532ddf632b6e |
|
21-Feb-2009 |
Misha Brukman <brukman+llvm@gmail.com> |
Removed trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
38e77214558f3a5f917896df575de1c01ee60f47 |
|
19-Dec-2008 |
Chris Lattner <sabre@nondot.org> |
Add support for writing LLVM IR to a specified BitstreamWriter. Patch by Lukasz Janyst! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61251 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
6fa6a32e4e2fdbb77c82fd7f64a7232cdcac994e |
|
09-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
Add a little wrapper header that is put around bc files when emitting bc files for modules with a target triple that indicates they are for darwin. The reader unconditionally handles this, and the writer could turn this on for more targets if we care. This change has two benefits for darwin: 1) it allows us to encode the cpu type of the file in an easy to read place that doesn't require decoding the bc file. 2) it works around a bug (IMO) in darwin's AR where it is incapable of handling files that are not a multiple of 8 bytes long. BC files are only guaranteed to be multiples of 4 bytes long. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53275 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
34cd4a484e532cc463fd5a4bf59b88d13c5467c1 |
|
05-May-2008 |
Evan Cheng <evan.cheng@apple.com> |
Fix more -Wshorten-64-to-32 warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
7ed47a13356daed2a34cd2209a31f92552e3bdd8 |
|
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
Don't attribute in file headers anymore. See llvmdev for the discussion of this change. Boy are my fingers tired. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
cdf2b3b2f88d6f961b664e3f67a8ee37b46b0d27 |
|
08-Oct-2007 |
Dan Gohman <gohman@apple.com> |
Add explicit keywords. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
b55a5803b2ebea65c1ab404af05c843599e2a7d3 |
|
06-May-2007 |
Chris Lattner <sabre@nondot.org> |
allow zero-length arrays git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
332376bc601fcff8d8a4558c2834ddd0189c12d1 |
|
06-May-2007 |
Jeff Cohen <jeffc@jolt-lang.org> |
Unbreak VC++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
07b54242a8763d0bff1536f17ce0e7c51ccd805e |
|
06-May-2007 |
Chris Lattner <sabre@nondot.org> |
fix a bug I introduced when I merged some code together git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
28e4c4c9b3b9bf8939405df24b87062c1f10a9a3 |
|
05-May-2007 |
Chris Lattner <sabre@nondot.org> |
add a 6-bit encoding type for strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36770 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
e17b658c792abd4a1552144b8a8808e44970da76 |
|
05-May-2007 |
Chris Lattner <sabre@nondot.org> |
Implement support for globally associating abbrevs with block IDs, which relieves us from having to emit the abbrevs into each instance of the block. This shrinks kc.bit from 3368K to 3333K, but will be a more significant win once instructions are abbreviated. The VST went from: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total Size: 1.29508e+07b/1.61885e+06B/404713W Average Size: 5522.73b/690.342B/172.585W % of file: 48.0645 Tot/Avg SubBlocks: 0/0 Tot/Avg Abbrevs: 7035/3 Tot/Avg Records: 120924/51.5667 % Abbrev Recs: 100 to: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total Size: 1.26713e+07b/1.58391e+06B/395978W Average Size: 5403.53b/675.442B/168.86W % of file: 47.5198 Tot/Avg SubBlocks: 0/0 Tot/Avg Abbrevs: 0/0 Tot/Avg Records: 120924/51.5667 % Abbrev Recs: 100 because we didn't emit the same 3 abbrevs 2345 times :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
8d42fc3da2afb33ded8a24b3c92bd9aa3c869b3e |
|
04-May-2007 |
Chris Lattner <sabre@nondot.org> |
use a template to eliminate manual code duplication git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
3c074f61ed2bd1d8d48c3851d827a06b80d2608b |
|
04-May-2007 |
Chris Lattner <sabre@nondot.org> |
add support for array abbreviations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
a727d5502c8e23c090da658bf14c5ebc1169a070 |
|
04-May-2007 |
Chris Lattner <sabre@nondot.org> |
minor cleanups. Add provisions for a new standard BLOCKINFO_BLOCK block type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
299b2d2070165eccea3fb61f7387fa016b847338 |
|
04-May-2007 |
Chris Lattner <sabre@nondot.org> |
refcount BitCodeAbbrev objects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
73f3fd775f7484bc2de080a494a08f019483547f |
|
23-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
Fix a bug in bitstream writer handling abbrevs, add value symtab git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
2a5e354f2053fccfa35aa997935aa7100f4c2223 |
|
23-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
minor cleanups git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
6d4135a62e9b6af2417748ab81da8dad5e2059d9 |
|
23-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
finish implementation of basic abbrev writing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
36d5e7d31be61f631ace0488f0d6cd71b8f31a16 |
|
23-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
first part of implementation of abbrevs. The writer isn't fully there yet and the reader doesn't handle them at all yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
a0c96a068ca7027644b5f1972f9c388fa542d278 |
|
22-Apr-2007 |
Jeff Cohen <jeffc@jolt-lang.org> |
Teach Visual Studio about Bitcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36341 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|
b35ca9db9ce25e6b61aa3eaee41464f647d34899 |
|
22-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
Define the content-independent interfaces to read/write bitcode files and the high-level interface to read/write LLVM IR bitcode files. This is a work in progress. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Bitcode/BitstreamWriter.h
|