Chandler Carruth
917b2bf54c
Remove 'sretpromotion' pass from the documentation. This pass is long
...
dead.
Patch by Stephan Falke.
llvm-svn: 168492
2012-11-22 11:17:08 +00:00
Ted Kremenek
6519f20118
Generalize matching of add_executable to add_XXX_executable.
...
llvm-svn: 168490
2012-11-22 07:48:52 +00:00
Lang Hames
313cf13f6d
llvm.fmuladd.* lowering should be checking isOperationLegalOrCustom, rather than
...
isOperationLegal. Thanks to Craig Topper for pointing this out.
llvm-svn: 168485
2012-11-22 03:31:45 +00:00
Kostya Serebryany
b9c4f4e95e
[asan] rip off the creation of global redzones from the main AddressSanitizer class into a separate class. The intent is to make it a separate ModulePass in the following commmits
...
llvm-svn: 168484
2012-11-22 03:18:50 +00:00
Eric Christopher
41a20c2fec
Pull some code out into functions to make rearranging them a bit easier.
...
llvm-svn: 168481
2012-11-22 00:59:49 +00:00
Preston Briggs
0889167a63
Corrects a problem where we reply exclusively of GEPs to drive
...
analysis. Better is to look for cases with useful GEPs and use them
when possible. When a pair of useful GEPs is not available, use the
raw SCEVs directly. This approach supports better analysis of pointer
dereferencing.
In parallel, all the test cases are updated appropriately.
Cases where we have a store to *B++ can now be analyzed!
llvm-svn: 168474
2012-11-21 23:50:04 +00:00
Jack Carter
8fc37da48b
Mips direct object xgot support
...
This patch provides support for the MIPS relocations:
*) R_MIPS_GOT_HI16
*) R_MIPS_GOT_LO16
*) R_MIPS_CALL_HI16
*) R_MIPS_CALL_LO16
These are used for large GOT instruction sequences.
Contributer: Jack Carter
llvm-svn: 168471
2012-11-21 23:38:59 +00:00
Eli Bendersky
e3abf21a2d
Fix a typo in FileCheck.rst
...
llvm-svn: 168466
2012-11-21 22:40:52 +00:00
Akira Hatanaka
0f8303f1e5
[mips] Generate big GOT code.
...
llvm-svn: 168460
2012-11-21 20:40:38 +00:00
Andrew Kaylor
4c7a9eebb0
Adding tests for the Intel JIT event listener's MCJIT support.
...
llvm-svn: 168459
2012-11-21 20:38:26 +00:00
Akira Hatanaka
47c5aeef21
[mips] Simplify lowering functions in MipsISelLowering.cpp by using the helper
...
functions added in r168456.
llvm-svn: 168458
2012-11-21 20:30:40 +00:00
Akira Hatanaka
8f91953ede
[mips] Add helper functions that create nodes for computing address.
...
llvm-svn: 168456
2012-11-21 20:26:38 +00:00
Akira Hatanaka
2e2699b6c9
[mips] Add command line option "-mxgot".
...
llvm-svn: 168455
2012-11-21 20:21:11 +00:00
Akira Hatanaka
b9bbf6e0f0
[mips] When a node which loads from a GOT is created, pass a MachinePointerInfo
...
referring to a GOT entry.
llvm-svn: 168453
2012-11-21 20:16:34 +00:00
Jyotsna Verma
57c7894ac6
Add new predicates for the immediate operands.
...
llvm-svn: 168451
2012-11-21 20:05:09 +00:00
Akira Hatanaka
9815d14552
[mips] Add target operand flag enums for big GOT relocations.
...
llvm-svn: 168450
2012-11-21 19:59:51 +00:00
Jyotsna Verma
ccd944029e
Use one common 'let' expression to set PrintMethod for all immediate operands.
...
llvm-svn: 168449
2012-11-21 19:53:42 +00:00
Akira Hatanaka
89ebdb5e78
Add relocations used for mips big GOT.
...
llvm-svn: 168448
2012-11-21 19:50:22 +00:00
Preston Briggs
f98e42b853
test commit: added a few comments
...
llvm-svn: 168445
2012-11-21 18:53:19 +00:00
Andrew Kaylor
74bde65ee0
Implementing basic function-level profiling support in IntelJITEventListener.
...
Tests to follow in another patch.
llvm-svn: 168444
2012-11-21 18:50:33 +00:00
Anton Korobeynikov
a96a1c8e42
Add support for varargs functions for msp430.
...
Patch by Job Noorman!
llvm-svn: 168440
2012-11-21 17:28:27 +00:00
Anton Korobeynikov
1a8ff7b99a
Add support for byval args. Patch by Job Noorman!
...
llvm-svn: 168439
2012-11-21 17:23:03 +00:00
Rafael Espindola
eeea053b3e
Finish the renaming.
...
llvm-svn: 168437
2012-11-21 16:56:33 +00:00
Jyotsna Verma
79da647716
Renamed HexagonImmediates.td -> HexagonOperands.td.
...
llvm-svn: 168434
2012-11-21 16:28:18 +00:00
NAKAMURA Takumi
8a294363da
llvm/test/Transforms/InstCombine/sdiv-1.ll: FileCheck-ize.
...
"not grep '-715827882'" performed as below...bad...
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
llvm-svn: 168430
2012-11-21 14:46:18 +00:00
Rafael Espindola
03adaab74d
Using "not grep" is brittle as the test passes if llvm-as fails.
...
Fix the testcase to be valid IL and uses FileCheck.
Thanks to NAKAMURA Takumi for noticing it.
llvm-svn: 168427
2012-11-21 14:17:23 +00:00
Chandler Carruth
17e363c242
PR14055: Implement support for sub-vector operations in SROA.
...
Now if we can transform an alloca into a single vector value, but it has
subvector, non-element accesses, we form the appropriate shufflevectors
to allow SROA to proceed. This fixes PR14055 which pointed out a very
common pattern that SROA couldn't handle -- mixed vec3 and vec4
operations on a single alloca.
llvm-svn: 168418
2012-11-21 08:16:30 +00:00
Craig Topper
f0d2332d86
Fix execution domain for packed FMA4 instructions.
...
llvm-svn: 168417
2012-11-21 08:08:21 +00:00
Craig Topper
3ffe8c22c3
Mark ISD::FMA as Legal instead of custom for x86 with FMA3/FMA4. Needed so that llvm.muladd can be converted to ISD::FMA for fp_contract.
...
llvm-svn: 168413
2012-11-21 05:36:24 +00:00
Jakub Staszak
924617b59e
Make calcLiveInMask method static.
...
llvm-svn: 168409
2012-11-21 00:59:34 +00:00
Jakub Staszak
d60dcd504e
Make isScratchReg and isFPCopy methods static.
...
llvm-svn: 168407
2012-11-21 00:50:57 +00:00
Eric Christopher
eb1205766d
Whitespace.
...
llvm-svn: 168402
2012-11-21 00:34:38 +00:00
Eric Christopher
9ba928ae46
Update for some of the coding standard before rearranging functions
...
around.
llvm-svn: 168401
2012-11-21 00:34:35 +00:00
Eric Christopher
2b632babb4
Update some comments.
...
llvm-svn: 168400
2012-11-21 00:17:49 +00:00
Eric Christopher
b46aced215
Update and add some comments.
...
llvm-svn: 168399
2012-11-21 00:03:31 +00:00
Eric Christopher
6179304fc4
Whitespace.
...
llvm-svn: 168398
2012-11-21 00:03:28 +00:00
Eli Bendersky
386b394a4c
Add a tests for the new -no-show-raw-insn option of llvm-objdump.
...
This also initiates a test/tools directory where tools-specific tests can be
placed.
llvm-svn: 168397
2012-11-20 23:44:22 +00:00
Jakub Staszak
474c57d583
Add obvious constantness.
...
llvm-svn: 168396
2012-11-20 23:32:32 +00:00
Eric Christopher
40554d2b5f
Remove constness from this, it modifies the output stream as does
...
everything else underneath.
llvm-svn: 168395
2012-11-20 23:30:11 +00:00
Eli Bendersky
b61724efab
Add the -no-show-raw-insn option to llvm-objdump, thus making it a bit more
...
conformant to binutils objdump.
llvm-svn: 168393
2012-11-20 22:57:02 +00:00
Sebastian Pop
b6541f52ee
removes a few "const" qualifiers
...
so that I can (someday) call SE->getSCEV without complaint.
No semantic change intended.
Patch from Preston Briggs <preston.briggs@gmail.com>.
llvm-svn: 168391
2012-11-20 22:28:04 +00:00
Anders Waldenborg
c07fe5ea4d
[python] fix get_library()
...
Before this fix, the LLVM Python bindings on SVN trunk always fail with:
Exception: LLVM shared library not found!
since it's still looking for a library named "LLVM-3.1svn".
Besides updating the LLVM version in the library name,
this patch also changes llvm.get_library() to make it possible to run
the unit tests without installing the LLVM shared library into a
default linker search path.
e.g. after this patch, running the llvm/python unit tests with:
LD_LIBRARY_PATH=../build/Debug+Asserts/lib nosetests -v bindings/python/llvm/tests/
would work on Linux.
Patch from Scott Tsai (with some minor modifications)
Patch also acked by Gregory Szorc
llvm-svn: 168390
2012-11-20 22:27:55 +00:00
Jyotsna Verma
5aa884e1c7
Removing some unused instruction definitions from the Hexagon backend.
...
llvm-svn: 168388
2012-11-20 22:14:23 +00:00
Eric Christopher
d6e6be52c0
Remove unused function argument, add a bit to the comment.
...
llvm-svn: 168387
2012-11-20 22:14:13 +00:00
Eric Christopher
4b69a81c40
Formatting.
...
llvm-svn: 168384
2012-11-20 20:34:47 +00:00
Eric Christopher
301a74458a
Whitespace.
...
llvm-svn: 168383
2012-11-20 20:34:44 +00:00
Eli Bendersky
5d1da4526f
Some sphinx-ing and consistency fixes
...
llvm-svn: 168380
2012-11-20 19:37:58 +00:00
Eric Christopher
760b5f1eb8
Remove some dead code.
...
llvm-svn: 168374
2012-11-20 18:37:40 +00:00
Joe Abbey
606b7d9b8e
Better 80cols... *sigh*
...
llvm-svn: 168373
2012-11-20 18:14:15 +00:00
Joe Abbey
29cd502b67
Fixing a broken link.
...
llvm-svn: 168372
2012-11-20 17:51:08 +00:00