OSDN Git Service
Dan Gohman [Fri, 17 Sep 2010 20:08:35 +0000 (20:08 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114197
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 17 Sep 2010 20:06:27 +0000 (20:06 +0000)]
Attempt to support platforms which don't have fenv.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114196
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 17 Sep 2010 18:46:17 +0000 (18:46 +0000)]
Add skeleton infrastructure for the ARMMCCodeEmitter class. Patch by Jason Kim!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114195
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 17 Sep 2010 18:25:25 +0000 (18:25 +0000)]
handle the upper16/lower16 target operand flags on symbol references for MC
instruction lowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114191
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 17 Sep 2010 18:02:29 +0000 (18:02 +0000)]
fix rdar://
8444631 - encoder crash on 'enter'
What a weird instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114190
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Fri, 17 Sep 2010 17:52:00 +0000 (17:52 +0000)]
fix comments; patch by Edmund Grimley-Evans\!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114189
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 17 Sep 2010 17:05:27 +0000 (17:05 +0000)]
Some of the tests build an executable with llvm-gcc. For this to work, llvm-gcc
needs to find some libraries, which may require searching the directories given
by LIBRARY_PATH on curiously configured systems. So pass on LIBRARY_PATH.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114186
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Sep 2010 16:34:24 +0000 (16:34 +0000)]
Fix an MSVC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114184
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 17 Sep 2010 16:25:52 +0000 (16:25 +0000)]
expand PICLDR MC lowering to handle other PICLDR and PICSTR versions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114183
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Sep 2010 15:21:50 +0000 (15:21 +0000)]
MC/Mach-O/i386: Fix a crash in relocation handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114176
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 17 Sep 2010 11:14:18 +0000 (11:14 +0000)]
Move the declaration SetInformationJobObject() outside of namespace.
It is also workaround for PR7927.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114175
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 17 Sep 2010 09:56:43 +0000 (09:56 +0000)]
AlphaSchedule.td: 7bit-ize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114173
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Fri, 17 Sep 2010 06:33:20 +0000 (06:33 +0000)]
docs: Update GettingStartedVS to reflect current state.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114167
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Sep 2010 04:25:24 +0000 (04:25 +0000)]
System: Don't reexport ___eprintf when building with Clang; this symbol isn't
used on Darwin anymore, and Clang might not always link with the library it is
currently found in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114165
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Fri, 17 Sep 2010 03:22:21 +0000 (03:22 +0000)]
tests/CMakeLists.txt: use `configure_file' instead of `sed'.
The Windows users will appreciate this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114158
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 17 Sep 2010 02:47:07 +0000 (02:47 +0000)]
MC/AsmParser: Add support for 'a + 4@GOTPCREL' and friends, by reconsing the
expression to include the modifier.
- Gross, but this a corner case we don't expect to see often in practice, but
it is worth accepting.
- Also improves diagnostics on invalid modifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114154
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Fri, 17 Sep 2010 02:17:13 +0000 (02:17 +0000)]
Updated GettingStartedVS.html to reflect current state.
Reorganized it too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114151
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 17 Sep 2010 01:38:06 +0000 (01:38 +0000)]
Fix the folding of floating-point math library calls, like sin(infinity),
so that it detects errors on platforms where libm doesn't set errno.
It's still subject to host libm details though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114148
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Fri, 17 Sep 2010 00:43:53 +0000 (00:43 +0000)]
Updated LLVMLibDeps.cmake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114143
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 17 Sep 2010 00:33:43 +0000 (00:33 +0000)]
Add an #include of raw_ostream.h. Previously, this only compiled
because it was using Twine.h's declaration of operator<<(const Twine &).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114141
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 17 Sep 2010 00:33:03 +0000 (00:33 +0000)]
Add "pointer to x86mmx" type to the intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114140
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Fri, 17 Sep 2010 00:30:52 +0000 (00:30 +0000)]
Direct CMake users to the right place for up-to-date info about using
LLVM libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114139
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 23:44:50 +0000 (23:44 +0000)]
Allow the PassRegistry mutex to be lazily initialized, and clean up the global namespace at the same time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114131
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 23:32:35 +0000 (23:32 +0000)]
Do not expose the locking for the PassRegistry in the header. Be careful to
synchronize any method that might lazily initialize the pImpl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114130
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 16 Sep 2010 23:06:18 +0000 (23:06 +0000)]
Update CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114128
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 16 Sep 2010 22:50:09 +0000 (22:50 +0000)]
Rename a variable to avoid a declaration conflict.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114126
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 16 Sep 2010 22:08:32 +0000 (22:08 +0000)]
Add a pass which prints out all the memdep dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114121
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 16 Sep 2010 20:57:49 +0000 (20:57 +0000)]
If FE forgot to provide a file name (usually it uses "stdin" as name in such situation) then make one up to ensure that debug info is not malformed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114119
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 20:51:41 +0000 (20:51 +0000)]
Revert r114097, adding back in the assertion against replacing an Instruction by itself. Now that CorrelatedValuePropagation is
more careful not to call SimplifyInstructionsInBlock() on an unreachable block, the issue has been fixed at a higher level. Add
a big warning to SimplifyInstructionsInBlock() to hopefully prevent this in the future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114117
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 16 Sep 2010 20:46:38 +0000 (20:46 +0000)]
fix rdar://
8438816 - unrecognized 'fildq' instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114116
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 16 Sep 2010 19:46:31 +0000 (19:46 +0000)]
Print the address of sections as 0 and create the metadata sections in the
same order as gnu as.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114109
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 18:46:23 +0000 (18:46 +0000)]
Add missing RUN line to this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114106
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 18:35:07 +0000 (18:35 +0000)]
Use a depth-first iteratation in CorrelatedValuePropagation to avoid wasting time trying
to optimize unreachable blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114105
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 16 Sep 2010 18:30:55 +0000 (18:30 +0000)]
When substituting sunkaddrs into indirect arguments an asm, we were
walking the asm arguments once and stashing their Values. This is
wrong because the same memory location can be in the list twice, and
if the first one has a sunkaddr substituted, the stashed value for the
second one will be wrong (use-after-free). PR 8154.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114104
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 18:28:33 +0000 (18:28 +0000)]
It is possible, under specific circumstances involving ptrtoint ConstantExpr's, for LVI to end up trying to merge
a Constant into a ConstantRange. Handle this conservatively for now, rather than asserting. The testcase is
more complex that I would like, but the manifestation of the problem is sensitive to iteration orders and the state of the
LVI cache, and I have not been able to reproduce it with manually constructed or simplified cases.
Fixes PR8162.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114103
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 16 Sep 2010 17:48:08 +0000 (17:48 +0000)]
make this non brain dead...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114100
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 16 Sep 2010 17:45:21 +0000 (17:45 +0000)]
Remove unnecessary by-reference return.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114099
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 16 Sep 2010 17:43:25 +0000 (17:43 +0000)]
MC-ization of the PICLDR pseudo. Next up, adding the other variants
(PICLDRB, et. al.) and PICSTR*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114098
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 17:42:36 +0000 (17:42 +0000)]
Fix PR8161, in which an unreachable loop causes recursive instruction simplification to try
to replace an instruction with itself. Add a predicate to the simplifier to prevent this case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114097
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 16 Sep 2010 17:37:30 +0000 (17:37 +0000)]
Make sure to promote single precision floats to double before extracting them
from the APFloat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114096
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 16 Sep 2010 17:05:55 +0000 (17:05 +0000)]
Make sure that names like .note.GNU-stack are accepted as valid section names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114091
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 16 Sep 2010 15:03:59 +0000 (15:03 +0000)]
Add support for the .zero directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114077
91177308-0d34-0410-b5e6-
96231b3b80d8
Kalle Raiskila [Thu, 16 Sep 2010 12:29:33 +0000 (12:29 +0000)]
Change SPU register re-interpretations from OR to COPY_TO_REGCLASS instruction.
This cleans up after the mess r108567 left in the CellSPU backend.
ORCvt-instruction were used to reinterpret registers, and the ORs were then
removed by isMoveInstr(). This patch now removes 350 instrucions of format:
or $3, $3, $3
(from the 52 testcases in CodeGen/CellSPU). One case of a nonexistant or is
checked for.
Some moves of the form 'ori $., $., 0' and 'ai $., $., 0' still remain.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114074
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 16 Sep 2010 08:25:48 +0000 (08:25 +0000)]
Add better support for environment portion of triple. Original patch by
Cameron Esfahani, tweaked to use array_lengthof.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114073
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 16 Sep 2010 08:20:49 +0000 (08:20 +0000)]
Some versions of gcc still warn about "ignoring return value ... declared
with attribute warn_unused_result" here - suppress the warning harder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114072
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 16 Sep 2010 04:55:00 +0000 (04:55 +0000)]
Remove support for "dregpair" operand modifier, now that it is no longer being
used for anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114067
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 16 Sep 2010 04:25:37 +0000 (04:25 +0000)]
When expanding ARM pseudo registers, copy the existing predicate operands
instead of using default predicates on the expanded instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114066
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 16 Sep 2010 03:45:21 +0000 (03:45 +0000)]
store MC FP immediates as a double instead of as an APFloat, thus avoiding an
unnecessary dtor for MCOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114064
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Sep 2010 00:42:35 +0000 (00:42 +0000)]
llvm-mc: Teach -as-lex to print more token kinds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114051
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 16 Sep 2010 00:42:32 +0000 (00:42 +0000)]
build: Add support for a TOOL_ORDER_FILE variable so commands can build with an
order file on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114050
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 16 Sep 2010 00:31:32 +0000 (00:31 +0000)]
Add missing break.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114048
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 16 Sep 2010 00:31:02 +0000 (00:31 +0000)]
Change VLDMQ and VSTMQ to be pseudo instructions. They are expanded after
register allocation to VLDMD and VSTMD respectively. This avoids using the
dregpair operand modifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114047
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Sep 2010 00:27:35 +0000 (00:27 +0000)]
Fix a threaded LLVM bug due the need for operator= on reference counted AttrListImpl's. It might
be possible to implement this very carefully to allow a lock-free implementation while still
avoiding illegal interleavings, but I haven't been able to figure one out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114046
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 16 Sep 2010 00:01:36 +0000 (00:01 +0000)]
Use the value mapping provided by LiveIntervalMap. This simplifies the code a
great deal because we don't have to worry about maintaining SSA form.
Unconditionally copy back to dupli when the register is live out of the split
range, even if the live-out value was defined outside the range. Skipping the
back-copy only makes sense when the live range is going to spill outside the
split range, and we don't know that it will. Besides, this was a hack to avoid
SSA update issues.
Clear up some confusion about the end point of a half-open LiveRange. Methinks
LiveRanges need to be closed so both start and end are included in the range.
The low bits of a SlotIndex are symbolic, so a half-open range doesn't really
make sense. This would be a pervasive change, though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114043
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 23:04:14 +0000 (23:04 +0000)]
System/Path: Add x86-64 COFF to IdentifyFileType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114037
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 15 Sep 2010 23:03:33 +0000 (23:03 +0000)]
Since PassRegistry is currently a shared global object, it needs locking. While it might intuitively seem
that all the setup of this class currently happens at static initialization time, this misses the fact
that some later events can cause mutation of the PassRegistrationListeners list, and thus cause race issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114036
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 22:45:45 +0000 (22:45 +0000)]
System/Path: Add isObjectFile().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114032
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 22:13:23 +0000 (22:13 +0000)]
Add support for the 'lane' modifier on vdup operands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114030
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 21:52:13 +0000 (21:52 +0000)]
add a test of an edge case value for the FP immediate (needs all digits of
precision)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114028
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 15 Sep 2010 21:48:40 +0000 (21:48 +0000)]
Add a InitSections method to the streamer interface.
The ELF implementation now creates text, data and bss to match the gnu as
behavior.
The text streamer still has the old MachO specific behavior since
the testsuite checks that it will error when a directive is given
before a setting the current section for example.
A nice benefit is that -n is not required anymore when producing
ELF files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114027
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Sep 2010 21:40:11 +0000 (21:40 +0000)]
Remember VLDMQ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114026
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Sep 2010 21:40:09 +0000 (21:40 +0000)]
Add missing break.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114025
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 21:04:54 +0000 (21:04 +0000)]
Teach the MC disassembler to handle vmov.f32 and vmov.f64 immediate to register
moves. Previously, the immediate was printed as the encoded integer value,
which is incorrect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114021
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 20:26:25 +0000 (20:26 +0000)]
move getRegisterNumbering() to out of ARMBaseRegisterInfo into the helper
functions in ARMBaseInfo.h so it can be used in the MC library as well.
For anything bigger than this, we may want a means to have a small support
library for shared helper functions like this. Cross that bridge when we
come to it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114016
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 15 Sep 2010 20:08:03 +0000 (20:08 +0000)]
PR7959: Handle negative scales in GEPs correctly in BasicAA for non-64-bit
targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114015
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:52:17 +0000 (19:52 +0000)]
simplify getRegisterNumbering(). Remove the unused isSPVFP argument and
merge the common cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114013
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:44:57 +0000 (19:44 +0000)]
Refactor uses of getRegisterNumbering() to not need the isSPVFP argument. Check
if the register is a member of the SPR register class directly instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114012
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:27:50 +0000 (19:27 +0000)]
Reduce dependencies in the ARM MC instruction printer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114009
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:26:50 +0000 (19:26 +0000)]
Fix spelling typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114008
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:26:06 +0000 (19:26 +0000)]
Factor out basic enums and hleper functions from ARM.h for cleaner sharing
between the compiler back end and the MC libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114007
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 18:47:08 +0000 (18:47 +0000)]
Add support for floating point immediates to MC instruction printing. ARM
VFP instructions use it for loading some constants, so implement that
handling.
Not thrilled with adding a member to MCOperand, but not sure there's much of
a better option that's not pretty fragile (like putting a double in the
union instead and just assuming that's good enough). Suggestions welcome...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113996
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 15 Sep 2010 18:13:55 +0000 (18:13 +0000)]
Check bb to ensure that alloca is in separate basic block.
This fixes funcargs.exp regression reported by gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113992
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Sep 2010 17:27:09 +0000 (17:27 +0000)]
Recognize VST1q64Pseudo and VSTMQ as stack slot stores.
Recognize VLD1q64Pseudo as a stack slot load.
Reject these if they are loading or storing a subregister. The API (and
VirtRegRewriter) doesn't know how to deal with that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113985
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Sep 2010 17:12:08 +0000 (17:12 +0000)]
Reapply Gabor's 113839, 113840, and 113876 with a fix for a problem
encountered while building llvm-gcc for arm. This is probably the same issue
that the ppc buildbot hit. llvm::prior works on a MachineBasicBlock::iterator,
not a plain MachineInstr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113983
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Wed, 15 Sep 2010 16:53:07 +0000 (16:53 +0000)]
the darwin9-powerpc buildbot keeps consistently crashing,
backing out following to get it back to green,
so I can investigate in peace:
svn merge -c -113840 llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll
svn merge -c -113876 -c -113839 llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113980
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Sep 2010 16:36:26 +0000 (16:36 +0000)]
Move ARM is{LoadFrom,StoreTo}StackSlot closer to their siblings so they won't be
forgotten in the future.
Coalesce identical cases in switch.
No functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113979
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Sep 2010 16:28:21 +0000 (16:28 +0000)]
Spelling fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113978
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 16:24:01 +0000 (16:24 +0000)]
trailing whitespace and 80 column cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113977
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 16:08:15 +0000 (16:08 +0000)]
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113975
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 15 Sep 2010 15:20:41 +0000 (15:20 +0000)]
llvmc: make -x work with unknown suffixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113972
91177308-0d34-0410-b5e6-
96231b3b80d8
Garrison Venn [Wed, 15 Sep 2010 14:55:32 +0000 (14:55 +0000)]
Removed TracingBrainF from examples Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113970
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 15 Sep 2010 14:48:53 +0000 (14:48 +0000)]
If dbg.declare from non-entry block is using alloca from entry block then use offset available in StaticAllocaMap to emit DBG_VALUE. Right now, this has no material impact because varible info also collected using offset table maintained in machine module info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113967
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Sep 2010 12:30:35 +0000 (12:30 +0000)]
Release-Asserts no longer exists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113965
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Sep 2010 08:17:10 +0000 (08:17 +0000)]
Remove the Ada bindings which are unmaintained and unused. The project which
was the main putative user of the binding is actually maintaining its own
different binding, see http://git.ada.cx/cgi-bin/cgit.cgi/draco.git/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113960
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Sep 2010 08:09:55 +0000 (08:09 +0000)]
Remove LLVM_GLOBAL_VISIBILITY, which is unused, and was not working properly.
The problem was that the test for whether a compiler supports it or not was
inaccurate, but has to be accurate: LLVM_LOCAL_VISIBILITY is an optimization
and not needed for correctness, so wrongly thinking a compiler doesn't support
it is not a big deal, but LLVM_GLOBAL_VISIBILITY is for correctness, and not
an optimization: getting it wrong is fatal: it needs to be set based on a
configure test not testing the gcc version. Since dragonegg has moved to a
different scheme, and it was the only user of LLVM_GLOBAL_VISIBILITY, just
remove this macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 05:30:20 +0000 (05:30 +0000)]
lcall and ljmp always default to lcalll and ljmpl. This finally
wraps up r8418316
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113949
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 05:25:21 +0000 (05:25 +0000)]
apparently jmpl $1,$2 is an alias for ljmpl, similiarly
for call. Add this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113948
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 05:14:54 +0000 (05:14 +0000)]
Disambiguate lcall/ljmp to the 32-bit version. This happens
even in 64-bit mode apparently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113945
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:45:10 +0000 (04:45 +0000)]
fix the encoding of sldt GR16 to have the 0x66 prefix, and
add sldt GR32, which isn't documented in the intel manual
but which gas accepts. Part of rdar://
8418316
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113938
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:37:18 +0000 (04:37 +0000)]
implement aliases for shld/shrd, part of rdar://
8418316
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113937
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:33:27 +0000 (04:33 +0000)]
fix rdar://
8431880 - rcl/rcr with no shift amount not recognized
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113936
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:15:16 +0000 (04:15 +0000)]
add various broken forms of fnstsw. I didn't add the %rax
version because it adds a prefix and makes even less sense
than the other broken forms. This wraps up rdar://
8431422
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113932
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:08:38 +0000 (04:08 +0000)]
add some aliases for f[u]comi, part of rdar://
8431422
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113930
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:04:33 +0000 (04:04 +0000)]
add a bunch of aliases for fp operations with no operand,
rdar://
8431422
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113929
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 03:58:51 +0000 (03:58 +0000)]
test: Fix coff-dump section array indicies to 1 based to match file format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113928
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 03:58:39 +0000 (03:58 +0000)]
Tabs to spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113927
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 03:58:24 +0000 (03:58 +0000)]
Cleanup coff-dump.py
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113926
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 15 Sep 2010 03:52:38 +0000 (03:52 +0000)]
lit: Expose FileBasedTest object and Test module via 'lit' object that gets
exposed to config files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113923
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 15 Sep 2010 03:52:31 +0000 (03:52 +0000)]
lit: Rename main lit module to main.py, lit/lit/lit.py was a bit too, err,
alliterate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113922
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 03:50:11 +0000 (03:50 +0000)]
Diagnose invalid instructions like "incl" with "too few operands for instruction"
instead of crashing. This fixes:
rdar://
8431815 - crash when invalid operand is one that isn't present
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113921
91177308-0d34-0410-b5e6-
96231b3b80d8