Chris Lattner
f17022077d
Add support for dos-style files
...
llvm-svn: 13840
2004-05-27 18:28:32 +00:00
Chris Lattner
736ca634a7
This code is a real mess, but at least get the JIT *building* on platforms
...
(such as plan 9) without mmap. Of course it won't RUN... but that's another
step. :)
llvm-svn: 13839
2004-05-27 18:03:56 +00:00
Chris Lattner
4de18aff15
doxygen no longer builds into the docs tree, and we no longer have boost
...
in the tree
llvm-svn: 13838
2004-05-27 17:58:45 +00:00
Chris Lattner
a7e4eba812
Add support for dos-style files
...
llvm-svn: 13837
2004-05-27 17:49:14 +00:00
Chris Lattner
023eb7484f
Add support for dos style files.
...
llvm-svn: 13836
2004-05-27 17:44:18 +00:00
Chris Lattner
d48af1d9fb
Add back a test I accidentally removed
...
llvm-svn: 13835
2004-05-27 17:43:33 +00:00
Chris Lattner
97bd391386
Fix InstCombine/load.ll & PR347.
...
This code hadn't been updated after the "structs with more than 256 elements"
related changes to the GEP instruction. Also it was not handling the
ConstantAggregateZero class.
Now it does!
llvm-svn: 13834
2004-05-27 17:30:27 +00:00
Chris Lattner
6875c3a81c
Add another testcase
...
llvm-svn: 13833
2004-05-27 17:28:55 +00:00
Reid Spencer
726f1be2d2
Re-introduce the -q option and make opt always return 0, even if the
...
optimization pasess fail. This is necessary to avoid breaking feature
tests in the tests suite that depend on this behavior. *sigh*
llvm-svn: 13832
2004-05-27 16:28:54 +00:00
Reid Spencer
46ff9b2d51
Added a "RUN:" line so this file can be executed by TestRunner.sh
...
llvm-svn: 13829
2004-05-27 08:28:42 +00:00
Reid Spencer
0e77f07d67
Removed the -q option and the default message written to stderr. The
...
output produces confusing results in TestRunner.sh
llvm-svn: 13828
2004-05-27 08:26:22 +00:00
Chris Lattner
2582f9b0b7
remove bogus test
...
llvm-svn: 13827
2004-05-27 07:39:51 +00:00
Chris Lattner
7c0ec435b7
Make the test test what it is supposed to
...
llvm-svn: 13826
2004-05-27 07:37:45 +00:00
Chris Lattner
4675e99355
The -exprs pass is no longer with LLVM. *sniff*
...
llvm-svn: 13825
2004-05-27 07:36:08 +00:00
Chris Lattner
fa99fdc1d7
Correct test. use "not grep" instead of "grep -v"
...
llvm-svn: 13824
2004-05-27 07:32:25 +00:00
Chris Lattner
c65ff058f3
Implement constant folding of fmod, which is used a lot in povray
...
llvm-svn: 13823
2004-05-27 07:25:00 +00:00
Chris Lattner
2236327da5
Right, globals aren't values yet..
...
llvm-svn: 13822
2004-05-27 06:43:37 +00:00
Chris Lattner
e91dc2545c
Restructure call constant folding code a bit to make it simpler
...
Add support for acos/asin/atan. 188.ammp contains three calls to acos with
constant arguments. Constant folding it allows elimination of those 3 calls
and three FP divisions of the results.
llvm-svn: 13821
2004-05-27 06:26:28 +00:00
Chris Lattner
06542fe02e
Add a simple pass.
...
llvm-svn: 13820
2004-05-27 06:13:36 +00:00
Chris Lattner
bd2b12905e
Continue the exposition
...
llvm-svn: 13819
2004-05-27 05:52:10 +00:00
Chris Lattner
2200720a89
Continue the implementation
...
llvm-svn: 13818
2004-05-27 05:51:31 +00:00
Chris Lattner
695ca18c95
A few more microsteps
...
llvm-svn: 13817
2004-05-27 05:51:13 +00:00
Chris Lattner
f2b4daf3eb
gc_init now gets an argument
...
llvm-svn: 13816
2004-05-27 05:51:00 +00:00
Chris Lattner
cd68673044
Uhh, that doesn't exist.
...
llvm-svn: 13815
2004-05-27 05:44:22 +00:00
Chris Lattner
60be6e4483
Beta-test moving a header from include/Support into the llvm hierarchy:
...
it seems to work :)
llvm-svn: 13814
2004-05-27 05:42:33 +00:00
Chris Lattner
6f0bab5b9d
Header file moved
...
llvm-svn: 13813
2004-05-27 05:41:36 +00:00
Chris Lattner
16553806ce
Header moved
...
llvm-svn: 13812
2004-05-27 05:37:32 +00:00
Chris Lattner
a07e742087
Signals.h header moved. Eventually this should move into a lib/System library,
...
but not right now.
llvm-svn: 13811
2004-05-27 05:31:24 +00:00
Chris Lattner
04dd3fe76d
Moved header from include/Support/ to include/llvm/System
...
llvm-svn: 13810
2004-05-27 05:30:18 +00:00
Chris Lattner
fa8fd150ca
Changes to make libSupport build on systems that don't have the wait syscall.
...
llvm-svn: 13806
2004-05-27 01:20:55 +00:00
Alkis Evlogimenos
271055c7e5
Add section on the newly added Instruction and subclasses constructor
...
variant.
llvm-svn: 13802
2004-05-27 00:57:51 +00:00
John Criswell
f19f77bd57
Only give warnings if the user doesn't have mmap(). This is pretty much
...
a hack that allows users to fight through a build if they don't have mmap().
When I get into the office, I'll make something better.
llvm-svn: 13801
2004-05-27 00:57:50 +00:00
Alkis Evlogimenos
2c463a8a99
Add constructors that take a BasicBlock to append to, to the rest of
...
the llvm::Instruction hierarchy.
llvm-svn: 13800
2004-05-27 00:15:23 +00:00
Chris Lattner
d745db9373
Fix a test that was "broken" by new optimizations. The transformation we
...
are doing is certainly correct, its just that we didn't have the capability
to do it when the testcase was written (no select instr)
llvm-svn: 13799
2004-05-26 23:51:29 +00:00
Alkis Evlogimenos
7542a978fc
Do not pass a null pointer if this instruction is not prepended or
...
appended anywhere.
llvm-svn: 13798
2004-05-26 22:50:28 +00:00
Alkis Evlogimenos
bf27c54995
Inline trivial constructors.
...
llvm-svn: 13797
2004-05-26 22:07:18 +00:00
Reid Spencer
b7b1b9d4b2
Several clean ups suggested by Chris: remove tabs, make SlotMachine do lazy
...
initialization so we don't scan large Modules/Functions needlessly, tighten
up restrictions on what can be put in SlotMachine (no Constants that aren't
GlobalValues).
llvm-svn: 13796
2004-05-26 21:56:09 +00:00
Reid Spencer
9a0451787d
Provide the correct patch for bug 345. The solution is to add a setTypeName
...
function to llvmAsmParser.y and then use it in the one place in the grammar
that needs it. Also had to make Type::setName public because setTypeName
needs it in order to retain compatibility with setValueName.
llvm-svn: 13795
2004-05-26 21:48:31 +00:00
Reid Spencer
e4f0ec88eb
Tighten up checking on SymbolTable interface to make it illegal to pass a
...
Type* where a Value* is expected.
llvm-svn: 13794
2004-05-26 21:46:18 +00:00
Alkis Evlogimenos
edff018f18
Refactor common initialization code in private init() functions.
...
This is a first step in supplying append to basic block constructors
for all instruction types.
llvm-svn: 13793
2004-05-26 21:41:09 +00:00
Alkis Evlogimenos
3c45e590c5
Use one destination constructor for the unconditional branch.
...
llvm-svn: 13792
2004-05-26 21:38:14 +00:00
Misha Brukman
d6ce85d48c
Fix spelling of doxygen directive.
...
llvm-svn: 13791
2004-05-26 17:42:51 +00:00
Chris Lattner
a1a78f0b68
Fix PR344: the incorrect remove was being used.
...
llvm-svn: 13790
2004-05-26 17:20:52 +00:00
Chris Lattner
18e086319e
Make the test use the %A type
...
llvm-svn: 13789
2004-05-26 17:14:49 +00:00
Chris Lattner
70d84370e1
A quick and ugly hack to fix PR345. I used TypeTy specifically to make
...
Reid cringe :)
llvm-svn: 13788
2004-05-26 17:08:25 +00:00
Chris Lattner
73a0995681
Fix a bug in reid's checkin
...
llvm-svn: 13787
2004-05-26 16:52:55 +00:00
Reid Spencer
e6c5a0a7d2
Added a section on the SymbolTable class.
...
llvm-svn: 13786
2004-05-26 08:41:35 +00:00
Reid Spencer
dccf1747a1
Part of bug 122:
...
This change removes the BuildBytecodeInfo flag from the SlotCalculator
class. This flag was needed to distinguish between the Bytecode/Writer
and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can
remove this flag and simplify some code. Also, some minor name changes
to CachedWriter.h needed to be committed (missed in previous commit).
llvm-svn: 13785
2004-05-26 07:37:11 +00:00
Reid Spencer
58bad426cc
Part of bug 122. Removed dependency of AsmWriter on SlotCalculator by
...
incorporating a significantly simpler "SlotMachine" into this file. The
SlotMachine is tailored for use by only the AsmWriter whose requirements
for slot numbers are vastly different than from the Bytecode/Writer. Code
change passes all Feature and Regression tests.
llvm-svn: 13784
2004-05-26 07:18:52 +00:00
Tanya Lattner
8c5d9dcc42
Adding scheduling class.
...
llvm-svn: 13783
2004-05-26 06:27:36 +00:00