Chris Lattner
d8cc2722a4
move some instructions from Instr64Bit -> InstrInfo.
...
bswap32 doesn't read eflags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115604 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:47:35 +00:00
Chris Lattner
5673e1d314
move CMOV_FR32 and friends to InstrCompiler, since they are
...
pseudo instructions.
Move POPCNT to InstrSSE since they are SSE4 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115603 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:41:40 +00:00
Chris Lattner
41efbfaa66
move various pattern matching support goop out of X86Instr64Bit, to live
...
with the 32-bit stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115602 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:37:31 +00:00
Chris Lattner
35649fc3dd
split conditional moves and setcc's out to their own file.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115601 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:33:16 +00:00
Chris Lattner
d3f033d969
move string pseudo instructions to InstrCompiler consolidate 64-bit and 32-bit together.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115600 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:27:48 +00:00
Chris Lattner
010496c6a7
move the atomic pseudo instructions out to X86InstrCompiler.td
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115599 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:22:35 +00:00
Chris Lattner
8af88ef157
move more pseudo instructions out to X86InstrCompiler.td
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115598 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:10:16 +00:00
Chris Lattner
d071b83b5d
move VMX instructions out to their own file.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115597 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:06:53 +00:00
Chris Lattner
87be16a9e1
continue moving stuff out to X86InstrSystem.td. Move
...
control flow stuff out to X86InstrControl.td. Move
some compiler pseudo instructions and Pat<> patterns
out to X86InstrCompiler.td
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115596 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:04:14 +00:00
Michael J. Spencer
a0b991be3f
Support: Add __forceinline to Compiler.h on MSVC.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115595 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:00:52 +00:00
Michael J. Spencer
f000a7a212
fix MSVC 2010 build.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115594 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:00:43 +00:00
Michael J. Spencer
2bbb769091
Cleanup Whitespace.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115593 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 06:00:33 +00:00
Chris Lattner
434c7cb8a1
refactor .td files a bit, moving system instructions out to X86InstrSystem.td
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115591 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 05:32:15 +00:00
Jim Grosbach
894a1b1739
s/The ARM has/The ARM backend has/
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115584 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 01:00:42 +00:00
Jim Grosbach
e86222864f
Update LLVMLibDeps
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115583 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 00:35:16 +00:00
Jim Grosbach
33caa07cc5
Re-apply r115363 and r115366 now that r115525 has removed the un-needed header
...
that caused the circular dependencies on Linux.
Built OK for me on OSX and Linux (Ubuntu) with configure/make and CMake. Will
keep an eye on the bots....
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115582 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 00:34:11 +00:00
Sean Callanan
90371ad165
Added a testcase for the ENTER instruction.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115580 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-05 00:21:40 +00:00
Sean Callanan
6aeb2e32b7
Fixed the disassembler to handle two new X86
...
instruction forms. Now the ENTER instruction
disassembles correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115573 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 22:45:51 +00:00
Evan Cheng
2a135ae530
This DAG combine BRCOND transformation can look pass truncate of the operand:
...
// %a = ...
// %b = and i32 %a, 2
// %c = srl i32 %b, 1
// brcond i32 %c ...
//
// into
//
// %a = ...
// %b = and i32 %a, 2
// %c = setcc eq %b, 0
// brcond %c ...
Make sure it restores local variable N1, which corresponds to the condition operand if it fails to match.
This apparently breaks TCE but since that backend isn't in the tree I don't have a test for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115571 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 22:41:01 +00:00
Bruno Cardoso Lopes
48f9543404
AVX intrinsics and builtins were also added to clang
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115566 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 22:07:22 +00:00
Douglas Gregor
3311cf83d4
Spell AltiVec correctly
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115560 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 21:12:06 +00:00
Bill Wendling
6cf6c79e82
The pshufw instruction came about in MMX2 when SSE was introduced. Don't place
...
it in with the SSSE3 instructions.
Steward! Could you place this chair by the aft sun deck? I'm trying to get away
from the Astors. They are such boors!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115552 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 20:24:01 +00:00
Kevin Enderby
3f55c24df9
Incorporate suggestions by Daniel Dunbar after his review. Thanks Daniel!
...
1) Changed ValidateDwarfFileNumber() to isValidDwarfFileNumber() to be better
named. Since it is just a predicate and isn't actually changing any state.
2) Added a missing return in the comments for setCurrentDwarfLoc() in
include/llvm/MC/MCContext.h for fix formatting.
3) Changed clearDwarfLocSeen() to ClearDwarfLocSeen() since it does change
state.
4) Simplified the last test in isValidDwarfFileNumber() to just a one line
boolean test of MCDwarfFiles[FileNumber] != 0 for the final return statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115551 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 20:17:24 +00:00
Daniel Dunbar
f0233c6cd9
ReleaseNotes: Note some changes to LLVM development infrastructure.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115550 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 20:11:41 +00:00
Daniel Dunbar
f2c13efa65
ReleaseNotes: Note a header rename.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115549 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 20:11:39 +00:00
Rafael Espindola
607d1f6d32
Implement ELF::R_X86_64_GOTPCREL.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115547 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 19:51:39 +00:00
Rafael Espindola
cebdc01d66
Move isFixupKindX86PCRel.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115545 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 19:46:28 +00:00
Rafael Espindola
92bf6684f6
Produce a R_X86_64_PLT32 when needed.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115541 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 19:04:13 +00:00
Rafael Espindola
28f9ac8101
Produce a R_X86_64_GOT32 when needed.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115537 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 18:44:25 +00:00
Gabor Greif
265bc8932a
validator fixes; others remain, somebody who knows some html, please have a look
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115526 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 17:54:30 +00:00
Jim Grosbach
c5ccf73dee
Remove unneeded header
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115525 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 17:53:40 +00:00
Daniel Dunbar
97b01a82c0
Add KLEE 2.8 release notes.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115524 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 17:39:47 +00:00
Jan Wen Voung
083cf1574f
Add hook in MCSection to decide when to use "optimized nops", for each
...
section kind. Previously, optimized nops were only used for MachO.
Also added tests for ELF and COFF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115523 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 17:32:41 +00:00
Dan Gohman
7a391832f4
Don't add the operand count to SCEV uniquing data; FoldingSetNodeID
...
already knows its own length, so this is redundant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115521 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 17:24:08 +00:00
Daniel Dunbar
4a517fc87c
A few more random Clang release notes.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115520 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 17:06:49 +00:00
Gabor Greif
9f45913a4a
minor tweaks and typos
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115518 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 17:03:49 +00:00
Devang Patel
c79dda2fd2
Fix lexical block's tag number.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115516 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 16:51:59 +00:00
Chris Lattner
b822f659fc
scheduler update
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115515 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 16:46:07 +00:00
Chris Lattner
c5fd15628f
another tweak
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115510 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 16:06:37 +00:00
Rafael Espindola
55fb102130
Include the section address in the computation of the relocation.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115509 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 15:59:01 +00:00
Rafael Espindola
01263d35d4
Correctly compute the relocation when it is not in the first fragment.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115506 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 15:28:43 +00:00
Francois Pichet
2e0affb428
static_cast to long, otherwise MSVC 2008 won't compile.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115503 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 12:31:20 +00:00
Lang Hames
ab62b7e861
Removed the older style (in-allocator) problem construction system from the PBQP allocator. Problem construction is now done exclusively with the new builders.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115502 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 12:13:07 +00:00
Duncan Sands
3af96330a5
Ada support has moved to dragonegg - I am no longer working on
...
Ada in llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115501 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 10:06:56 +00:00
Duncan Sands
30be9e4f79
Fix a bunch of typos.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115500 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 10:04:14 +00:00
Duncan Sands
051f2ee5c7
Altvec -> Altivec.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115499 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 09:11:50 +00:00
Douglas Gregor
f2409d540a
Update LLVM 2.8 release notes for Clang
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115498 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 07:02:35 +00:00
Chris Lattner
7714c91533
checkpoint, the release notes are now feature complete.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115495 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 04:39:25 +00:00
Chris Lattner
3bdcda1a8b
checkpoint
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115494 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 03:58:12 +00:00
Chris Lattner
11b66112e0
checkpoint.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115489 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-04 02:42:39 +00:00