| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 21700
|
|
|
|
| |
llvm-svn: 21417
|
|
|
|
|
|
|
|
| |
using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*.
This patch is contributed by Gabor Greif, thanks!
llvm-svn: 20597
|
|
|
|
| |
llvm-svn: 20463
|
|
|
|
| |
llvm-svn: 20297
|
|
|
|
|
|
|
|
|
| |
Otherwise, clients who call ParseAllFunctionBodies will attempt to parse
the function bodies twice, which is (uh) very very bad (tm).
This fixes gccld on python.
llvm-svn: 20152
|
|
|
|
|
|
|
| |
LLVM make the very reasonable assumption that constant expressions will
have at least one operand! :)
llvm-svn: 19943
|
|
|
|
| |
llvm-svn: 19894
|
|
|
|
| |
llvm-svn: 19056
|
|
|
|
|
|
| |
avoid a getType.
llvm-svn: 18691
|
|
|
|
| |
llvm-svn: 18686
|
|
|
|
|
|
|
|
|
|
|
|
| |
a different algorithm that was extremely inefficient for instructions with
many operands.
This reduces the time of this code snippet from .23s for 176.gcc to 0.03s
in a debug build, which speeds up total llvm-dis time just barely.
It's more of a code cleanup than a speedup.
llvm-svn: 18685
|
|
|
|
|
|
| |
unresolved constants remaining.
llvm-svn: 18502
|
|
|
|
|
|
|
| |
so lets wierd ConstantPlaceholder objects sneak into the system which
confuses it greatly.
llvm-svn: 18487
|
|
|
|
| |
llvm-svn: 18386
|
|
|
|
| |
llvm-svn: 17991
|
|
|
|
|
|
| |
body for the function.
llvm-svn: 17858
|
|
|
|
|
|
| |
the dtor for the BytecodeReader class will try to free it again!
llvm-svn: 17856
|
|
|
|
|
|
| |
FunctionBlock.
llvm-svn: 17853
|
|
|
|
| |
llvm-svn: 17768
|
|
|
|
| |
llvm-svn: 17748
|
|
|
|
|
|
| |
* Accept 'llvc' as signature for compressed bytecode
llvm-svn: 17579
|
|
|
|
| |
llvm-svn: 17535
|
|
|
|
|
|
| |
been defined yet!
llvm-svn: 17063
|
|
|
|
| |
llvm-svn: 17054
|
|
|
|
| |
llvm-svn: 16962
|
|
|
|
| |
llvm-svn: 16542
|
|
|
|
|
|
|
|
| |
end of files, breaking the CFE build. As a gross hack around this,
ignore any trailing garbage on bytecode files. Thanks to Brian for digging
in and identifying the problem.
llvm-svn: 16525
|
|
|
|
|
|
| |
Patch contributed by Paolo Invernizzi. Thanks Paolo!
llvm-svn: 16368
|
|
|
|
|
|
| |
Patch contributed by Paolo Invernizzi!
llvm-svn: 16152
|
|
|
|
|
|
|
|
| |
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/.
llvm-svn: 16137
|
|
|
|
| |
llvm-svn: 15984
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
rid of compilation warnings on some platforms.
llvm-svn: 15512
|
|
|
|
|
|
| |
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: 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
- Correct isa<Constant> for GlobalValue subclass
llvm-svn: 14939
|
|
|
|
| |
llvm-svn: 14826
|
|
|
|
| |
llvm-svn: 14786
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|