Anat Shemer
1609ba599b
test
...
llvm-svn: 179665
2013-04-17 05:34:03 +00:00
David Blaikie
53eed4fdaa
PR15149/r174304 improvement - print hex for unknown dwarf language codes & add a test case
...
CR feedback from Rafael Espindola and Paul Robinson.
llvm-svn: 179664
2013-04-17 03:41:36 +00:00
Eric Christopher
869cbc27a1
Fix random typo.
...
llvm-svn: 179663
2013-04-17 03:18:49 +00:00
Peter Collingbourne
648f68b9e0
Do not optimise fprintf() calls if its return value is used.
...
Differential Revision: http://llvm-reviews.chandlerc.com/D620
llvm-svn: 179661
2013-04-17 02:01:10 +00:00
Jack Carter
e773ca9ec6
Mips assembler: Enable handling of nested expressions
...
This patch allows the Mips assembler to parse and emit nested
expressions as instruction operands. It also extends the
expansion of memory instructions when an offset is given as
an expression.
Contributer: Vladimir Medic
llvm-svn: 179657
2013-04-17 00:18:04 +00:00
Chad Rosier
441bf36faa
[ms-inline asm] Add support for parsing complex immediate expressions. Test
...
cases to be submitted on clang side shortly.
rdar://13663768 and PR15760
llvm-svn: 179655
2013-04-17 00:11:46 +00:00
Tom Stellard
cbb7544fa4
C API: Add LLVMTargetMachineEmitToMemoryBuffer()
...
llvm-svn: 179648
2013-04-16 23:12:56 +00:00
Tom Stellard
e343d842fd
C API: Add LLVMGetBufferSize()
...
llvm-svn: 179647
2013-04-16 23:12:51 +00:00
Tom Stellard
c0349078dc
C API: Add LLVMGetBufferStart()
...
llvm-svn: 179646
2013-04-16 23:12:47 +00:00
Tom Stellard
18edd84b8a
C API: Add LLVMAddTargetDependentFunctionAttr()
...
llvm-svn: 179645
2013-04-16 23:12:43 +00:00
Bill Wendling
024e24d7f3
Print out the target-independent attributes in a comment before the function definition.
...
llvm-svn: 179622
2013-04-16 20:55:47 +00:00
Richard Osborne
3bc2e6cf63
[XCore] Extend test to check positve offsets are folded into addresses.
...
llvm-svn: 179621
2013-04-16 20:05:52 +00:00
Richard Osborne
d8d60d4b61
[XCore] Give test more generic name.
...
I intend to extend the test with more offset folding checks
llvm-svn: 179620
2013-04-16 19:56:55 +00:00
Richard Osborne
53ec25c8fa
[XCore] Convert a couple of tests to FileCheck.
...
llvm-svn: 179619
2013-04-16 19:41:19 +00:00
Chad Rosier
9a757bb4ea
Remove unused variable from previous refactor.
...
llvm-svn: 179611
2013-04-16 18:20:10 +00:00
Chad Rosier
128e5ae5af
[ms-inline asm] Refactor. No functional change intended.
...
llvm-svn: 179610
2013-04-16 18:15:40 +00:00
Chad Rosier
0aff0eaab6
[ms-inline asm] Remove some dead code.
...
llvm-svn: 179607
2013-04-16 17:27:40 +00:00
Eli Bendersky
6bcfbc1d6e
Cleanup naming: DataLayout s/TD/DL/
...
llvm-svn: 179601
2013-04-16 15:41:18 +00:00
Logan Chien
dd22a5184e
Fix build failure introduced in 179591 when assertions are disabled.
...
llvm-svn: 179593
2013-04-16 14:02:30 +00:00
Logan Chien
6f13ff357d
Implement ARM unwind opcode assembler.
...
llvm-svn: 179591
2013-04-16 12:02:21 +00:00
Alexey Samsonov
8fcb809efb
llvm-objdump: Don't print contents of BSS sections: it makes no sense and crashes llvm-objdump on relocated objects with large bss
...
llvm-svn: 179589
2013-04-16 10:53:11 +00:00
Hans Wennborg
6c6c92e0af
Add four new functions and one new enum to the C API:
...
LLVMGetThreadLocalMode - exposes GlobalVariable::getThreadLocalMode
LLVMSetThreadLocalMode - exposes GlobalVariable::setThreadLocalMode
LLVMIsExternallyInitialized - exposes GlobalVariable::isExternallyInitialized
LLVMSetExternallyInitialized - exposes GlobalVariable::setExternallyInitialized
LLVMThreadLocalMode - maps to GlobalVariable::ThreadLocalMode
Patch by Moritz Maxeiner!
llvm-svn: 179588
2013-04-16 08:58:59 +00:00
Hans Wennborg
9311589e8d
simplifycfg: Fix integer overflow converting switch into icmp.
...
If a switch instruction has a case for every possible value of its type,
with the same successor, SimplifyCFG would replace it with an icmp ult,
but the computation of the bound overflows in that case, which inverts
the test.
Patch by Jed Davis!
llvm-svn: 179587
2013-04-16 08:35:36 +00:00
Jakob Stoklund Olesen
b4edc00933
Add 64-bit multiply and divide instructions for SPARC v9.
...
llvm-svn: 179582
2013-04-16 02:57:02 +00:00
Jim Grosbach
10785fcd52
ARM: Add VACLT and VACLE assembly aliases.
...
These are aliases for VACGT and VACGE, respectively, with the source
operands reversed.
rdar://13638090
llvm-svn: 179575
2013-04-15 22:42:50 +00:00
Bill Wendling
97863d4274
We are not able to bitcast a pointer to an integral value.
...
Two return types are not equivalent if one is a pointer and the other is an
integral. This is because we cannot bitcast a pointer to an integral value.
PR15185
llvm-svn: 179569
2013-04-15 22:33:50 +00:00
Jack Carter
6a3d1c59be
Mips assembler: Explicit floating point condition register recognition.
...
This patch allows the assembler to recognize $fcc0
as a valid register for conditional move instructions.
Corresponding test cases have been added.
Contributer: Vladimir Medic
llvm-svn: 179567
2013-04-15 22:21:55 +00:00
Nadav Rotem
cd793c55bf
Fix a grammar mistake, and add a line about the two phases that the BB/SLP vectorizers have (top-down and bottom-up).
...
llvm-svn: 179566
2013-04-15 22:21:25 +00:00
Nadav Rotem
7d5c664728
Fix the internal link.
...
llvm-svn: 179565
2013-04-15 22:11:07 +00:00
Nadav Rotem
bd23c18b1d
Update the release notes about the vectorizers.
...
llvm-svn: 179564
2013-04-15 22:10:39 +00:00
Nadav Rotem
40ad92b46d
SLPVectorizer: Make it a function pass and add code for hoisting the vector-gather sequence out of loops.
...
llvm-svn: 179562
2013-04-15 22:00:26 +00:00
Rafael Espindola
0c8ccca49b
Fix silly typo that broke big endian hosts.
...
llvm-svn: 179551
2013-04-15 20:13:59 +00:00
Rafael Espindola
9cf2c1eeb5
Fix endianness on some MSVC versions.
...
Looks like it was evaluating undef == undef to true.
llvm-svn: 179549
2013-04-15 19:28:45 +00:00
Tom Stellard
bd67f8cd81
R600/SI: Emit config values in register value pairs.
...
Instead of emitting config values in a predefined order, the code
emitter will now emit a 32-bit register index followed by the 32-bit
config value.
llvm-svn: 179546
2013-04-15 17:51:35 +00:00
Tom Stellard
a44e2e18a1
R600/SI: Emit configuration value in the .AMDGPU.config ELF section
...
llvm-svn: 179545
2013-04-15 17:51:30 +00:00
Tom Stellard
cb4468b00a
R600: Emit ELF formatted code rather than raw ISA.
...
llvm-svn: 179544
2013-04-15 17:51:21 +00:00
Jim Grosbach
1b2d956f84
Fix a typo in comment.
...
llvm-svn: 179542
2013-04-15 17:40:48 +00:00
Jim Grosbach
3c2cf9b6eb
Simplify the MCInst operator iterator declaration.
...
llvm-svn: 179541
2013-04-15 17:40:45 +00:00
John Criswell
f101677b3e
Grammar and punctuation fixes.
...
No content changes.
llvm-svn: 179540
2013-04-15 17:38:06 +00:00
Rafael Espindola
9b255d0066
Try to fix the mingw builds.
...
llvm-svn: 179536
2013-04-15 16:46:43 +00:00
Arnold Schwaighofer
a9354729cb
Fix bit size of v64i8 and v32i16 vector types.
...
Patch by Cameron McInally <cameron.mcinally@nyu.edu>.
llvm-svn: 179535
2013-04-15 16:11:25 +00:00
Rafael Espindola
75e5e1335a
Remove getters now that we can specialize structs on the host endianness.
...
llvm-svn: 179534
2013-04-15 16:08:02 +00:00
Tim Northover
b5dc8bb136
Avoid outputting temporary test file into source tree.
...
llvm-svn: 179532
2013-04-15 15:49:13 +00:00
Rafael Espindola
485be5761d
Remove unused function.
...
llvm-svn: 179530
2013-04-15 15:13:10 +00:00
Rafael Espindola
55f068deb0
Make the host endianness check an integer constant expression.
...
I will remove the isBigEndianHost function once I update clang.
The ifdef logic is designed to
* not use configure/cmake to avoid breaking -arch i686 -arch ppc.
* default to little endian
* be as small as possible
It looks like sys/endian.h is the preferred header on most modern BSD systems,
but it is better to change this in a followup patch as machine/endian.h is
available on FreeBSD, OpenBSD, NetBSD and OS X.
llvm-svn: 179527
2013-04-15 14:44:24 +00:00
Andy Gibbs
0e5a87325f
Replace uses of the deprecated std::auto_ptr with OwningPtr.
...
This is a rework of the broken parts in r179373 which were subsequently reverted in r179374 due to incompatibility with C++98 compilers. This version should be ok under C++98.
llvm-svn: 179520
2013-04-15 12:06:32 +00:00
Tim Northover
f8e799781e
Enable all targets by default on Visual Studio.
...
llvm-svn: 179518
2013-04-15 11:53:05 +00:00
Eric Christopher
2f014c4d8d
Revert "Recommit r179497 after fixing uninitialized variable." until
...
I can fix the testcases here:
http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/6952
This reverts commit r179512 due to testcases specifying triples
that they didn't actually mean and causing failures on other platforms.
llvm-svn: 179513
2013-04-15 07:31:37 +00:00
Eric Christopher
d78f751bfe
Recommit r179497 after fixing uninitialized variable.
...
llvm-svn: 179512
2013-04-15 07:07:21 +00:00
Nadav Rotem
0e89041496
Document our desire to enable the loop vectorizer on -Os in future releases.
...
llvm-svn: 179511
2013-04-15 05:56:55 +00:00