Chris Lattner
a76e94a12e
Refactor some parser interfaces to fix PR3278 and a FIXME:
...
ParseAssemblyString with a specified module would not parse
into the module, it would create and return a new one.
llvm-svn: 61635
2009-01-04 20:44:11 +00:00
Nick Lewycky
6685977938
Run a post-pass that marks known function declarations by name.
...
llvm-svn: 61632
2009-01-04 20:27:34 +00:00
Chris Lattner
30de396459
elf writer really wants the size of the global, not the size
...
of the pointer to the global.
llvm-svn: 61630
2009-01-04 20:19:20 +00:00
Dan Gohman
7343641ae4
Set a few more vimrc indentation options.
...
llvm-svn: 61628
2009-01-04 18:59:55 +00:00
Nick Lewycky
b8a4fe7930
Add utility functions for marking parameters as noalias or nocapture.
...
Clean up some of the existing code by making it use hasFnAttr/addFnAttr
and round it off by creating removeFnAttr.
llvm-svn: 61627
2009-01-04 18:21:35 +00:00
Bill Wendling
dd61282551
XFAIL this test. The xform was removed.
...
llvm-svn: 61624
2009-01-04 06:32:28 +00:00
Bill Wendling
d57191595b
Revert this transform. It was causing some dramatic slowdowns in a few tests. See PR3266.
...
llvm-svn: 61623
2009-01-04 06:19:11 +00:00
Dan Gohman
97be71789f
Add several more unimplemented operator overloads to ilist_iterator
...
to help catch errors.
llvm-svn: 61622
2009-01-04 03:22:42 +00:00
Bill Wendling
61bdc3d99e
The llvm::ELFWriter::EmitGlobal() method is calling the
...
llvm::PATypeHolder::get() method when LLVM is self-hosted in Release
mode. Before the parser changed, there was a definition of llvm::PAHolder::get()
in llvmAsmParser.y. This was probably a bug that no-one noticed.
Explicitly #include the Type.h file as a temporary fix for now.
llvm-svn: 61620
2009-01-04 01:47:14 +00:00
Chris Lattner
486c88dbf1
add #include guards, thanks Dan.
...
llvm-svn: 61619
2009-01-04 01:28:00 +00:00
Dan Gohman
690954f68f
Use softtabstop instead of redefining tabstop.
...
llvm-svn: 61618
2009-01-04 00:05:43 +00:00
Dan Gohman
7aee4c1d99
Switch the vimrc file from smartindent to cindent, which is
...
smarter about C-ish syntax, and supports the cinoptions
variable. Set cinoptions to suppress the extra indentation
for switch case labels.
llvm-svn: 61617
2009-01-04 00:03:54 +00:00
Bill Wendling
e54262ccd2
Revert r61598 as it does nothing.
...
llvm-svn: 61614
2009-01-03 22:46:50 +00:00
Dan Gohman
2a079de3f5
Fix a DAGCombiner abort on an invalid shift count constant. This fixes PR3250.
...
llvm-svn: 61613
2009-01-03 19:22:06 +00:00
Dan Gohman
8dc1513b6c
CommuteNodesToReducePressure() is now removed.
...
llvm-svn: 61612
2009-01-03 19:19:30 +00:00
Dan Gohman
6a518de5f5
Remove the code from the scheduler that commuted two-address
...
instructions to avoid copies, because TwoAddressInstructionPass
also does this optimization. The scheduler's version didn't
account for live-out values, which resulted in spurious commutes
and missed opportunities.
Now, TwoAddressInstructionPass handles all the opportunities,
instead of just those that the scheduler missed. The result is
usually the same, though there are occasional trivial differences
resulting from the avoidance of spurious commutes.
llvm-svn: 61611
2009-01-03 18:01:46 +00:00
Nick Lewycky
dfbc53093a
Any void readonly functions are provably dead, don't waste time adding
...
nocapture attributes to them.
llvm-svn: 61610
2009-01-03 17:05:32 +00:00
Nuno Lopes
73135ab8ee
improve test and address Misha's comments
...
llvm-svn: 61609
2009-01-03 14:55:26 +00:00
Evan Cheng
540a7a5e9b
Add Intel processors core i7 and atom.
...
llvm-svn: 61603
2009-01-03 04:24:44 +00:00
Evan Cheng
c477e19c19
Fix PR3210: Detect more Intel processors. Patch by Torok Edwin.
...
llvm-svn: 61602
2009-01-03 04:04:46 +00:00
Misha Brukman
a57637fed5
* Wrap command line flag in <tt>
...
* Wrapped long lines in code section
llvm-svn: 61601
2009-01-03 02:35:05 +00:00
Nick Lewycky
5222f155a0
We know it's always a SCEVConstant if it gets here, so just cast it and
...
inline the only use of isNegative. Fixes warning reported by Mike Stump.
llvm-svn: 61600
2009-01-03 01:53:24 +00:00
Bill Wendling
58dc5669b7
Setting BUILD_ARCHIVE to 0 has the same effect as defining it to 1.
...
llvm-svn: 61599
2009-01-03 01:48:26 +00:00
Bill Wendling
680d1c8fc5
Make sure that 'ranlib' runs only after 'ar' is completed.
...
llvm-svn: 61598
2009-01-03 01:11:39 +00:00
Scott Michel
0309418000
CellSPU:
...
- Remove custom lowering for BRCOND
- Add remaining functionality for branches in SPUInstrInfo, such as branch
condition reversal and load/store folding. Updated BrCond test to reflect
branch reversal.
llvm-svn: 61597
2009-01-03 00:27:53 +00:00
Bill Wendling
d06d6312d3
Reassign the buffer to the pointer so that we don't overwrite memory.
...
llvm-svn: 61596
2009-01-02 23:13:30 +00:00
Misha Brukman
45c8a4df20
Alphabetized #includes.
...
llvm-svn: 61595
2009-01-02 22:49:28 +00:00
Misha Brukman
8d90975ba9
Down with trailing whitespace!
...
llvm-svn: 61594
2009-01-02 22:46:48 +00:00
Misha Brukman
1969e75214
VerifyLineLength() actually takes a max length parameter.
...
llvm-svn: 61593
2009-01-02 21:24:29 +00:00
Misha Brukman
a0007f190a
Added some basic lint tools for C++ and generic lint tool applicable to all
...
types of files (TableGen, LLVM assembly, HTML files, etc.)
llvm-svn: 61592
2009-01-02 21:15:30 +00:00
Scott Michel
57a5503c5a
- Make copyRegToReg use the "LR" assembler synonym for "OR". Makes finding
...
register copies a little easier to pick out from the output.
- Fix bug 3192.
llvm-svn: 61591
2009-01-02 20:52:08 +00:00
Misha Brukman
2d4b2dd2d3
* Alphabetized system headers per the style guide
...
* Minor spacing and comment cleanups
llvm-svn: 61590
2009-01-02 20:26:30 +00:00
Nick Lewycky
2c01a8db3d
Don't try to analyze this "backward" case. This is overly conservative
...
pending a correct solution.
llvm-svn: 61589
2009-01-02 18:54:17 +00:00
Misha Brukman
7d77c2fac7
So *this* is where all the trailing whitespace in file header comments come
...
from: copy-pasted straight from the coding standards doc!
Oh, the irony.
llvm-svn: 61586
2009-01-02 16:58:42 +00:00
Daniel Dunbar
eedbd9ee1b
Remove comma at end of enumerator list.
...
llvm-svn: 61585
2009-01-02 16:32:55 +00:00
Daniel Dunbar
2c89c6ebae
Remove bison specific Makefile bits for AsmParser.
...
llvm-svn: 61584
2009-01-02 16:29:09 +00:00
Misha Brukman
7bcf501c0e
Deleted trailing whitespace; no functional changes.
...
llvm-svn: 61583
2009-01-02 16:28:18 +00:00
Misha Brukman
4d9a998dbc
vimrc
...
* Fixed cursors in terminal by setting nocompatible (sorry, vi users)
* Enable syntax highlighting so that this file can stand on its own
* Highlight trailing whitespace
* Fixed commands to delete trailing whitespaces and convert tabs to spaces
llvm.vim and tablegen.vim
* Removed trailing whitespace, as it's now very visible
llvm-svn: 61582
2009-01-02 16:26:14 +00:00
Misha Brukman
247edadcb1
We also removed gtest-all.cc from the distribution tarball.
...
llvm-svn: 61581
2009-01-02 15:28:00 +00:00
Duncan Sands
3fee49285c
Load tracking means that the value analyzed may
...
not have pointer type. In particular, it may
be the condition argument for a select or a GEP
index. While I was unable to construct a testcase
for which some bits of the original pointer are
captured due to one of these, it's very very close
to being possible - so play safe and exclude these
possibilities.
llvm-svn: 61580
2009-01-02 15:16:38 +00:00
Nuno Lopes
4bd71e86c9
fist short at a new unit test for ImmutableSets. no bugs found, though :P
...
llvm-svn: 61576
2009-01-02 13:49:50 +00:00
Nuno Lopes
1ad1461930
make 'make clean' remove test binaries as well
...
llvm-svn: 61572
2009-01-02 12:25:22 +00:00
Duncan Sands
c087ba24aa
When calculating 'nocapture' argument attributes, allow
...
the argument to be stored to an alloca by tracking uses
of the alloca. This occurs 4 times (out of 7121, 0.05%)
in MultiSource/Applications, so may not be worth it. On
the other hand, it is easy to do and fairly cheap. The
functions it helps are: W_addcom and W_addlit in spiff;
process_args (argv) in d (make_dparser); ercPixConcealIMB
in JM/ldecod.
llvm-svn: 61570
2009-01-02 11:54:37 +00:00
Duncan Sands
4cad820632
Improve comments and reorganize a bit - no functionality
...
change.
llvm-svn: 61569
2009-01-02 11:46:24 +00:00
Chris Lattner
f90c958115
Fix a really horrible typo, which caused undefined behavior.
...
llvm-svn: 61566
2009-01-02 08:49:06 +00:00
Chris Lattner
1af2113e10
minor cleanups and comment improvements.
...
llvm-svn: 61564
2009-01-02 08:05:26 +00:00
Chris Lattner
2950e29626
add a #include to hopefully get the x86-64-linux buildbot building.
...
llvm-svn: 61563
2009-01-02 07:18:46 +00:00
Chris Lattner
a8158ed0a9
Remove lex/bison support from makefile.rules.
...
llvm-svn: 61562
2009-01-02 07:16:45 +00:00
Chris Lattner
2d37a9be23
update the cmakefile. This is a "best guess", I haven't tested this.
...
llvm-svn: 61561
2009-01-02 07:14:23 +00:00
Chris Lattner
59d439dd15
lex and bison aren't needed to build llvm anymore.
...
llvm-svn: 61560
2009-01-02 07:10:51 +00:00