Benjamin Kramer
9859d9eee4
Fix linux/msvc build, move include.
...
llvm-svn: 113776
2010-09-13 20:04:49 +00:00
Owen Anderson
9134dcb6a7
Attempt to fix the Linux build.
...
llvm-svn: 113773
2010-09-13 19:47:32 +00:00
Owen Anderson
ae195f79a4
Minimize #includes in a top-level header.
...
llvm-svn: 113772
2010-09-13 18:47:42 +00:00
Eric Christopher
02df36a2fb
Silence more warnings. Two more unused variables.
...
llvm-svn: 113771
2010-09-13 18:30:57 +00:00
Owen Anderson
e305c119b9
Add a reduced testcase for the infinite loop fixed in r113763.
...
llvm-svn: 113770
2010-09-13 18:28:40 +00:00
Eric Christopher
6d1cd6fab4
Remove unused variable.
...
llvm-svn: 113769
2010-09-13 18:27:59 +00:00
Jim Grosbach
a02bbe95be
trailing whitespace
...
llvm-svn: 113768
2010-09-13 18:25:42 +00:00
Eric Christopher
591bd5b692
Silence some constructor ordering warnings.
...
llvm-svn: 113767
2010-09-13 18:25:05 +00:00
John Thompson
ae3a86d6de
Added skeleton for inline asm multiple alternative constraint support.
...
llvm-svn: 113766
2010-09-13 18:15:37 +00:00
Dan Gohman
0e71a27c03
Use ParseIRFile to auto-detect LLVM Assembly automatically.
...
llvm-svn: 113765
2010-09-13 18:02:47 +00:00
Dan Gohman
29644ff388
Add full auto-upgrade support for LLVM 2.7 bitcode metadata.
...
llvm-svn: 113764
2010-09-13 18:00:48 +00:00
Owen Anderson
9c34a7831d
Re-apply r113679, which was reverted in r113720, which added a paid of new instcombine transforms
...
to expose greater opportunities for store narrowing in codegen. This patch fixes a potential
infinite loop in instcombine caused by one of the introduced transforms being overly aggressive.
llvm-svn: 113763
2010-09-13 17:59:27 +00:00
Michael J. Spencer
af30c48d99
CMake: Add llvm-lit to CMake build.
...
llvm-svn: 113762
2010-09-13 17:52:38 +00:00
Rafael Espindola
5b005d087c
Factoring and potential bug fix. The elf "flags" cannot be used as masks.
...
For example, setting STT_OBJECT (1) and STT_FUNC (2), should not produce
a STT_SECTION (3).
llvm-svn: 113759
2010-09-13 17:39:45 +00:00
Bob Wilson
f1a7145d26
Fix formatting tags.
...
llvm-svn: 113758
2010-09-13 17:39:35 +00:00
Bob Wilson
25938c2b72
Document NEON intrinsic changes for 2.8.
...
llvm-svn: 113757
2010-09-13 17:37:55 +00:00
Duncan Sands
f2e6903e01
Nowadays a release build has assertions off.
...
llvm-svn: 113747
2010-09-13 13:45:33 +00:00
Duncan Sands
e08df07d11
Spelling fixes in comments.
...
llvm-svn: 113746
2010-09-13 13:32:22 +00:00
Dale Johannesen
261acb0b4d
Fix comment typo.
...
llvm-svn: 113728
2010-09-12 22:36:13 +00:00
Michael J. Spencer
29dfbc4fbb
CMake: Fix MSVS build. Although I don't know why this didn't break other build systems...
...
This problem is unrelated to the recent dependency tracking change. It
seems like noone noticed the problem because I don't think anyone compiles
any target other than X86 on windows.
llvm-svn: 113727
2010-09-12 18:32:57 +00:00
Eric Christopher
d4aaabfa74
Revert 113679, it was causing an infinite loop in a testcase that I've sent
...
on to Owen.
llvm-svn: 113720
2010-09-12 06:09:23 +00:00
Michael J. Spencer
8025489df4
CMake: Fix mingw32 build.
...
llvm-svn: 113712
2010-09-12 03:47:31 +00:00
Chris Lattner
b769a3afde
add some documentation for the most important MC-level classes along with
...
an overview of mc and the idea of the code emission phase.
llvm-svn: 113707
2010-09-11 23:02:10 +00:00
Chris Lattner
46844daf49
add a missed cmov alias, part of rdar://8416805
...
llvm-svn: 113693
2010-09-11 17:08:22 +00:00
Chris Lattner
57c170e15b
add support for all the setCC aliases. Part of rdar://8416805
...
llvm-svn: 113692
2010-09-11 17:06:05 +00:00
Rafael Espindola
ce9b27497e
Add support for leb128 of absolute expressions.
...
llvm-svn: 113691
2010-09-11 16:45:15 +00:00
Chris Lattner
7cb9d276e0
add support for pushfd/popfd which are aliases for pushfl/popfl.
...
This fixes rdar://8408129 - pushfd and popfd get invalid instruction mnemonic errors
llvm-svn: 113690
2010-09-11 16:39:16 +00:00
Chris Lattner
1fd69dd039
implement rdar://8407928 - support for in/out with a missing "a" register.
...
llvm-svn: 113689
2010-09-11 16:32:12 +00:00
Chris Lattner
ffe1efe7ef
fix the asmparser so that the target is responsible for skipping to
...
the end of the line on a parser error, allowing skipping to happen
for syntactic errors but not for semantic errors. Before we would
miss emitting a diagnostic about the second line, because we skipped
it due to the semantic error on the first line:
foo %eax
bar %al
This fixes rdar://8414033 - llvm-mc ignores lines after an invalid instruction mnemonic errors
llvm-svn: 113688
2010-09-11 16:18:25 +00:00
Rafael Espindola
96fc40312b
Add missing single quotes.
...
llvm-svn: 113687
2010-09-11 15:45:48 +00:00
Rafael Espindola
f926b1b27d
Change section_data dumping to print hex numbers instead of using
...
python's %r.
llvm-svn: 113685
2010-09-11 15:25:58 +00:00
Owen Anderson
d4ebde12ce
Invert and-of-or into or-of-and when doing so would allow us to clear bits of the and's mask.
...
This can result in increased opportunities for store narrowing in code generation. Update a number of
tests for this change. This fixes <rdar://problem/8285027>.
Additionally, because this inverts the order of ors and ands, some patterns for optimizing or-of-and-of-or
no longer fire in instances where they did originally. Add a simple transform which recaptures most of these
opportunities: if we have an or-of-constant-or and have failed to fold away the inner or, commute the order
of the two ors, to give the non-constant or a chance for simplification instead.
llvm-svn: 113679
2010-09-11 05:48:06 +00:00
Michael J. Spencer
60e98e663a
CMake: Fix mingw32 build.
...
llvm-svn: 113676
2010-09-11 02:13:39 +00:00
Dale Johannesen
9dad72e011
Add x86mmx to TableGen.
...
llvm-svn: 113671
2010-09-11 00:16:46 +00:00
Bill Wendling
038bcd275f
Rename ConvertToSetZeroFlag to something more general.
...
llvm-svn: 113670
2010-09-11 00:13:50 +00:00
Bill Wendling
f2b0c99610
No need to recompute the SrcReg and CmpValue.
...
llvm-svn: 113666
2010-09-10 23:46:12 +00:00
Bill Wendling
e54ebc2cbe
Move some of the decision logic for converting an instruction into one that sets
...
the 'zero' bit down into the back-end. There are other cases where this logic
isn't sufficient, so they should be handled separately.
llvm-svn: 113665
2010-09-10 23:34:19 +00:00
Eric Christopher
01d361f9ed
Start sketching out ARM fast-isel calls.
...
llvm-svn: 113662
2010-09-10 23:18:12 +00:00
Eric Christopher
1364e542aa
For consistency.
...
llvm-svn: 113659
2010-09-10 23:10:30 +00:00
Eric Christopher
4bfc1207f1
Newline at end of file.
...
llvm-svn: 113654
2010-09-10 22:46:03 +00:00
Bob Wilson
cc4cd788ec
Fix a comment typo.
...
llvm-svn: 113653
2010-09-10 22:42:21 +00:00
Eric Christopher
ae179e4cbd
Split out some of the calling convention bits so that they can be
...
used for fast-isel.
llvm-svn: 113652
2010-09-10 22:42:06 +00:00
Benjamin Kramer
6110efbf8c
Teach InstructionSimplify to fold (A & B) & A -> A & B and (A | B) | A -> A | B.
...
Reassociate does this but it doesn't catch all cases (e.g. if the operands are i1).
llvm-svn: 113651
2010-09-10 22:39:55 +00:00
Gabor Greif
dfe6dea95f
typoes
...
llvm-svn: 113647
2010-09-10 22:25:58 +00:00
Dale Johannesen
da0804f6a1
Add missing X86 MMX declarations. Hopefully fixes buildbot?
...
llvm-svn: 113643
2010-09-10 21:58:02 +00:00
Bill Wendling
dc260a07f6
Modify the comparison optimizations in the peephole optimizer to update the
...
iterator when an optimization took place. This allows us to do more insane
things with the code than just remove an instruction or two.
llvm-svn: 113640
2010-09-10 21:55:43 +00:00
Jim Grosbach
ee00b86416
Add a missing case to duplicateCPV() for LSDA constants. Add a FIXME. rdar://8302157
...
llvm-svn: 113637
2010-09-10 21:38:22 +00:00
Michael J. Spencer
98ad3f2ea7
CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.
...
llvm-svn: 113632
2010-09-10 21:14:25 +00:00
Dale Johannesen
b3df2ff13d
Add X86 MMX type to bitcode and Type.
...
(The Ada bindings probably need it too, but all the
obvious places to change say "do not edit this file".)
llvm-svn: 113618
2010-09-10 20:55:01 +00:00
Bill Wendling
51019d366e
Use StringRef which performs the "early exit" when compared against a constant
...
string.
llvm-svn: 113615
2010-09-10 20:42:26 +00:00