Daniel Dunbar
762bf86919
ADT/InMemoryStruct: Add an experimental helper class intended for use in
...
situations where on the common path an API can return a pointer to some direct
memory, but which on an exceptional path may need to return a pointer to a
temporary struct.
llvm-svn: 120201
2010-11-27 08:11:02 +00:00
Daniel Dunbar
65dc891942
raw_ostream::write_escaped: Add a UseHexEscapes argument.
...
llvm-svn: 120200
2010-11-27 07:59:50 +00:00
Daniel Dunbar
768a5e8004
Fix a comment.
...
llvm-svn: 120199
2010-11-27 07:39:37 +00:00
Daniel Dunbar
3977e7d22c
Object/Mach-O: Add header and load command information.
...
llvm-svn: 120198
2010-11-27 07:19:41 +00:00
Bob Wilson
d74cf2c8f6
Refactor. Set alignment bit in VLD1-dup instruction classes.
...
llvm-svn: 120197
2010-11-27 07:12:02 +00:00
Daniel Dunbar
795ab9b06d
build/Makefiles: Don't build unittests when ONLY_TOOLS is set.
...
llvm-svn: 120196
2010-11-27 06:59:16 +00:00
Daniel Dunbar
feb1c5d830
Object/Mach-O: Validate Mach-O magic and initialize format info.
...
llvm-svn: 120195
2010-11-27 06:39:22 +00:00
Bob Wilson
c92eea0175
Add NEON VLD1-dup instructions (load 1 element to all lanes).
...
llvm-svn: 120194
2010-11-27 06:35:16 +00:00
Bob Wilson
3a63f9d852
Fix incorrect scheduling itineraries for NEON vld1/vst1 instructions.
...
I added these instructions recently but I have no idea where these "1"
values in the NextCycles field came from. As far as I can tell now,
these instruction stages are clearly intended to overlap.
llvm-svn: 120193
2010-11-27 06:35:09 +00:00
Daniel Dunbar
9630fb3c10
macho-dump: More sketching.
...
llvm-svn: 120192
2010-11-27 06:19:17 +00:00
Daniel Dunbar
fdfb635bff
macho-dump: Stub out C++ macho-dump tool.
...
llvm-svn: 120191
2010-11-27 05:58:44 +00:00
Daniel Dunbar
1df8d83a55
MC/Mach-O: Start stubbing out a Mach-O object file wrapper.
...
llvm-svn: 120190
2010-11-27 05:38:50 +00:00
Daniel Dunbar
4b128a5d4f
Reduce nesting.
...
llvm-svn: 120189
2010-11-27 05:18:48 +00:00
Daniel Dunbar
eab6e401fe
MC/Mach-O: Migrate more constants into MachOFormat.h.
...
llvm-svn: 120188
2010-11-27 04:59:14 +00:00
Daniel Dunbar
a5f50c16f7
MC/Mach-O: Switch to using MachOFormat.h.
...
- I'm leaving MachO.h, because I believe it has external consumers, but I would really like to eliminate it (we have stylistic disagreements with one another).
llvm-svn: 120187
2010-11-27 04:38:36 +00:00
Daniel Dunbar
2263ca4834
MC/Mach-O: Introduce Object/MachOFormat for describing purely platform / machine
...
independent information on the Mach object format, and move some stuff from
MachObjectWriter.cpp there.
llvm-svn: 120186
2010-11-27 04:19:38 +00:00
Daniel Dunbar
1440fd3539
macho-dump: Fix typo.
...
llvm-svn: 120185
2010-11-27 04:00:06 +00:00
Benjamin Kramer
9610ea943c
BitVector tweaks.
...
- Double the vector's capacity when growing to avoid unneeccesary reallocation.
- Do the reallocation with realloc(3) which can expand the memory in place.
llvm-svn: 120183
2010-11-26 18:25:20 +00:00
Benjamin Kramer
4fcd9163fc
StringRefs are POD-like.
...
llvm-svn: 120181
2010-11-26 14:36:54 +00:00
NAKAMURA Takumi
98fa0159fc
unittests/JITTests: Don't use --export-dynamic but --export-all-symbols on cygming.
...
GNU ld/PECOFF accepts but ignores them below;
--version-script
--export-dynamic
--rpath
FIXME: autoconf should be aware of them.
llvm-svn: 120179
2010-11-26 09:32:02 +00:00
NAKAMURA Takumi
c54a9692ce
test/site.exp.in: Add "emitir", for now, fixing up r120156. CMake depends on site.exp.in, though, "emitir" might be unused.
...
llvm-svn: 120174
2010-11-26 08:30:15 +00:00
Jakob Stoklund Olesen
5e9c70ee57
Add B+-tree test case that creates a height 3 tree with a smaller root node.
...
Change temporary debugging code to write a dot file directly.
llvm-svn: 120171
2010-11-26 06:54:20 +00:00
Jakob Stoklund Olesen
90e6f41f69
Extract template function adjustSiblingSizes(), allowing instances to be shared
...
between B+-trees using the same KeyT.
llvm-svn: 120170
2010-11-26 06:54:17 +00:00
Rafael Espindola
bf4a4e4ad9
Remove the unused TheTarget member.
...
llvm-svn: 120168
2010-11-26 04:24:21 +00:00
Michael J. Spencer
2eb0a6fafa
Fix spelling!
...
llvm-svn: 120167
2010-11-26 04:16:20 +00:00
Michael J. Spencer
f13f442b1a
Fix Whitespace.
...
llvm-svn: 120166
2010-11-26 04:16:08 +00:00
Jakob Stoklund Olesen
a12095d26d
Move tree navigation to a new Path class that doesn't have to be a template.
...
The path also holds a reference to the root node, and that allows important
iterator accessors like start() and stop() to have no conditional code. (When
the compiler is clever enough to remove it.)
llvm-svn: 120165
2010-11-26 01:39:40 +00:00
Duncan Sands
7904068186
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c). Yes, dragonegg supports objective-c++ (poorly though).
llvm-svn: 120164
2010-11-25 21:48:20 +00:00
Duncan Sands
8182ac6a05
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c). Yes, dragonegg supports objective-c (poorly though).
llvm-svn: 120163
2010-11-25 21:46:07 +00:00
Oscar Fuentes
e1c6a67df6
Bump required cmake version on CMake.html.
...
llvm-svn: 120162
2010-11-25 21:41:48 +00:00
Duncan Sands
e6c974b230
Use -S rather than -c for the benefit of dragonegg.
...
llvm-svn: 120161
2010-11-25 21:41:35 +00:00
Duncan Sands
5fe97a0490
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).
llvm-svn: 120160
2010-11-25 21:39:17 +00:00
Duncan Sands
0be0ae625d
Judging from the comment, the system assembler is supposed to assemble
...
the output of this test. Since it was producing bitcode, that clearly
wasn't happening! Have it produce target assembler and assemble that
instead.
llvm-svn: 120159
2010-11-25 21:26:21 +00:00
Duncan Sands
b32d19de6a
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).
llvm-svn: 120158
2010-11-25 21:24:35 +00:00
Duncan Sands
2b5243d096
Dragonegg cannot output bitcode, only human readable IR, so use -S rather
...
than -c.
llvm-svn: 120157
2010-11-25 21:21:59 +00:00
Duncan Sands
c78fbf9877
Use LLVMCC_EMITIR_FLAG rather than hard-coding "-emit-llvm".
...
llvm-svn: 120156
2010-11-25 21:19:52 +00:00
Duncan Sands
1bc5303aed
Using LLVMCC_EMITIR_FLAG rather than hard-coding -emit-llvm
...
(dragonegg cannot use -emit-llvm so needs a different flag
to everyone else).
llvm-svn: 120155
2010-11-25 21:14:55 +00:00
Duncan Sands
0787bc37c4
It seems inconsistent to have LLVMCC_EMITIR_FLAG and
...
LLVMGCC_DISABLEOPT_FLAGS, one with CC in it, the other
with GCC. Rename LLVMGCC_DISABLEOPT_FLAGS to
LLVMCC_DISABLEOPT_FLAGS.
llvm-svn: 120151
2010-11-25 17:57:43 +00:00
Benjamin Kramer
336e02e89b
SDep is POD-like. Shave off a few bytes from SUnit by moving a member around.
...
llvm-svn: 120150
2010-11-25 17:50:19 +00:00
Duncan Sands
606d5c0424
Initial support for being able to specify the llvm-gcc to use like this:
...
--with-llvmgcc="gcc-4.5 -fplugin=dragonegg.so"
llvm-svn: 120149
2010-11-25 17:47:42 +00:00
Rafael Espindola
7c2acd022e
Use multiple 0x66 prefixes so that all nops up to 15 bytes are a single instruction.
...
llvm-svn: 120147
2010-11-25 17:14:16 +00:00
Benjamin Kramer
aef5bd049f
Namespacify.
...
llvm-svn: 120146
2010-11-25 16:42:51 +00:00
Rafael Espindola
f8e127eaf6
Factor some code to parseSectionFlags and fix the default type of a section.
...
llvm-svn: 120145
2010-11-25 15:32:56 +00:00
Michael J. Spencer
d4a894d62f
system_error: Even more unsupported error numbers :(.
...
llvm-svn: 120139
2010-11-25 01:53:59 +00:00
Nick Lewycky
b8de00ee07
Treat a call of function pointer like a load of the pointer when considering
...
whether the pointer can be replaced with the global variable it is a copy of.
Fixes PR8680.
llvm-svn: 120126
2010-11-24 22:04:20 +00:00
Rafael Espindola
9f75d5df0b
Behave a bit more like gnu as and use the symbol (instead of the section)
...
for any relocation to a symbol defined in a tls section.
llvm-svn: 120121
2010-11-24 21:57:39 +00:00
Michael J. Spencer
26f628d57f
80 col.
...
llvm-svn: 120111
2010-11-24 20:07:14 +00:00
Michael J. Spencer
02dd5544c4
google test depends on Support.
...
llvm-svn: 120105
2010-11-24 19:35:15 +00:00
Rafael Espindola
708ac4d6ad
Relocate with the symbol if the relocation is of kind NTPOFF.
...
Patch by David Meyer, I added the test.
llvm-svn: 120104
2010-11-24 19:23:50 +00:00
Michael J. Spencer
c33a41db85
unittests: Add initial Path-V2 test.
...
llvm-svn: 120103
2010-11-24 19:20:28 +00:00