History log of /external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
e3ba15c794839abe076e3e2bdf6c626396a19d4d 12-Oct-2013 Will Dietz <wdietz2@illinois.edu> Add missing #include's to cctype when using isdigit/alpha/etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192519 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
dd5af27a74a01f0d03356cea15d3a403f4964f8b 25-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> keep only the StringRef version of getFileOrSTDIN.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184826 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
87d0b9ed1462705dd9bf1cb7f67d0bf03af776c8 12-Feb-2013 Guy Benyei <guy.benyei@intel.com> Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
8620bd31789f03c21d2d4c0885f1d9f86345b878 11-Feb-2013 Bill Wendling <isanbard@gmail.com> Update with attribute group IDs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174847 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
4156ca76e31877b17063a6e01fb7f1dad771c5aa 20-Jan-2013 Chris Lattner <sabre@nondot.org> switch llvm-bcanalyzer onto the new cursor APIs, allowing deletion of
the old ReadRecord methods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172952 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
bc837200ebdef6d41a33d23019f428fb0579d226 19-Jan-2013 Chris Lattner <sabre@nondot.org> fix method name.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172921 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
f010c464a11444733ec67e31aace8bcebeaf2588 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Sort the #include lines for tools/...

Again, tools are trickier to pick the main module header for than
library source files. I've started to follow the pattern of using
LLVMContext.h when it is included as a stub for program source files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
3defc0bfa600cc253f0cba0fe781aa49435d968a 28-Nov-2012 Bill Wendling <isanbard@gmail.com> Add back support for reading and parsing 'deplibs'.

This is for backwards compatibility for pre-3.x bc files. The code reads the
code, but does nothing with it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
efd08d413c077956478fbde90fd65aa6f179bb39 27-Nov-2012 Bill Wendling <isanbard@gmail.com> Remove the dependent libraries feature.

The dependent libraries feature was never used and has bit-rotted. Remove it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
59324297650c12a8dccf1a7ad650a9e895fdc17e 06-Sep-2012 Roman Divacky <rdivacky@freebsd.org> Stop casting away const qualifier needlessly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163258 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
a759eb3bb9fe50832289fec522d5d0b5dd171af2 05-Sep-2012 Jan Wen Voung <jvoung@google.com> Fix a bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163242 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
73e562a95ad489827cafa0aec54b3c288c2d235d 05-Sep-2012 Jan Wen Voung <jvoung@google.com> revert the additional stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163241 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
851343c741ca94ca3db99b96cdd02295fd6780d1 05-Sep-2012 Jan Wen Voung <jvoung@google.com> Clean up llvm-bcanalyzer to print to consistent streams.
Avoid interleaving fprintf(stderr,...) and outs() << ...;

Also add a column to show "bytes-per" for each record.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163240 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
e0ac6f8a7d390945c626d8548e1054cf857e3e07 20-Mar-2012 Chris Lattner <sabre@nondot.org> fix PR12301 - llvm-bcanalyze should print to stdout, not stderr (except for errors).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
2ea93875b2f2900b9d244dfd7649c9ed02a34cd7 06-Feb-2012 Derek Schuff <dschuff@google.com> Enable streaming of bitcode

This CL delays reading of function bodies from initial parse until
materialization, allowing overlap of compilation with bitcode download.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
705f4813afb13ed850386cbb4b56688abb6412ab 06-Feb-2012 Bill Wendling <isanbard@gmail.com> [unwind removal] Remove a the obsolete 'unwind' enum value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149911 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
d408f06048797a43b17a7740acb766cc5f0adfbb 30-Jan-2012 Chris Lattner <sabre@nondot.org> Add bitcode reader and writer support for ConstantDataAggregate, which
should be feature complete now. Lets see if it works.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149215 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
2bd335470f8939782f3df7f6180282d3825d4f09 10-Jan-2012 David Blaikie <dblaikie@gmail.com> Remove unnecessary default cases in switches that cover all enum values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
837b4e4a44890f86044f47eb17ee79c88f5f4fbc 07-Dec-2011 Chad Rosier <mcrosier@apple.com> Update bcanalyzer to handle new USELIST_BLOCK/USELIST_CODE_ENTRY.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146079 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
dbc88494eefd32274ff6e037df0000c0d0e871d2 27-Nov-2011 Chris Lattner <sabre@nondot.org> remove support for reading llvm 2.9 .bc files. LLVM 3.1 is only compatible back to 3.0


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145164 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
cde546497067bf2ed40b9473582212df4ccd8141 03-Nov-2011 Chad Rosier <mcrosier@apple.com> Remove some cruft from the BitcodeWriter, while still maintaining backward
compatibility in the BitcodeReader.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143598 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
1afcace3a3a138b1b18e5c6270caa8dae2261ae2 09-Jul-2011 Chris Lattner <sabre@nondot.org> Land the long talked about "type system rewrite" patch. This
patch brings numerous advantages to LLVM. One way to look at it
is through diffstat:
109 files changed, 3005 insertions(+), 5906 deletions(-)

Removing almost 3K lines of code is a good thing. Other advantages
include:

1. Value::getType() is a simple load that can be CSE'd, not a mutating
union-find operation.
2. Types a uniqued and never move once created, defining away PATypeHolder.
3. Structs can be "named" now, and their name is part of the identity that
uniques them. This means that the compiler doesn't merge them structurally
which makes the IR much less confusing.
4. Now that there is no way to get a cycle in a type graph without a named
struct type, "upreferences" go away.
5. Type refinement is completely gone, which should make LTO much MUCH faster
in some common cases with C++ code.
6. Types are now generally immutable, so we can use "Type *" instead
"const Type *" everywhere.

Downsides of this patch are that it removes some functions from the C API,
so people using those will have to upgrade to (not yet added) new API.
"LLVM 3.0" is the right time to do this.

There are still some cleanups pending after this, this patch is large enough
as-is.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
4f6bab98c54a93276b8370d3f61f63bf765f7e1f 17-Jun-2011 Chris Lattner <sabre@nondot.org> Drop the "2" suffix on some enums.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133274 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
96a74c57d9e8fe0595ba8308eec1276cf8bcf6b0 17-Jun-2011 Chris Lattner <sabre@nondot.org> remove support for a bunch of obsolete instruction encodings
and other backward compatibility hacks.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133273 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
9d61dd9a088be975df4beb4632a39ed009bd0ef5 17-Jun-2011 Chris Lattner <sabre@nondot.org> Remove some "2" suffixes from the metadata enums now that "1" is gone.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133269 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
020a5a449f297ced1f0fed08fb81c5da87fb7c9a 17-Jun-2011 Chris Lattner <sabre@nondot.org> remove bitcode reader support for LLVM 2.7 metadata encoding.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133268 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
3bc729c3b37c2fa2fed347de3b6b36ddccad3368 18-Mar-2011 NAKAMURA Takumi <geek4civic@gmail.com> llvm-bcanalyzer.cpp: Tweak format string to suppress warnings on mingw32-g++.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
354c5b9bcf01b8da142fa03f465890f30a44dbfc 11-Feb-2011 Chris Lattner <sabre@nondot.org> fix dumping of METADATA_ATTACHMENT2 names, patch by Peter Housel!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
3ff9563c3e391954b2e224afcf8b2b0fcc3888aa 16-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
e7e4b51afc12b248927896fb76b4361e18468079 09-Dec-2010 Dan Gohman <gohman@apple.com> Give CurStreamType's enum a name. This works around what is apparently
a bug in Apple GCC 4.0.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121409 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
333fb04506233255f10d8095c9e2de5e5f0fdc6f 09-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
1f6efa3996dd1929fbc129203ce5009b620e6969 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Merge System into Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
70c2fc0823bcc3970fdebf18ba69449d7822af86 10-Sep-2010 Dan Gohman <gohman@apple.com> Discard metadata produced by LLVM 2.7. The value enumeration it used
is different from what the code now uses in a two ways: NamedMDNodes
were considered Values and included in the numbering, and the
function-local metadata counter wasn't reset between functions.

The later problem breaks lazy deserialization, so instead of trying
to emulate the old numbering, just drop the old metadata. The only
in-tree use case is debug info with LTO, where the QOI loss is
considered acceptable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113557 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
0a6ee29aae63b60f4545a69f87de79f1f60a1b95 18-Aug-2010 Dan Gohman <gohman@apple.com> Remove an unused command-line option.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
43906f920a971976cc18d0dcaf5164670056b971 16-Jul-2010 Dan Gohman <gohman@apple.com> Make llvm-bcanalyzer print out the full enum name for all metadata
code ids, not just some of them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108543 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
a6245247e9d0c718fb14230ba6610ee939b030fa 03-Apr-2010 Chris Lattner <sabre@nondot.org> Add special case bitcode support for DebugLoc. This avoids
having the bitcode writer materialize mdnodes for all the
debug location tuples when writing out the bc file and
stores the information in a more compact form. For example,
the -O0 -g bc file for combine.c in 176.gcc shrinks from
739392 to 512096 bytes.

This concludes my planned short-term debug info work.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
d3a5fa8e96e146087dc2259ce14ccee8c5a4fb61 03-Apr-2010 Chris Lattner <sabre@nondot.org> add a couple missing enum names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100257 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
42985bbe385264550cd01acfdb412abf0de316d3 25-Sep-2009 Daniel Dunbar <daniel@zuster.org> Make llvm-bcanalyzer percentages more readable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82772 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
80ba3d2c0ba873e902f29bf3aae7fbc06dfe9ca5 25-Sep-2009 Daniel Dunbar <daniel@zuster.org> Strip trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82771 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
0cad4e3f0bf6664d5f1b4bb92c1bbe03c4c89ef8 25-Sep-2009 Duncan Sands <baldrick@free.fr> Print INST_INBOUNDS_GEP rather than UnknownCode30.
Likewise for constant inbounds GEP.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
e8e0213cc3daa2d0457c22e4c12e6973f21fc942 18-Sep-2009 Devang Patel <dpatel@apple.com> Write and read metadata attachments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
15af79c8f8ddc3fdefe668cf6a92548b970486e7 24-Aug-2009 Duncan Sands <baldrick@free.fr> Fix the build when using gcc-4.4 on linux. Header needed
for stderr and fprintf.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
74382b7c699120fbec5cb5603c9cf4212eb37f06 24-Aug-2009 Chris Lattner <sabre@nondot.org> Prune #includes from llvm/Linker.h and llvm/System/Path.h,
forcing them down into various .cpp files.

This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
instead.
4. Weans llvm-db off <iostream>

sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
124e6eb09d47674a4bac48a522e83e4513a970e5 31-Jul-2009 Devang Patel <dpatel@apple.com> Handle NamedMDNode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77633 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
104cf9e02b0ed94d4173869a598af6c6972a8660 23-Jul-2009 Devang Patel <dpatel@apple.com> Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK in bitcode file.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
e54abc90fe9942ef3902040a7ac475ce0c369dc9 22-Jul-2009 Devang Patel <dpatel@apple.com> Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase.
Introduce new bitcode block to hold metadata.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
ac95cc79ac0b899d566cc29c0f646f39c2fa35c0 16-Jul-2009 Dan Gohman <gohman@apple.com> Convert more tools code from cerr and cout to errs() and outs().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76070 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
65f57c233cd4499e2e8b52a503201e64edfd6a9e 15-Jul-2009 Dan Gohman <gohman@apple.com> Use errs() instead of std::cerr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
079c03448920bc815590a991460fe75facafe7f5 01-Jun-2009 Nick Lewycky <nicholas@mxc.ca> Add missing codenames to the .bc analyzer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
fbccdef1064dabe3b50e69646cbdddddbc8e7db2 01-May-2009 Dan Gohman <gohman@apple.com> Fix a compiler warning on hosts where uint64_t isn't unsigned long long.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70548 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
0370cc6399022b687f898c9edc5e98482252997c 27-Apr-2009 Chris Lattner <sabre@nondot.org> give bitstreamreader an API to ignore names for blocks/records,
only llvm-bcanalyzer wants this info.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
c167cac8f0f0227de08422563844bcb889a4f3dd 27-Apr-2009 Chris Lattner <sabre@nondot.org> Print statistics for each record kind saying the number of bits
and % abbreviated. For example:

Record Histogram:
Count # Bits % Abv Record Kind
25738 3424174 100.00 SM_SLOC_INSTANTIATION_ENTRY
814 562079 100.00 SM_SLOC_FILE_ENTRY
798 34110 SM_HEADER_FILE_INFO
3 91104 100.00 SM_SLOC_BUFFER_BLOB
3 498 100.00 SM_SLOC_BUFFER_ENTRY
1 465 SM_LINE_TABLE



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70215 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
2443747e4579469a052fbea56db8368093aaac94 27-Apr-2009 Chris Lattner <sabre@nondot.org> clean up the output of llvm-bcanalyzer by using printf
instead of ostreams for formatting.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70214 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
f9a3ec86c138177c7d9b3a9d119e6d2247d14bd8 27-Apr-2009 Chris Lattner <sabre@nondot.org> Add two new record types to the blockinfo block:
BLOCKNAME and SETRECORDNAME. This allows a bitcode
file to be self describing with pretty names for
records and blocks in addition to numbers. This
enhances llvm-bcanalyzer to use this to print prettily.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70165 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
962dde3cef3184f1683d5070c298c9a29509d62e 26-Apr-2009 Chris Lattner <sabre@nondot.org> Make a major API change to BitstreamReader: split all the reading
state out of the BitstreamReader class into a BitstreamCursor class.
Doing this allows the client to have multiple cursors into the same
file, each with potentially different live block stacks and
abbreviation records.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70157 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
ae7dd8004eb286039ee1eb1a35ddb1ff4eafe460 07-Apr-2009 Chris Lattner <sabre@nondot.org> Add an API for the bitstream reader to read blobs and return
them by reference, instead of packing each byte into a
smallvector.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68486 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
3f75d3176b495f0a58a8b6cd0ebe1b50d0392fac 07-Apr-2009 Chris Lattner <sabre@nondot.org> stub out code for reading record with blobs as blobs. Not active yet.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68472 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
e2a466bfa9e4f43c90602da5f602c16c2c83c866 06-Apr-2009 Chris Lattner <sabre@nondot.org> Teach llvm-bcanalyzer to skip over the header we use on LLVM IR files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68458 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
de551f91d8816632a76a065084caab9fab6aacff 01-Apr-2009 Dan Gohman <gohman@apple.com> Use CHAR_BIT instead of hard-coding 8 in several places where it
is appropriate. This helps visually differentiate host-oriented
calculations from target-oriented calculations.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68227 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
cc14d25dd99e891c586bd56aa41796abbe4ac3d8 06-Mar-2009 Chris Lattner <sabre@nondot.org> Change various llvm utilities to use PrettyStackTraceProgram in
their main routines. This makes the tools print their argc/argv
commands if they crash.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66248 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
82b80d9884efa40d63e862c7456ed6a927efb9b8 07-Nov-2008 Nick Lewycky <nicholas@mxc.ca> Update to add newer bitcodes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58852 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
280a6e607d8eb7401749a92db624a82de47da777 25-Apr-2008 Nick Lewycky <nicholas@mxc.ca> Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989
r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50265 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
038112a4e0a9afd656f415ab397a230ae5921627 01-Apr-2008 Chris Lattner <sabre@nondot.org> Change the MemoryBuffer::getFile* methods to take just a pointer to the
start of a filename, not a filename+length. All clients can produce a
null terminated name, and the system api's require null terminated
strings anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
fc82fabe00b0b820e3c0d7fc9e289bace0295f11 02-Mar-2008 Nick Lewycky <nicholas@mxc.ca> Add an unwind_to field to basic blocks, making them Users instead of Values.
This is the first checkin for PR1269, the new EH infrastructure.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47802 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
33a834a6f64d6a640bde00619fc09ec12f2e1866 01-Mar-2008 Nick Lewycky <nicholas@mxc.ca> Also handle "getresult".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47797 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
21c62da287237d39d0d95004881ea4baae3be6da 29-Dec-2007 Chris Lattner <sabre@nondot.org> remove attributions from tools.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
fe63fb986dc9510c5d68f2442edab9574e9e50d0 11-Dec-2007 Christopher Lamb <christopher.lamb@gmail.com> Implement address space attribute for LLVM pointer types. Address spaces are
regions of memory that have a target specific relationship, as described in the
Embedded C Technical Report.

This also implements the 2007-12-11-AddressSpaces test,
which demonstrates how address space attributes can be used in LLVM IR.

In addition, this patch changes the bitcode signature for stores (in a backwards
compatible manner), such that the pointer type, rather than the pointee type, is
encoded. This permits type information in the pointer (e.g. address space) to be
preserved for stores.

LangRef updates are forthcoming.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
82a13c9c4811e40d0ff858c508cb54d672ee926e 08-Oct-2007 Dan Gohman <gohman@apple.com> Move the space in overview output for commands out of each of the
commands and into the common code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
8ff70c2635bfd4e02c0140a5dc9ca909fffba35a 04-Jul-2007 Gabor Greif <ggreif@gmail.com> Pretty straightforward replacement of "bytecode" by "bitcode"
performed on tools/ first, in order not to cause lethal damage


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37877 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
44dadffe4bd58ab32961ca5fe537e8ba69c09243 06-May-2007 Chris Lattner <sabre@nondot.org> switch tools to bitcode instead of bytecode


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
c5ff2cc3de0cdc727c55a48eb9fc9de031ad211c 06-May-2007 Chris Lattner <sabre@nondot.org> add inline asm code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36826 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
cb3d91b05b36a144dd0f3103ce4fda4cab356ad6 06-May-2007 Chris Lattner <sabre@nondot.org> add a denser encoding for null terminated strings, add a 6-bit abbrev as
well. This shrinks kc++ from 2724088 to 2717360 bytes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
b1e85b58f09ceb3b2b104121297ff227e320da2e 05-May-2007 Chris Lattner <sabre@nondot.org> emit spiffy little histograms of codes, if enabled. Don't print averages if
there is only one item.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36773 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
44b0f10721a9861c870f581766b4b8d8a0210fc3 05-May-2007 Chris Lattner <sabre@nondot.org> do not charge subblock sizes to the parent block.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36772 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
1772b12d1332c7fb23155c20e7eeeed92200d053 05-May-2007 Chris Lattner <sabre@nondot.org> update to new APIs, make output a bit (haha) nicer


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
cd5b7d7c9d8f6059986cc8a19b28578f8aedbad8 04-May-2007 Chris Lattner <sabre@nondot.org> add support for new codes/block


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
8f92668f530d5d866a29ef45523fb7e13c92fa1a 01-May-2007 Chris Lattner <sabre@nondot.org> add phi


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36611 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
b30c925046db68928aabaca0cac1f5c669aa977f 29-Apr-2007 Chris Lattner <sabre@nondot.org> Implement much expanded dumper support. We now print stuff like:

<MODULE_BLOCK NumWords=27 BlockCodeSize=3>
<TYPE_BLOCK NumWords=7 BlockCodeSize=4>
<NUMENTRY op0=7>
<POINTER op0=1>
<FUNCTION op0=0 op1=2 op2=2 op3=2 op4=2>
<VECTOR op0=2 op1=3>
<INTEGER op0=64>
<VECTOR op0=8 op1=5>
<INTEGER op0=16>
<VOID>
...

With work, the operands can be pretty printed symbolically.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36579 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
4238d474b4f8443371a52a4f1fca278170ff2c0e 29-Apr-2007 Chris Lattner <sabre@nondot.org> add some simple per-block statistics


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36576 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
32de6330f1e86e9b95a6ad3c58a754fd94e6f727 29-Apr-2007 Chris Lattner <sabre@nondot.org> Implement support to read an arbitrary bitcode file. Next up, dumping the
file symbolically and actually computing statistics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36557 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
45e0f890f82ad2daee99f17e99ff7de932326a2f 29-Apr-2007 Chris Lattner <sabre@nondot.org> very early support for analyzing a bitstream. This opens the file, starts
reading the stream, and detects whether it is LLVM IR or not.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36556 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
63db485b79620ce7ce04718ffc6b08577d2d918a 29-Apr-2007 Chris Lattner <sabre@nondot.org> fit in 80 cols


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36551 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
f2e292ce58ca07d9bbe3cad75f8baa35bd85964a 07-Feb-2007 Chris Lattner <sabre@nondot.org> push bytecode decompressor out through APIs. Now the bytecode reader
api's look like this:

ModuleProvider *getBytecodeModuleProvider(
const std::string &Filename, ///< Name of file to be read
BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer,
std::string* ErrMsg = 0, ///< Optional error message holder
BytecodeHandler* H = 0 ///< Optional handler for reader events
);

This is ugly, but allows a client to say:

getBytecodeModuleProvider("foo", 0);

If they do this, there is no dependency on the compression libraries, saving
codesize.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34012 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
c30598bc3ad792eb8cc75b188eb872a28c62ab71 06-Dec-2006 Chris Lattner <sabre@nondot.org> make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.

With this change, I can now move -stats to print when llvm_shutdown is called.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32250 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
3ed469ccd7b028a030b550d84b7336d146f5d8fa 02-Nov-2006 Reid Spencer <rspencer@reidspencer.com> For PR786:
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining
issues when they see them. All changes pass DejaGnu tests and Olden.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
05ac92ca7d448ff9270cdeecd182653477708517 06-Jul-2006 Chris Lattner <sabre@nondot.org> Change the verifier to never throw an exception. Instead verifyModule canoptionally return the string error, which is an easier api for clients touse anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29017 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
3da94aec4d429b2ba0f65fa040c33650cade196b 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Remove trailing whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
1ef8bdaedbd98bee35a573b8bc87149f2182cb5e 30-Dec-2004 Reid Spencer <rspencer@reidspencer.com> For PR351:
* Place a try/catch block around the entire tool to Make sure std::string
exceptions are caught and printed before exiting the tool.
* Make sure we catch unhandled exceptions at the top level so that we don't
abort with a useless message but indicate than an unhandled exception was
generated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19192 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
551ccae044b0ff658fe629dd67edd5ffe75d10e8 02-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Changes For Bug 352
Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
9de7b334ec6f80a15f093f11b339f5741c964b34 29-Aug-2004 Reid Spencer <rspencer@reidspencer.com> The functions in Signal.h are now in the llvm::sys namespace - adjust


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16091 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
7593745563a112ac8b3c667ce6d17ecb4e8de063 21-Aug-2004 Reid Spencer <rspencer@reidspencer.com> Correct to change interface of the analyzer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15986 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
8a542aeb8478d53df8dc985972bdc479560ff72f 02-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Name Change: llvm-abcd -> llvm-bcanalyzer


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14555 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp