| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
CompactionTable really needs to be emitted. This is not a straight forward
computation, hence the need for a member function here.
llvm-svn: 16062
|
|
|
|
|
|
| |
file.
llvm-svn: 16037
|
|
|
|
| |
llvm-svn: 16036
|
|
|
|
|
|
|
|
|
|
|
| |
- Rearrange output order to make more sense
- Make only the function level output count as "detailed"
- Output dump output directly to stream, don't buffer it.
- Fix counting of block sizes
- Implement new handlers for number of types, dependent libs, target triple
- Compute the size of block headers.
llvm-svn: 15985
|
|
|
|
| |
llvm-svn: 15984
|
|
|
|
|
|
|
|
| |
- Pass the output stream to the analyzer so it can write its output there
directly instead of buffering it.
- Don't pass a boolean to ParseBytecode because its not needed any more.
llvm-svn: 15983
|
|
|
|
|
|
|
|
| |
Remove the "processFunctions" boolean from ParseBytecode as it is no
longer needed. This is part of avoiding double reading of functions
when analyzing bytecode.
llvm-svn: 15982
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- provide the correct conversion for ModuleBlockID in read_block (a potential
bug but not actually exploited because reading module block ids doesn't
use read_block).
- install support for handleTypeList handler
- install support for handleDependentLibrary handler
- install support for handleTargetTriple handler
- clean up comments, output strings,
- ensure that processing function arguments doesn't SIGSEGV if one of the
arguments is a null pointer (yeah, it happened .. weird)
- prepare for version 5 bytecode by documenting what will change.
llvm-svn: 15981
|
|
|
|
| |
llvm-svn: 15938
|
|
|
|
|
|
|
|
| |
- File format version number bumped to 4
- Writer will now align nothing
- Reader now only expects alignment for version 3 or earlier
llvm-svn: 15875
|
|
|
|
| |
llvm-svn: 15848
|
|
|
|
|
|
| |
rid of compilation warnings on some platforms.
llvm-svn: 15512
|
|
|
|
| |
llvm-svn: 15487
|
|
|
|
|
|
| |
by 5% on eon
llvm-svn: 15452
|
|
|
|
|
|
| |
away. This speeds up by .bc reader by 30% in a profile build on 252.eon.
llvm-svn: 15450
|
|
|
|
| |
llvm-svn: 15325
|
|
|
|
| |
llvm-svn: 15255
|
|
|
|
|
|
|
|
| |
(At[3] << 24) is an int type and it is being coerced to uint64_t, it was
getting sign extended, causing us to get FFFFFFFFxxxxxxxx constants all of
the time.
llvm-svn: 15224
|
|
|
|
|
|
|
| |
Adjust for new Module.h interface for dependent libraries.
Excise unused backwards compatibility flag.
llvm-svn: 15220
|
|
|
|
|
|
| |
regression bug introduced in release 1.2
llvm-svn: 15219
|
|
|
|
| |
llvm-svn: 15218
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- encode/decode target triple and dependent libraries
bug 401:
- fix encoding/decoding of FP values to be little-endian only
bug 402:
- initial (compatible) cut at 24-bit types instead of 32-bit
- reduce size of block headers by 50%
Other:
- cleanup Writer by consolidating to one compilation unit, rem. other files
- use a std::vector instead of std::deque so the buffer can be allocated
in multiples of 64KByte chunks rather than in multiples of some smaller
(default) number.
llvm-svn: 15210
|
|
|
|
|
|
|
|
| |
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
llvm-svn: 14942
|
|
|
|
|
|
| |
- Correct ordering of tests because for GlobalValue isa Constant
llvm-svn: 14941
|
|
|
|
|
|
|
| |
from being treated like a Function which can cause the contents of the list
to be come invalidated.
llvm-svn: 14940
|
|
|
|
|
|
|
| |
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass
llvm-svn: 14939
|
|
|
|
|
|
| |
- Update for BytecodeHandler interface change resuing from CPRs going away
llvm-svn: 14938
|
|
|
|
| |
llvm-svn: 14845
|
|
|
|
| |
llvm-svn: 14826
|
|
|
|
| |
llvm-svn: 14786
|
|
|
|
| |
llvm-svn: 14775
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove tabs
- Standardize use of space around ( and ).
- Consolidate the ConstantPlaceHolder class
- Rename two methods to be more meaningful (ParseType, ParseTypes)
- Correct indentation of blocks
- Add documentation
- Convert input dependent asserts to error(...) so it throws instead.
Provide placeholder implementations of read_float and read_double that
still read in platform-specific endianess. When I figure out how to do
this without knowing the endianess of the platform, it will get implemented
correctly.
llvm-svn: 14765
|
|
|
|
|
|
|
| |
- Add read_float and read_double in preparation for a correct
implementation of bytecode floating point support.
llvm-svn: 14764
|
|
|
|
| |
llvm-svn: 14763
|
|
|
|
|
|
|
| |
point values. This will be fixed when I figure out how to do it correctly
without depending on knowing the endianess of a platform.
llvm-svn: 14762
|
|
|
|
|
|
| |
expanded size instead of the file size). Thanks Chris.
llvm-svn: 14731
|
|
|
|
|
|
|
|
|
|
| |
- get rid of PARSE_ERROR macro
- add error(std::string) function
- use error(std::string) for all errors
- make input dependent asserts call error(std::string) instead
- ensure asserts are only for logic bugs, not input discrepancies.
llvm-svn: 14729
|
|
|
|
|
|
|
|
|
| |
global type plane starts with a length and the TypeTyID value to identify
the type plane has having type definitions. This doesn't happen in 1.3
because the types are read from a known position in the file. However, the
TypeTyID must be read in (and ignored) if its a 1.2 bytecode file.
llvm-svn: 14728
|
|
|
|
| |
llvm-svn: 14634
|
|
|
|
|
|
|
|
| |
too soon so the function data was not getting dumped (it was generated
after the call handleFinish). Also cleaned up the output format for
proper indentation.
llvm-svn: 14627
|
|
|
|
|
|
|
| |
is currently not being used but is retained because it will be the basis
for a clean up of the SlotCalculator class.
llvm-svn: 14612
|
|
|
|
| |
llvm-svn: 14611
|
|
|
|
|
|
|
| |
remove use of Type::TypeTyID and Type::TypeTy since Type no longer inherits
Value.
llvm-svn: 14610
|
|
|
|
|
|
| |
separately from Values. This needed for bug 122.
llvm-svn: 14609
|
|
|
|
|
|
|
|
|
|
|
| |
Separate Types from Values because Type no longer inherits from Value. The
changes for this are too numerous to list. In essence, any data structure
that contained a Value was doubled so that Types could be contained
similarly. New members include Types, TypeMap, CompactionTypes, and
CompactionTypeMap. Functions taking a Value* were overloaded with a variant
that takes a Type* that acts on the new data structures.
llvm-svn: 14608
|
|
|
|
|
|
| |
- Types don't have names any more, just write them on ostream directly
llvm-svn: 14606
|
|
|
|
|
|
| |
that needs it after the Type != Value changes (bug 122).
llvm-svn: 14605
|
|
|
|
|
|
|
|
|
|
|
| |
- Don't use PARSE_ERROR macro unnecessarily (for simple strings)
- Add comments before each function
- Convert for bug 122 (Type != Value)
- Handle new value range on Type::PrimitiveTypeId enumeration by augmenting
the reader with a new read_typeid method and sanitizeTypeId method.
- Remove BytecodeHandler's default method implementations to header file.
llvm-svn: 14604
|
|
|
|
|
|
|
|
| |
mistaken for anything else.
- Move function descriptions to Reader.cpp file per Chris.
- Remove tabs.
llvm-svn: 14602
|
|
|
|
| |
llvm-svn: 14601
|