NAKAMURA Takumi
d5a9a3afaf
configure: [cygming] Set --disable-embed-stdcxx by default on --enable-shared.
...
Many distros provide stdc++.dll recently. --enable-embed-stdcxx might confuse people.
llvm-svn: 141875
2011-10-13 18:04:52 +00:00
Owen Anderson
44f76eafae
SETEND is not allowed in an IT block.
...
llvm-svn: 141874
2011-10-13 17:58:39 +00:00
Andrew Trick
41c253c35c
Revert r141870. The test case crashes on linux with data corruption. A deeper issue was exposed.
...
llvm-svn: 141873
2011-10-13 17:58:24 +00:00
NAKAMURA Takumi
9423f99d68
docs/CMake.html: Clarify LLVM_LIT_TOOLS_DIR as :PATH.
...
llvm-svn: 141872
2011-10-13 17:36:02 +00:00
Michael J. Spencer
6b1ff2c3b4
Fix incorrect ELF typedefs.
...
llvm-svn: 141871
2011-10-13 17:33:52 +00:00
Andrew Trick
e15d6e14e3
LSR: Reuse the post-inc expansion of expressions.
...
This avoids unnecessary expansion of expressions and allows the SCEV
expander to work on expression DAGs, not just trees.
Fixes PR11090.
llvm-svn: 141870
2011-10-13 17:31:47 +00:00
Daniel Dunbar
4072bfe713
build: Remove some stray LLVMC configure variables.
...
llvm-svn: 141869
2011-10-13 17:27:34 +00:00
Andrew Trick
1393ec29af
SCEV: Rewrite TrandformForPostIncUse to handle expression DAGs, not
...
just expression trees.
Partially fixes PR11090. Test case will be with the full fix.
llvm-svn: 141868
2011-10-13 17:21:09 +00:00
Andrew Trick
adfe72b33c
Slightly more useful tracing.
...
llvm-svn: 141867
2011-10-13 17:06:38 +00:00
Sean Callanan
b96ff33b0e
Removed namespace qualification from symbol queries.
...
llvm-svn: 141866
2011-10-13 16:49:47 +00:00
Peter Collingbourne
adcf7c9203
TCE target: conversion of OpenCL reqd_work_group_size attr to metadata
...
Patch by Pekka Jääskeläinen!
llvm-svn: 141865
2011-10-13 16:24:41 +00:00
Benjamin Kramer
f07d898ae1
Force CPU type on test so it doesn't accidentally emit movbe instead of bswap on Intel Atom CPUs.
...
llvm-svn: 141863
2011-10-13 14:27:54 +00:00
Kalle Raiskila
3815de8d50
Mark 'branch indirect' instruction as an indirect branch.
...
Not having it confused assembly printing of jumptables.
llvm-svn: 141862
2011-10-13 11:40:03 +00:00
Erik Verbruggen
ca98f2a63f
Allow for annotate attributes after access specifiers. When such
...
attributes are found, propagate them to subsequent declarations.
llvm-svn: 141861
2011-10-13 09:41:32 +00:00
Bill Wendling
25f6d3e321
More closely follow libgcc, which has code after the `ret' instruction to
...
release the stack segment and reset the stack pointer. Place the code in its own
MBB to make the verifier happy.
llvm-svn: 141859
2011-10-13 08:24:19 +00:00
Bill Wendling
063f55ffdd
Revert r141854 because it was causing failures:
...
http://lab.llvm.org:8011/builders/llvm-x86_64-linux/builds/101
--- Reverse-merging r141854 into '.':
U test/MC/Disassembler/X86/x86-32.txt
U test/MC/Disassembler/X86/simple-tests.txt
D test/CodeGen/X86/bmi.ll
U lib/Target/X86/X86InstrInfo.td
U lib/Target/X86/X86ISelLowering.cpp
U lib/Target/X86/X86.td
U lib/Target/X86/X86Subtarget.h
llvm-svn: 141857
2011-10-13 07:48:07 +00:00
Bill Wendling
22a690e3db
Should not add instructions to a BB after a return instruction. The machine instruction verifier doesn't like this, nor do I.
...
llvm-svn: 141856
2011-10-13 07:42:32 +00:00
Cameron Zwarich
86f7d3556c
Use an existing method.
...
llvm-svn: 141855
2011-10-13 07:36:41 +00:00
Craig Topper
8cc9388073
Add X86 TZCNT instruction and patterns to select it. Also added core-avx2 processor which is gcc's name for Haswell.
...
llvm-svn: 141854
2011-10-13 07:09:14 +00:00
Craig Topper
2fdcb1f045
Add 'implicit EFLAGS' to patterns for popcnt and lzcnt
...
llvm-svn: 141853
2011-10-13 06:18:52 +00:00
David Blaikie
eba32c2229
Fix crash-on-invalid, improve error recovery, and test coverage for missing colon after access specifiers in C++
...
llvm-svn: 141852
2011-10-13 06:08:43 +00:00
Nick Lewycky
d3043965b9
Elf_Word is not POD! Stop using it in a DenseMap.
...
llvm-svn: 141851
2011-10-13 03:30:21 +00:00
Nick Lewycky
594a545821
If MI is deleted then remove it from the set. If a new MI is created, it could
...
have the same address as the one we deleted, and we don't want that in the set
yet. Noticed by inspection.
llvm-svn: 141849
2011-10-13 02:16:18 +00:00
Sean Callanan
213fdb8bf6
Completed the glue that passes a ClangNamespaceDecl *
...
down through Module and SymbolVendor into SymbolFile.
Added checks to SymbolFileDWARF that restrict symbol
searches when a namespace is passed in.
llvm-svn: 141847
2011-10-13 01:49:10 +00:00
Johnny Chen
7596f9373a
Add 'cd -' feature to change to the previous working directory.
...
llvm-svn: 141846
2011-10-13 01:20:34 +00:00
Greg Clayton
4f76b23764
Always use the full variable name when dumping globals since they might
...
be in namespaces.
llvm-svn: 141845
2011-10-13 01:14:39 +00:00
Nick Lewycky
404feb9973
Tabs to spaces.
...
llvm-svn: 141844
2011-10-13 01:09:50 +00:00
Greg Clayton
aa044960b5
Add a version of ResolveFunction that takes a "const DWARFDebugInfoEntry *"
...
and a "DWARFCompileUnit *" to avoid doing a DIE lookup twice and to prepare
for using namespaces in the lookups.
llvm-svn: 141843
2011-10-13 00:59:38 +00:00
Nick Lewycky
8488225984
Add missing braces to pacify GCC's -Wparentheses.
...
llvm-svn: 141842
2011-10-13 00:54:59 +00:00
Michael J. Spencer
f9799f8181
Add missing ELF constants.
...
llvm-svn: 141840
2011-10-13 00:16:25 +00:00
Sean Callanan
8e5b8b9631
Now that we know the values are going to stick around,
...
we don't need to look them up again when materializing.
Switched over the materialization mechanism (for JIT
expressions) and the lookup mechanism (for interpreted
expressions) to use the VariableSP/Symbol that were
found during parsing.
llvm-svn: 141839
2011-10-13 00:09:20 +00:00
Greg Clayton
bfe3dd4d8b
Added a function to test if a ClangNamespaceDecl matches the current symbol
...
file. This will help us to minimize lookups that can't possibly match anything
in the current symbol file.
llvm-svn: 141838
2011-10-13 00:00:53 +00:00
Rafael Espindola
697280fd89
Fix MSVC build.
...
llvm-svn: 141837
2011-10-12 23:56:54 +00:00
Jakob Stoklund Olesen
068dc91de9
Also inflate register classes around inline asm.
...
Now that MI->getRegClassConstraint() can also handle inline assembly,
don't bail when recomputing the register class of a virtual register
used by inline asm.
This fixes PR11078.
llvm-svn: 141836
2011-10-12 23:37:40 +00:00
Jakob Stoklund Olesen
35b362fab2
Add MachineInstr::getRegClassConstraint().
...
Most instructions have some requirements for their register operands.
Usually, this is expressed as register class constraints in the
MCInstrDesc, but for inline assembly the constraints are encoded in the
flag words.
llvm-svn: 141835
2011-10-12 23:37:36 +00:00
Jakob Stoklund Olesen
1e73716eae
Extract a method for finding the inline asm flag operand.
...
llvm-svn: 141834
2011-10-12 23:37:33 +00:00
Jakob Stoklund Olesen
24abd9d9b6
Encode register class constreaints in inline asm instructions.
...
The inline asm operand constraint is initially encoded in the virtual
register for the operand, but that register class may change during
coalescing, and the original constraint is lost.
Encode the original register class as part of the flag word for each
inline asm operand. This makes it possible to recover the actual
constraint required by inline asm, just like we can for normal
instructions.
llvm-svn: 141833
2011-10-12 23:37:29 +00:00
Greg Clayton
2506a7a959
Added the ability to see if a DIE is contained in a namespace.
...
llvm-svn: 141832
2011-10-12 23:34:26 +00:00
Eli Friedman
212e447967
Attempt to fix MSVC build.
...
llvm-svn: 141831
2011-10-12 23:14:41 +00:00
Bill Wendling
3e5409df77
We need to verify that the machine instruction we're using as a replacement for
...
our current machine instruction defines a register with the same register class
as what's being replaced. This showed up in the SPEC 403.gcc benchmark, where it
would ICE because a tail call was expecting one register class but was given
another. (The machine instruction verifier catches this situation.)
<rdar://problem/10270968>
llvm-svn: 141830
2011-10-12 23:03:40 +00:00
Eli Friedman
979009ea61
Use a utility from MathExtras to clarify a check and avoid undefined behavior. Based on patch by Ahmed Charles.
...
llvm-svn: 141829
2011-10-12 22:46:45 +00:00
Owen Anderson
000721f058
The VMAs stored in the symbol table of a MachO file are absolute addresses, not offsets from the section.
...
llvm-svn: 141828
2011-10-12 22:37:10 +00:00
Eli Friedman
66443ce9bc
Use unsigned multiply to hash integers, so we don't end up with undefined behavior for large signed integers. Based on patch by Ahmed Charles.
...
llvm-svn: 141827
2011-10-12 22:25:45 +00:00
Johnny Chen
c6d3b6e7a6
Minor fix.
...
llvm-svn: 141826
2011-10-12 22:25:13 +00:00
Lang Hames
850f7b3cdc
Removed colons from some target datalayout strings in test, since they don't match the required format.
...
llvm-svn: 141825
2011-10-12 22:24:17 +00:00
Owen Anderson
34e1707fbb
Don't label a STAB debugging symbol as a function symbol.
...
llvm-svn: 141824
2011-10-12 22:23:12 +00:00
Johnny Chen
4ffde88b42
Add pointer to the examples/customization directory for examples of lldb customizations.
...
llvm-svn: 141823
2011-10-12 22:22:09 +00:00
Owen Anderson
fb02ecde5e
sectionContainsSymbol needs to be based on VMA's rather than section indices to properly account for files with segment load commands that contain no sections.
...
llvm-svn: 141822
2011-10-12 22:21:32 +00:00
Sean Callanan
e3aef1d063
Extended the lifetime of Clang parser objects to the
...
lifetime of ClangExpressionDeclMap. This allows
ClangExpressionVariables found during parsing to be
queried for their containing namespaces during
expression execution.
Other clients (like ClangFunction) explicitly delete
this state, so they should not result in any memory
leaks.
llvm-svn: 141821
2011-10-12 22:20:02 +00:00
Eli Friedman
154a967c23
Fix a couple hash functions so that they do not depend on undefined shifts. Based on patch by Ahmed Charles.
...
llvm-svn: 141820
2011-10-12 22:00:26 +00:00