Rafael Espindola
974efd3208
Add a paragraph about MCTargetStreamer.
...
llvm-svn: 192265
2013-10-09 02:05:08 +00:00
NAKAMURA Takumi
7aaeaa06a0
llvm/test/LTO should run also on cygwin.
...
llvm-svn: 192262
2013-10-09 01:07:31 +00:00
Manman Ren
ea57f67fce
Debug Info: In DIBuilder, the context field of a DICompositeType is updated
...
to use DIScopeRef.
A paired commit at clang is required due to changes to DIBuilder.
llvm-svn: 192256
2013-10-09 00:17:04 +00:00
Manman Ren
5f99ec0bf4
Debug Info: In DIBuilder, the context fields of a static member and a
...
typedef are updated to use DIScopeRef.
llvm-svn: 192254
2013-10-08 23:49:38 +00:00
Manman Ren
bacd1ef42d
Debug Info: In DIBuilder, the derived-from field of DICompositeType
...
is updated to use DITypeRef.
A paired commit at clang is required due to changes to DIBuilder.
llvm-svn: 192251
2013-10-08 23:28:51 +00:00
Manman Ren
f69bd75e7c
Debug Info: In DIBuilder, the derived-from field of DIDerivedType
...
is updated to use DITypeRef.
A paired commit at clang is required due to changes to DIBuilder.
llvm-svn: 192246
2013-10-08 22:56:31 +00:00
Chad Rosier
9849cc6696
[AArch64] Add support for NEON scalar floating-point reciprocal estimate,
...
reciprocal exponent, and reciprocal square root estimate instructions.
llvm-svn: 192242
2013-10-08 22:09:04 +00:00
Matt Arsenault
bfd1971bbb
Fix duplicated assertions.
...
Do what some other instructions do, and add an assert method.
llvm-svn: 192236
2013-10-08 21:11:12 +00:00
Chad Rosier
f7ed96ef76
[AArch64] Add support for NEON scalar signed/unsigned integer to floating-point
...
convert instructions.
llvm-svn: 192231
2013-10-08 20:43:30 +00:00
Reid Kleckner
cd4a25d66e
Explicitly request unsigned enum types when desired
...
This fixes repeated -Wmicrosoft warnings when self-hosting clang on
Windows, and gets us real unsigned enum types with MSVC.
llvm-svn: 192227
2013-10-08 20:15:11 +00:00
Manman Ren
2f84f46fef
Debug Info: update testing to reflect r192018.
...
llvm-svn: 192224
2013-10-08 20:06:43 +00:00
Reed Kotler
339c741046
Add fabsf to the list of inlined functions; otherwise
...
Mips16 will try and create a stub for it and this will
result in a link error because that function does not exist in libc.
llvm-svn: 192223
2013-10-08 19:55:01 +00:00
Manman Ren
be5576f5f6
Add DbgVariable::resolve per Eric's suggestion.
...
llvm-svn: 192218
2013-10-08 19:07:44 +00:00
Manman Ren
bda410f413
Debug Info: rename getOriginalTypeSize to getBaseTypeSize.
...
llvm-svn: 192216
2013-10-08 18:46:58 +00:00
Manman Ren
93b3090a91
Debug Info: take advantage of the existing CU::resolve.
...
llvm-svn: 192215
2013-10-08 18:42:58 +00:00
Manman Ren
235010a6d0
Move DIRef::getName out of line.
...
llvm-svn: 192214
2013-10-08 18:42:03 +00:00
Akira Hatanaka
ee909cc27f
[mips] Simplify and optimize code.
...
No intended functionality change.
llvm-svn: 192213
2013-10-08 18:13:24 +00:00
Matt Arsenault
a2438bd913
Add some xfaild R600 tests.
...
These are bugs to fix later.
llvm-svn: 192212
2013-10-08 18:06:36 +00:00
Benjamin Kramer
b32b1be766
IRBuilder: Downgrade InsertPointGuard's instruction pointer to a raw pointer.
...
Sadly this loses the checking from AssertingVH, but apparently storing the
end() of a BasicBlock into an AssertingVH has bad consequences as it's not
really an instruction.
llvm-svn: 192209
2013-10-08 17:44:56 +00:00
Reed Kotler
97309af4f4
Let rotr and bswap be handled by expansion for Mips16 since we don't
...
have native instructions for this.
llvm-svn: 192207
2013-10-08 17:32:33 +00:00
Andrew Kaylor
cc7a0ff857
Removing unintended code block from lli
...
llvm-svn: 192205
2013-10-08 17:15:11 +00:00
Eric Christopher
016be42362
Grammar.
...
llvm-svn: 192199
2013-10-08 16:47:11 +00:00
Rafael Espindola
9ab9fe91fb
Fix build on Solaris 11.
...
Patch by Vladimir Voskresensky. The erros were:
Path.inc:274:3: error: ‘Dl_info’ was not declared in this scope
...
and
usr/include/spawn.h:52:14: error: expected ‘,’ or ‘...’ before ‘argv’
llvm-svn: 192185
2013-10-08 16:12:58 +00:00
Rafael Espindola
3f359430b3
Only modify lto.exports.def when contents have changed.
...
Patch by Greg Bedwell.
llvm-svn: 192182
2013-10-08 15:07:00 +00:00
Rafael Espindola
a17151ad5a
Add a MCTargetStreamer interface.
...
This patch fixes an old FIXME by creating a MCTargetStreamer interface
and moving the target specific functions for ARM, Mips and PPC to it.
The ARM streamer is still declared in a common place because it is
used from lib/CodeGen/ARMException.cpp, but the Mips and PPC are
completely hidden in the corresponding Target directories.
I will send an email to llvmdev with instructions on how to use this.
llvm-svn: 192181
2013-10-08 13:08:17 +00:00
NAKAMURA Takumi
c22f85331c
SparcJITInfo.cpp: Prune "default:" label to fix a warning. [-Wcovered-switch-default]
...
llvm-svn: 192179
2013-10-08 10:29:09 +00:00
NAKAMURA Takumi
2949f670d5
Prune trailing linefeeds.
...
llvm-svn: 192178
2013-10-08 10:29:03 +00:00
Venkatraman Govindaraju
2ea4c2880c
[Sparc] Implement JIT for SPARC.
...
No new testcases. However, this patch makes all supported JIT testcases in
test/ExecutionEngine pass on Sparc.
llvm-svn: 192176
2013-10-08 07:15:22 +00:00
Craig Topper
a984729f8a
Remove unneeded MMX instruction definition by moving pattern to an equivalent instruction definition and removing the filtering from the disassembler table building.
...
llvm-svn: 192175
2013-10-08 06:30:39 +00:00
Craig Topper
3f0fdbdfd1
Fix a typo in the mattr part of the run line.
...
llvm-svn: 192174
2013-10-08 06:12:26 +00:00
Craig Topper
3ede2f8a16
Explicitly disable AVX on a bunch of tests so they won't fail on AVX machines post r192171.
...
llvm-svn: 192173
2013-10-08 06:06:57 +00:00
Craig Topper
72c8cd7bc3
Remove some instructions that existed to provide aliases to the assembler. Can be done with InstAlias instead. Unfortunately, this was causing printer to use 'vmovq' or 'vmovd' based on what was parsed. To cleanup the inconsistencies convert all 'vmovd' with 64-bit registers to 'vmovq', but provide an alias so that 'vmovd' will still parse.
...
llvm-svn: 192171
2013-10-08 05:53:50 +00:00
Venkatraman Govindaraju
8223c553cf
[Sparc] Do not hardcode nop in the delay slot of TLS_CALL. Use DelaySlotFiller to fill the delay slot instead.
...
llvm-svn: 192160
2013-10-08 02:50:29 +00:00
Adrian Prantl
e60e03a08d
typo.
...
llvm-svn: 192158
2013-10-08 02:30:54 +00:00
Adrian Prantl
031e575a23
typo.
...
llvm-svn: 192157
2013-10-08 02:28:20 +00:00
Adrian Prantl
73b9d200b5
Reduce testcase from 1r92011.
...
llvm-svn: 192156
2013-10-08 02:21:44 +00:00
Nick Kledzik
733c77fd86
update mach-o EXPORT_SYMBOL_* names
...
llvm-svn: 192151
2013-10-08 00:59:13 +00:00
Hans Wennborg
3e67a65729
cmake: don't set LLVM_COMPILER_IS_GCC_COMPATIBLE when using clang-cl
...
Tip-of-tree CMake has become clang-cl aware [1]. In this case,
CMAKE_CXX_COMPILER_ID will still be Clang, but MSVC will be true.
[1] See http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3d8356d4
llvm-svn: 192139
2013-10-07 22:03:23 +00:00
David Majnemer
f07777c80b
Windows: Avoiding resizing, use uninitialized data() instead
...
This is ever-so faster but more importantly matches what we have elsewhere.
llvm-svn: 192137
2013-10-07 21:57:07 +00:00
Akira Hatanaka
57a2d2f7fd
[mips] Test case for r192124.
...
llvm-svn: 192135
2013-10-07 21:32:57 +00:00
Arnold Schwaighofer
0caddfc731
LoopVectorize: External uses must use the last value in a reduction cycle
...
Otherwise, we don't perform operations that would have been performed on
the scalar version.
Fixes PR17498.
llvm-svn: 192133
2013-10-07 21:05:43 +00:00
Reed Kotler
445d0adc24
Add Mips16 patterns for sign extend byte and sign extend halfword.
...
llvm-svn: 192130
2013-10-07 20:46:19 +00:00
Manman Ren
5a78755336
Struct byval: use the correct alignment for loads generated to load
...
from struct byval to registers.
We used to pass 0 which means the alignment of PtrVT. Even when the alignment
of the struct is smaller than 4, the LOADs would have alignment of 4, and
further optimizations could combine the LOADs into a ldm, which would
cause crash.
The fix is to pass the alignment of the struct byval.
rdar://problem/15144402
llvm-svn: 192126
2013-10-07 19:47:53 +00:00
Akira Hatanaka
4c0a71223a
[mips] Coding style clean up.
...
llvm-svn: 192125
2013-10-07 19:33:02 +00:00
Akira Hatanaka
3c0d6afeec
[mips] Disable tail merging when long branch pass is enabled.
...
llvm-svn: 192124
2013-10-07 19:13:53 +00:00
Benjamin Kramer
7b5e159450
X86: Fix type check. Just because an integer type is illegal doesn't mean it's i64.
...
Fixes PR17495, where an i24 triggered this code. It's intended to
optimize i64 loads on 32 bit x86.
llvm-svn: 192123
2013-10-07 19:11:35 +00:00
Akira Hatanaka
a8a05be7d6
[mips] Define method MipsSubtarget::enableLongBranchPass.
...
llvm-svn: 192122
2013-10-07 19:06:57 +00:00
Alexey Samsonov
a1944e6d26
Revert r191834 until we measure the effect of this benchmarks and maybe find a better way to fix it
...
llvm-svn: 192121
2013-10-07 19:03:24 +00:00
Akira Hatanaka
16048332f1
[mips] Fix definition of mfhi and mflo instructions to read from the whole
...
accumulator instead of its sub-registers, $hi and $lo.
We need this change to prevent a mflo following a mtlo from reading an
unpredictable/undefined value, as shown in the following example:
mult $6, $7 // result of $6 * $7 is written to $lo and $hi.
mflo $2 // read lower 32-bit result from $lo.
mtlo $4 // write to $lo. the content of $hi becomes unpredictable.
mfhi $3 // read higher 32-bit from $hi, which has an unpredictable value.
I don't have a test case for this change that reliably reproduces the problem.
llvm-svn: 192119
2013-10-07 18:49:46 +00:00
Richard Mitton
0aafb58aca
Formally added an explicit enum for DWARF TLS support. No functionality change.
...
llvm-svn: 192118
2013-10-07 18:39:18 +00:00