Anton Korobeynikov
51b8b1d36c
This patch enables ENABLE_SHARED=1 to build DLL based LLVM toolchain on MingW & Cygwin.
...
Patch by Takumi Nakamura!
llvm-svn: 111268
2010-08-17 19:03:03 +00:00
Douglas Gregor
600c4f6d84
Remove the last bit of the Clang Serialization library, for now
...
llvm-svn: 111267
2010-08-17 19:00:27 +00:00
Jim Grosbach
62800a990b
80 column cleanup.
...
llvm-svn: 111266
2010-08-17 18:39:16 +00:00
Douglas Gregor
256a7282e4
Revert Sebastian's build-breaking patch.
...
llvm-svn: 111265
2010-08-17 18:31:01 +00:00
Benjamin Kramer
1afba421a9
Sketch i386 relocations handling, from Roman Divacky.
...
Hello world builds & runs now on i386/ELF with -integrated-as.
llvm-svn: 111264
2010-08-17 18:20:28 +00:00
Jakob Stoklund Olesen
f02b4a686a
Don't call Predicate_* methods directly from Sparc target.
...
Modernize predicates a bit.
The Predicate_* methods are not used by TableGen any longer. They are only
emitted for the sake of legacy code.
llvm-svn: 111263
2010-08-17 18:17:12 +00:00
Jim Grosbach
c252ee2375
Add hook to examine an instruction referencing a frame index to determine
...
whether to allocate a virtual frame base register to resolve the frame
index reference in it. Implement a simple version for ARM to aid debugging.
In LocalStackSlotAllocation, scan the function for frame index references
to local frame indices and ask the target whether to allocate virtual
frame base registers for any it encounters. Purely infrastructural for
debug output. Next step is to actually allocate base registers, then add
intelligent re-use of them.
rdar://8277890
llvm-svn: 111262
2010-08-17 18:13:53 +00:00
Dan Gohman
b1e20869a2
Add the clangSerialization library to libclang.
...
llvm-svn: 111261
2010-08-17 18:07:30 +00:00
Jim Grosbach
8995a1018c
explicitly handle no-op cases for clarity. Fixes clang warning.
...
llvm-svn: 111260
2010-08-17 18:00:41 +00:00
Benjamin Kramer
fd0541566b
Use the correct entry size for relocation entries, from Roman Divacky.
...
llvm-svn: 111259
2010-08-17 17:56:13 +00:00
Sebastian Redl
52ce9bb2fb
Create a new Serialization module that contains all the PCH code, and will contain all the module code in the future. Update the Makefiles, CMake projects and the Xcode project. I hope I did everything right for Xcode. No functionality change.
...
llvm-svn: 111258
2010-08-17 17:55:49 +00:00
Sebastian Redl
ea68af43e8
Fix a typo in a diag name.
...
llvm-svn: 111257
2010-08-17 17:55:38 +00:00
Evan Cheng
647c559172
Move the decision logic whether it's a good idea to split a critical edge to clients. Also fixed an erroneous check. An edge is only a back edge when the from and to blocks are in the same loop.
...
llvm-svn: 111256
2010-08-17 17:43:50 +00:00
Dan Gohman
5047ca0c02
When rotating loops, put the original header at the bottom of the
...
loop, making the resulting loop significantly less ugly. Also, zap
its trivial PHI nodes, since it's easy.
llvm-svn: 111255
2010-08-17 17:39:21 +00:00
Jim Grosbach
a927736604
remove trailing whitespace
...
llvm-svn: 111254
2010-08-17 17:37:22 +00:00
Daniel Dunbar
71323e66b6
Remove a gratuitous lie.
...
llvm-svn: 111253
2010-08-17 17:34:48 +00:00
Benjamin Kramer
1fe76565d0
Differentiate between RELA and REL relocations, from Roman Divacky.
...
llvm-svn: 111252
2010-08-17 17:30:07 +00:00
Bob Wilson
942b10f511
Change ARM PKHTB and PKHBT instructions to use a shift_imm operand to avoid
...
printing "lsl #0". This fixes the remaining parts of pr7792. Make
corresponding changes for encoding/decoding these instructions.
llvm-svn: 111251
2010-08-17 17:23:19 +00:00
Evan Cheng
a6848249ee
Fix debug message.
...
llvm-svn: 111250
2010-08-17 17:15:14 +00:00
Chris Lattner
54a7be757b
add some 's to a pre to avoid newlines being eaten
...
and the formatting being thrown off. I admit to not knowing
what is going on here.
llvm-svn: 111249
2010-08-17 17:13:42 +00:00
Dan Gohman
941020ed72
Use the getUniquePredecessor() utility function, instead of doing
...
what it does manually.
llvm-svn: 111248
2010-08-17 17:07:02 +00:00
Benjamin Kramer
896bd7e932
One baby step towards i386 ELF, from Roman Divacky.
...
llvm-svn: 111247
2010-08-17 17:02:29 +00:00
Chris Lattner
72a364c107
fix emacs language spec's, patch by Edmund Grimley-Evans!
...
llvm-svn: 111241
2010-08-17 16:20:04 +00:00
Nick Lewycky
83a09f0b4f
When creating a JIT, try to load the program so that we can resolve symbols
...
against it. This affects Windows.
llvm-svn: 111240
2010-08-17 16:19:18 +00:00
Douglas Gregor
175ea046ee
A member function never has "C" linkage. Fixes <rdar://problem/8318976>.
...
llvm-svn: 111238
2010-08-17 16:09:23 +00:00
Douglas Gregor
7116a8c19a
When generating code completion patterns for method declarations, give
...
the resulting pattern the appropriate cursor kind of an instance or
class method declaration.
llvm-svn: 111237
2010-08-17 16:06:07 +00:00
Chris Lattner
b5050f3cd0
apparently msvc defines _STDCALL_SUPPORTED, so we should
...
too. Patch by Per Linden!
llvm-svn: 111236
2010-08-17 16:02:32 +00:00
Chris Lattner
d28e6cc554
Add a slightly better hack for microsoft style inline asm,
...
patch by Per Linden!
llvm-svn: 111235
2010-08-17 16:00:12 +00:00
Chris Lattner
c0a585d63c
Implement #pragma push_macro, patch by Francois Pichet!
...
llvm-svn: 111234
2010-08-17 15:55:45 +00:00
Douglas Gregor
b0ce9b79ba
1 != I. Fix the formulation of code-completion patterns for
...
Objective-C method declarations with > 2 parameters.
llvm-svn: 111233
2010-08-17 15:53:35 +00:00
Benjamin Kramer
81c7c50ca8
Revert r111230, we have to find a better place for the host-specific code.
...
llvm-svn: 111232
2010-08-17 15:50:23 +00:00
Chris Lattner
2c76ae54e5
Fix failure of unittests/ExecutionEngine/JIT/MultiJITTest.cpp on
...
cygwin when built with ENABLE_SHARED=1. Patch by NAKAMURA Takumi!
llvm-svn: 111231
2010-08-17 15:42:43 +00:00
Benjamin Kramer
b13847aeca
Micro-optimize MCObjectWriter to do a byteswap if necessary and then write the
...
whole integer to the stream instead of doing byte-sized writes.
llvm-svn: 111230
2010-08-17 13:55:45 +00:00
Benjamin Kramer
35b077e674
Convert all uses of StringLiteral::getStrData() to StringLiteral::getString()
...
and remove getStrData(). Patch by Peter Davies (with some tweaks).
llvm-svn: 111229
2010-08-17 12:54:38 +00:00
Benjamin Kramer
349ded1907
There is this new "LLVM" compiler that supports __builtin_bswap but thinks it's gcc 4.2.
...
llvm-svn: 111228
2010-08-17 11:45:38 +00:00
John McCall
3696dcb171
Don't try to initialize a reference with a constructed temporary if either
...
of the classes is invalid. A class is invalid if a base is invalid.
llvm-svn: 111227
2010-08-17 07:23:57 +00:00
Bob Wilson
411dfad981
Allow more cases of undef shuffle indices and add tests for them.
...
llvm-svn: 111226
2010-08-17 05:54:34 +00:00
Evan Cheng
8b637b177c
Add an option to disable codegen prepare critical edge splitting. In theory, PHI elimination is already doing all (most?) of the splitting needed. But machine-licm and machine-sink seem to miss some important optimizations when splitting is disabled.
...
llvm-svn: 111224
2010-08-17 01:34:49 +00:00
Eric Christopher
541f8012d9
Fix typo.
...
llvm-svn: 111223
2010-08-17 01:30:33 +00:00
Eric Christopher
09f757d4bc
Copy over some overridden MI wrappers for ARM fast-isel. This is where
...
we're adding predicates and optional defs to the MachineInstrs.
llvm-svn: 111222
2010-08-17 01:25:29 +00:00
Evan Cheng
f259efde47
PHI elimination should not break back edge. It can cause some significant code placement issues. rdar://8263994
...
good:
LBB0_2:
mov r2, r0
. . .
mov r1, r2
bne LBB0_2
bad:
LBB0_2:
mov r2, r0
. . .
@ BB#3:
mov r1, r2
b LBB0_2
llvm-svn: 111221
2010-08-17 01:20:36 +00:00
Eric Christopher
d84dbb5caf
Remove predicate workaround, we're going to require that predicate
...
and optional def operands are handled in the backend support.
llvm-svn: 111220
2010-08-17 01:18:37 +00:00
Eric Christopher
663f49900d
Make arm fast-isel possible to enable via command line.
...
llvm-svn: 111219
2010-08-17 00:46:57 +00:00
Douglas Gregor
2c8bd47a6a
When the # of top-level declarations changes after reparsing a
...
translation unit, refresh code-completion results because they've
probably changed. However, enforce a cooldown period between
refreshes, to avoid thrashing.
llvm-svn: 111218
2010-08-17 00:40:40 +00:00
Zhongxing Xu
a66d1694f4
Generate a node instead of a sink. A leak is not a fatal error.
...
llvm-svn: 111217
2010-08-17 00:36:37 +00:00
Jim Ingham
c55e951523
Check for errors in Resume before waiting for the resume to complete.
...
llvm-svn: 111216
2010-08-17 00:35:35 +00:00
Greg Clayton
57a6b999af
Fixed FindFunctions so it works with all the new name types for the DWARF in object files case.
...
llvm-svn: 111215
2010-08-17 00:35:34 +00:00
Benjamin Kramer
b962ca0ce5
Try to silence a overeager GCC warning.
...
llvm-svn: 111214
2010-08-17 00:33:24 +00:00
Benjamin Kramer
5f237942f5
A round of minor cleanups for ELFObjectWriter.
...
llvm-svn: 111213
2010-08-17 00:00:46 +00:00
Bob Wilson
eee4824f74
Add a testcase for svn 111208.
...
llvm-svn: 111212
2010-08-16 23:44:29 +00:00