platform/upstream/llvm.git
11 years agoBBVectorize: Cap the number of candidate pairs in each instruction group
Hal Finkel [Fri, 15 Feb 2013 04:28:42 +0000 (04:28 +0000)]
BBVectorize: Cap the number of candidate pairs in each instruction group

For some basic blocks, it is possible to generate many candidate pairs for
relatively few pairable instructions. When many (tens of thousands) of these pairs
are generated for a single instruction group, the time taken to generate and
rank the different vectorization plans can become quite large. As a result, we now
cap the number of candidate pairs within each instruction group. This is done by
closing out the group once the threshold is reached (set now at 3000 pairs).

Although this will limit the overall compile-time impact, this may not be the best
way to achieve this result. It might be better, for example, to prune excessive
candidate pairs after the fact the prevent the generation of short, but highly-connected
groups. We can experiment with this in the future.

This change reduces the overall compile-time slowdown of the csa.ll test case in
PR15222 to ~5x. If 5x is still considered too large, a lower limit can be
used as the default.

This represents a functionality change, but only for very large inputs
(thus, there is no regression test).

llvm-svn: 175251

11 years agoRevert "Simplify the attributes '<' comparison function."
Anna Zaks [Fri, 15 Feb 2013 04:15:55 +0000 (04:15 +0000)]
Revert "Simplify the attributes '<' comparison function."

This reverts commit 82c101153fe7b35bce48781fab038e1b8f31a7bd.

llvm-svn: 175250

11 years agoRevert "Fix testcase for attribute ordering."
Anna Zaks [Fri, 15 Feb 2013 04:15:53 +0000 (04:15 +0000)]
Revert "Fix testcase for attribute ordering."

This reverts commit 58f20a3cbfca7384fe5e25e095f18572736a4792.

llvm-svn: 175249

11 years agoRevert "Fix testcase for attribute ordering."
Anna Zaks [Fri, 15 Feb 2013 04:15:50 +0000 (04:15 +0000)]
Revert "Fix testcase for attribute ordering."

This reverts commit 997c6516ca161073a1d516ebca7c0ca7722f64e2.

llvm-svn: 175248

11 years agoOnly enable RTTI for cxa_demangle.cpp
Filipe Cabecinhas [Fri, 15 Feb 2013 02:36:40 +0000 (02:36 +0000)]
Only enable RTTI for cxa_demangle.cpp

If testing on Linux+clang proves it needs RTTI, wa can remove the
conditionals.

llvm-svn: 175242

11 years agoA little cleanup. {Disable/Enable}Breakpoint actually disables/enables BreakpointSit...
Jim Ingham [Fri, 15 Feb 2013 02:06:30 +0000 (02:06 +0000)]
A little cleanup.  {Disable/Enable}Breakpoint actually disables/enables BreakpointSites not breakpoints, it is confusing
to have it not named appropriately.  Also in StopInfoMachException, we aren't testing for software or not software, just
whether the thing is a breakpoint we set.  So don't use "software"...

llvm-svn: 175241

11 years ago[analyzer] Don't assert when mixing reinterpret_cast and derived-to-base casts.
Jordan Rose [Fri, 15 Feb 2013 01:23:24 +0000 (01:23 +0000)]
[analyzer] Don't assert when mixing reinterpret_cast and derived-to-base casts.

This just adds a very simple check that if a DerivedToBase CastExpr is
operating on a value with known C++ object type, and that type is not the
base type specified in the AST, then the cast is invalid and we should
return UnknownVal.

In the future, perhaps we can have a checker that specifies that this is
illegal, but we still shouldn't assert even if the user turns that checker
off.

PR14872

llvm-svn: 175239

11 years agoFix testcase for attribute ordering.
Bill Wendling [Fri, 15 Feb 2013 01:04:46 +0000 (01:04 +0000)]
Fix testcase for attribute ordering.

llvm-svn: 175238

11 years agoFix minor mips16 issues in directives for function prologue. Probably this does
Reed Kotler [Fri, 15 Feb 2013 01:04:38 +0000 (01:04 +0000)]
Fix minor mips16 issues in directives for function prologue. Probably this does
not matter but makes it more gcc compatible which avoids possible subtle
problems. Also, turned back on a disabled check in helloworld.ll.

llvm-svn: 175237

11 years agoFix testcase for attribute ordering.
Bill Wendling [Fri, 15 Feb 2013 00:58:25 +0000 (00:58 +0000)]
Fix testcase for attribute ordering.

llvm-svn: 175236

11 years agoSimplify the attributes '<' comparison function.
Bill Wendling [Fri, 15 Feb 2013 00:55:08 +0000 (00:55 +0000)]
Simplify the attributes '<' comparison function.

llvm-svn: 175235

11 years agoRe-apply "[analyzer] Model trivial copy/move ctors with an aggregate bind."
Jordan Rose [Fri, 15 Feb 2013 00:32:15 +0000 (00:32 +0000)]
Re-apply "[analyzer] Model trivial copy/move ctors with an aggregate bind."

...after a host of optimizations related to the use of LazyCompoundVals
(our implementation of aggregate binds).

Originally applied in r173951.
Reverted in r174069 because it was causing hangs.
Re-applied in r174212.
Reverted in r174265 because it was /still/ causing hangs.

If this needs to be reverted again it will be punted to far in the future.

llvm-svn: 175234

11 years ago[analyzer] Cache the bindings accessible through a LazyCompoundVal.
Jordan Rose [Fri, 15 Feb 2013 00:32:12 +0000 (00:32 +0000)]
[analyzer] Cache the bindings accessible through a LazyCompoundVal.

This means we don't have to recompute them all later for every
removeDeadSymbols check.

llvm-svn: 175233

11 years ago[analyzer] Scan the correct store when finding symbols in a LazyCompoundVal.
Jordan Rose [Fri, 15 Feb 2013 00:32:10 +0000 (00:32 +0000)]
[analyzer] Scan the correct store when finding symbols in a LazyCompoundVal.

Previously, we were scanning the current store. Now, we properly scan the
store that the LazyCompoundVal came from, which may have very different
live symbols.

llvm-svn: 175232

11 years ago[analyzer] Tweak LazyCompoundVal reuse check to ignore qualifiers.
Jordan Rose [Fri, 15 Feb 2013 00:32:08 +0000 (00:32 +0000)]
[analyzer] Tweak LazyCompoundVal reuse check to ignore qualifiers.

This is optimization only; no behavioral change.

llvm-svn: 175231

11 years ago[analyzer] Use collectSubRegionKeys to make removeDeadBindings faster.
Jordan Rose [Fri, 15 Feb 2013 00:32:06 +0000 (00:32 +0000)]
[analyzer] Use collectSubRegionKeys to make removeDeadBindings faster.

Previously, whenever we had a LazyCompoundVal, we crawled through the
entire store snapshot looking for bindings within the LCV's region. Now, we
just ask for the subregion bindings of the lazy region and only visit those.

This is an optimization (so no test case), but it may allow us to clean up
more dead bindings than we were previously.

llvm-svn: 175230

11 years agoDaniel Malea caught an issue where calling dotest.py with an invalid directory would...
Enrico Granata [Fri, 15 Feb 2013 00:32:05 +0000 (00:32 +0000)]
Daniel Malea caught an issue where calling dotest.py with an invalid directory would cause the progressbar init code to raise an exception
This commit fixes it

llvm-svn: 175229

11 years ago[analyzer] Refactor RegionStore's sub-region bindings traversal.
Jordan Rose [Fri, 15 Feb 2013 00:32:03 +0000 (00:32 +0000)]
[analyzer] Refactor RegionStore's sub-region bindings traversal.

This is going to be used in the next commit.
While I'm here, tighten up assumptions about symbolic offset
BindingKeys, and make offset calculation explicitly handle all
MemRegion kinds.

No functionality change.

llvm-svn: 175228

11 years ago<rdar://problem/13204647>
Enrico Granata [Fri, 15 Feb 2013 00:06:04 +0000 (00:06 +0000)]
<rdar://problem/13204647>

The SEL data formatter was working hard to ensure that pointers-to-selectors could be formatted by the same block of code. In that effort, we were taking the address-of a SEL.
This operation fails when the SEL lives in a register, and was causing problems.
The formatter has been fixed to work correctly without assuming &selector will be a valid object.

llvm-svn: 175227

11 years ago[mips] Disallow moving load/store instructions past volatile instructions.
Akira Hatanaka [Thu, 14 Feb 2013 23:54:40 +0000 (23:54 +0000)]
[mips] Disallow moving load/store instructions past volatile instructions.

Unfortunately, I wasn't able to create a test case that demonstrates the
problem I was trying to fix with this patch.

llvm-svn: 175226

11 years ago[mips] Replace usage of SmallSet with BitVector, which is used to keep track of
Akira Hatanaka [Thu, 14 Feb 2013 23:40:57 +0000 (23:40 +0000)]
[mips] Replace usage of SmallSet with BitVector, which is used to keep track of
defined and used registers. Also add a few helper functions to simplify the
code.

llvm-svn: 175224

11 years agoFix TestSBData.py test case (tested fix Linux/Mac)
Daniel Malea [Thu, 14 Feb 2013 23:38:33 +0000 (23:38 +0000)]
Fix TestSBData.py test case (tested fix Linux/Mac)
- stop ignoring the error-codes in the 'error' variable
- removed out-of-bounds accesses with read-only array fields such as:

  self.assertTrue(data2.uint8[6] == 0, 'binary 0 terminator')

Since SBData wraps a (6-character) python string literal, trying to read the
null-terminator raises an exception. Instead, I replaced the out-of-bounds
read with a length-check.

Other out-of-bounds reads (via accessor function like SBData.GetUnsignedInt8)
don't throw and are OK. I just added asserts that errors are set for these
negative cases.

llvm-svn: 175223

11 years ago[mips] Fix comments and coding style violations. Declare functions to be const.
Akira Hatanaka [Thu, 14 Feb 2013 23:20:15 +0000 (23:20 +0000)]
[mips] Fix comments and coding style violations. Declare functions to be const.

llvm-svn: 175222

11 years agoThe ARM NEON vector compare instructions take three arguments. However, the
Joel Jones [Thu, 14 Feb 2013 23:18:40 +0000 (23:18 +0000)]
The ARM NEON vector compare instructions take three arguments. However, the
assembler should also accept a two arg form, as the docuemntation specifies that
the first (destination) register is optional.

This patch uses TwoOperandAliasConstraint to add the two argument form.

It also fixes an 80-column formatting problem in:
  test/MC/ARM/neon-bitwise-encoding

<rdar://problem/12909419> Clang rejects ARM NEON assembly instructions

llvm-svn: 175221

11 years agoThe operand listing is very much outdated.
Eli Bendersky [Thu, 14 Feb 2013 23:17:03 +0000 (23:17 +0000)]
The operand listing is very much outdated.

llvm-svn: 175220

11 years ago[mips] Simplify code in function Filler::findDelayInstr.
Akira Hatanaka [Thu, 14 Feb 2013 23:11:24 +0000 (23:11 +0000)]
[mips] Simplify code in function Filler::findDelayInstr.

1. Define and use function terminateSearch.
2. Use MachineBasicBlock::iterator instead of MachineBasicBlock::instr_iterator.
3. Delete the line which checks whether an instruction is a pseudo.

llvm-svn: 175219

11 years agoMark getRawBits const.
Preston Gurd [Thu, 14 Feb 2013 22:49:29 +0000 (22:49 +0000)]
Mark getRawBits const.

Patch by Tyler Nowicki.

llvm-svn: 175218

11 years agoMake this test determinstic for my last patch.
Fariborz Jahanian [Thu, 14 Feb 2013 22:38:41 +0000 (22:38 +0000)]
Make this test determinstic for my last patch.
// rdar://13192366

llvm-svn: 175217

11 years agoBBVectorize: Remove the remaining instances of std::multimap
Hal Finkel [Thu, 14 Feb 2013 22:38:04 +0000 (22:38 +0000)]
BBVectorize: Remove the remaining instances of std::multimap

All instances of std::multimap have now been replaced by
DenseMap<K, std::vector<V> >, and this yields a speedup of 5% on the
csa.ll test case from PR15222.

No functionality change intended.

llvm-svn: 175216

11 years agoBBVectorize: Don't store candidate pairs in a std::multimap
Hal Finkel [Thu, 14 Feb 2013 22:37:09 +0000 (22:37 +0000)]
BBVectorize: Don't store candidate pairs in a std::multimap

This is another commit on the road to removing std::multimap from
BBVectorize. This gives an ~1% speedup on the csa.ll test case
in PR15222.

No functionality change intended.

llvm-svn: 175215

11 years agoobjective-C: synthesize properties in order of their
Fariborz Jahanian [Thu, 14 Feb 2013 22:33:34 +0000 (22:33 +0000)]
objective-C: synthesize properties in order of their
declarations to synthesize their ivars in similar
determinstic order so they are laid out in
a determinstic order. // rdar://13192366

llvm-svn: 175214

11 years agoBring lldb up to date with clang revision 175141.
Filipe Cabecinhas [Thu, 14 Feb 2013 22:02:57 +0000 (22:02 +0000)]
Bring lldb up to date with clang revision 175141.

llvm-svn: 175213

11 years agoSimplify code. Remove "else after return".
Jakub Staszak [Thu, 14 Feb 2013 21:50:09 +0000 (21:50 +0000)]
Simplify code. Remove "else after return".

llvm-svn: 175212

11 years ago<rdar://problem/13218655>
Greg Clayton [Thu, 14 Feb 2013 21:09:56 +0000 (21:09 +0000)]
<rdar://problem/13218655>

"target modules add" should resolve bundle executables, as should anything else that tries to create a module from a bundle path.

llvm-svn: 175210

11 years agoUpdate comment.
Chad Rosier [Thu, 14 Feb 2013 20:44:07 +0000 (20:44 +0000)]
Update comment.

llvm-svn: 175209

11 years ago[Core,Driver,ELF] Differentiate static and dynamic executables.
Michael J. Spencer [Thu, 14 Feb 2013 20:32:00 +0000 (20:32 +0000)]
[Core,Driver,ELF] Differentiate static and dynamic executables.

This also adds a simple relocation change for dynamic executables to
x86-64 ELF.

llvm-svn: 175208

11 years ago[ELF][Writer] Refactor Section to not have atoms. Move atoms into AtomSection.
Michael J. Spencer [Thu, 14 Feb 2013 20:24:38 +0000 (20:24 +0000)]
[ELF][Writer] Refactor Section to not have atoms. Move atoms into AtomSection.

The purpose of this change is to simplify creating non-atom sections.
Previously _contentType, _sectionKind and _order were used for multiple
purposes and collided in places. This moves all of the Atom specific logic down
into AtomSection and makes Section just have raw Elf_Shdr flags.

llvm-svn: 175207

11 years agolibclang: remove reinterpret_casts by using SourceLocation::getFromPtrEncoding
Dmitri Gribenko [Thu, 14 Feb 2013 20:07:36 +0000 (20:07 +0000)]
libclang: remove reinterpret_casts by using SourceLocation::getFromPtrEncoding
directly instead of casting a pointer to an integer

llvm-svn: 175206

11 years agoHexagon: Change insn class to support instruction encoding.
Jyotsna Verma [Thu, 14 Feb 2013 19:57:17 +0000 (19:57 +0000)]
Hexagon: Change insn class to support instruction encoding.
This patch doesn't introduce any functionality changes.
It adds some new fields to the Hexagon instruction classes and
changes their layout to support instruction encoding.

llvm-svn: 175205

11 years agos/bool/LLVMBool/
Bill Wendling [Thu, 14 Feb 2013 19:40:27 +0000 (19:40 +0000)]
s/bool/LLVMBool/

llvm-svn: 175204

11 years agos/bool/LLVMBool/
Bill Wendling [Thu, 14 Feb 2013 19:39:14 +0000 (19:39 +0000)]
s/bool/LLVMBool/

llvm-svn: 175203

11 years agoOne to many always's.
Jim Ingham [Thu, 14 Feb 2013 19:30:35 +0000 (19:30 +0000)]
One to many always's.

llvm-svn: 175202

11 years agoMention the inline-breakpoint-strategy in the lldb-gdb.html file.
Jim Ingham [Thu, 14 Feb 2013 19:17:49 +0000 (19:17 +0000)]
Mention the inline-breakpoint-strategy in the lldb-gdb.html file.

llvm-svn: 175201

11 years agodeath to extra whitespace
Kay Tiong Khoo [Thu, 14 Feb 2013 19:15:14 +0000 (19:15 +0000)]
death to extra whitespace

llvm-svn: 175200

11 years agoAdd two new functions to the C API:
Bill Wendling [Thu, 14 Feb 2013 19:11:28 +0000 (19:11 +0000)]
Add two new functions to the C API:

 LLVMCreateMemoryBufferWithMemoryRange - exposes MemoryBuffer::getMemBuffer
 LLVMCreateMemoryBufferWithMemoryRangeCopy - exposes MemoryBuffer::getMemBufferCopy

Patch by Moritz Maxeiner!

llvm-svn: 175199

11 years ago<rdar://problem/13064893>
Greg Clayton [Thu, 14 Feb 2013 19:11:23 +0000 (19:11 +0000)]
<rdar://problem/13064893>

Poor network connections aren't handled well; commands fail instead of retrying.

llvm-svn: 175198

11 years agoMake it clear that if you #include .c/.cpp/.m/.mm etc files, you will have to
Jim Ingham [Thu, 14 Feb 2013 19:10:36 +0000 (19:10 +0000)]
Make it clear that if you #include .c/.cpp/.m/.mm etc files, you will have to
change the breakpoint-inline-strategy for the breakpoints to take.

<rdar://problem/13189024>

llvm-svn: 175197

11 years agoadded basic support for Intel ADX instructions
Kay Tiong Khoo [Thu, 14 Feb 2013 19:08:21 +0000 (19:08 +0000)]
added basic support for Intel ADX instructions
-feature flag, instructions definitions, test cases

llvm-svn: 175196

11 years agoobjective-C: When implementing custom accessor method for
Fariborz Jahanian [Thu, 14 Feb 2013 19:07:19 +0000 (19:07 +0000)]
objective-C: When implementing custom accessor method for
a property, the -Wdirect-ivar-access should not warn when
accessing the property's synthesized instance variable.
// rdar://13142820

llvm-svn: 175195

11 years ago[analyzer] Try constant-evaluation for all variables, not just globals.
Jordan Rose [Thu, 14 Feb 2013 19:06:11 +0000 (19:06 +0000)]
[analyzer] Try constant-evaluation for all variables, not just globals.

In C++, constants captured by lambdas (and blocks) are not actually stored
in the closure object, since they can be expanded at compile time. In this
case, they will have no binding when we go to look them up. Previously,
RegionStore thought they were uninitialized stack variables; now, it checks
to see if they are a constant we know how to evaluate, using the same logic
as r175026.

This particular code path is only for scalar variables. Constant arrays and
structs are still unfortunately unhandled; we'll need a stronger solution
for those.

This may have a small performance impact, but only for truly-undefined
local variables, captures in a non-inlined block, and non-constant globals.
Even then, in the non-constant case we're only doing a quick type check.

<rdar://problem/13105553>

llvm-svn: 175194

11 years agoR600/SI: Fix int_SI_fs_interp_constant
Michel Danzer [Thu, 14 Feb 2013 19:03:25 +0000 (19:03 +0000)]
R600/SI: Fix int_SI_fs_interp_constant

The important fix is that the constant interpolation value is stored in the
parameter slot P0, which is encoded as 2.

In addition, drop the SI_INTERP_CONST pseudo instruction, pass the parameter
slot as an operand to V_INTERP_MOV_F32 instead of hardcoding it there, and
add a special operand class for the parameter slots for type checking and
pretty printing.

NOTE: This is a candidate for the Mesa stable branch.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 175193

11 years agoinclude/llvm/Object/ELF.h: do debug checks only when NDEBUG
Dmitry Vyukov [Thu, 14 Feb 2013 18:41:42 +0000 (18:41 +0000)]
include/llvm/Object/ELF.h: do debug checks only when NDEBUG
validateSymbol() is called all over the place, and it seems it's a debug check.
It significantly speedups llvm-symbolizer used in tsan/asan/msan. validateSymbol() is the second hot function and accounts for 15% of runtime.

llvm-svn: 175192

11 years ago<rdar://problem/12693921>
Greg Clayton [Thu, 14 Feb 2013 18:39:30 +0000 (18:39 +0000)]
<rdar://problem/12693921>

Rename the monitor command from "qCmd" (incorrect) to "qRcmd".

llvm-svn: 175191

11 years agoDont merge consecutive loads/stores into vectors when noimplicitfloat is used.
Nadav Rotem [Thu, 14 Feb 2013 18:28:52 +0000 (18:28 +0000)]
Dont merge consecutive loads/stores into vectors when noimplicitfloat is used.

llvm-svn: 175190

11 years ago80-col
Nadav Rotem [Thu, 14 Feb 2013 18:20:48 +0000 (18:20 +0000)]
80-col

llvm-svn: 175189

11 years agoHexagon: Use multiclass for absolute addressing mode loads.
Jyotsna Verma [Thu, 14 Feb 2013 18:15:29 +0000 (18:15 +0000)]
Hexagon: Use multiclass for absolute addressing mode loads.

This patch doesn't introduce any functionality changes.

llvm-svn: 175187

11 years agoRe-apply r175088 for bug fix 13622: Add paired register support for
Weiming Zhao [Thu, 14 Feb 2013 18:10:21 +0000 (18:10 +0000)]
Re-apply r175088 for bug fix 13622: Add paired register support for
inline asm with 64-bit data on ARM

Update test case to use -mtriple=arm-linux-gnueabi

llvm-svn: 175186

11 years agoFix for bug 15246 -- out-of-bound error in the TableGen backend, CodeGenMapTable...
Jyotsna Verma [Thu, 14 Feb 2013 17:58:13 +0000 (17:58 +0000)]
Fix for bug 15246 -- out-of-bound error in the TableGen backend, CodeGenMapTable.cpp.

llvm-svn: 175185

11 years ago[arcmt] Make sure the function has an associated parameter for the argument
Argyrios Kyrtzidis [Thu, 14 Feb 2013 17:29:16 +0000 (17:29 +0000)]
[arcmt] Make sure the function has an associated parameter for the argument
before checking for its attributes.

rdar://13192395

llvm-svn: 175184

11 years agoR600: Do not fold single instruction with more that 3 kcache read
Vincent Lejeune [Thu, 14 Feb 2013 16:57:19 +0000 (16:57 +0000)]
R600: Do not fold single instruction with more that 3 kcache read

It fixes around 100 tfb piglit tests and 16 glean tests.

NOTE: This is a candidate for the Mesa stable branch.

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
llvm-svn: 175183

11 years agoR600: Export instructions are no longer terminator
Vincent Lejeune [Thu, 14 Feb 2013 16:55:11 +0000 (16:55 +0000)]
R600: Export instructions are no longer terminator

This allows MachineInstScheduler to reorder them, and thus make scheduling more
efficient.

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
llvm-svn: 175182

11 years agoR600: Fold zero/one in export instructions
Vincent Lejeune [Thu, 14 Feb 2013 16:55:06 +0000 (16:55 +0000)]
R600: Fold zero/one in export instructions

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
llvm-svn: 175181

11 years agoR600: Do not fold modifier/litterals in vector inst
Vincent Lejeune [Thu, 14 Feb 2013 16:55:01 +0000 (16:55 +0000)]
R600: Do not fold modifier/litterals in vector inst

This fixes a couple of regressions on (probably not just) cayman

NOTE: This is a candidate for the Mesa stable branch.

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
llvm-svn: 175180

11 years agoUse correct host/target CMake variables to define lit variables.
Tim Northover [Thu, 14 Feb 2013 16:49:32 +0000 (16:49 +0000)]
Use correct host/target CMake variables to define lit variables.

CMake and autotools disagree on what "host" means in a cross-compilation
context. Autotools (and lit) take it to be the machine the binaries being
compiled now will run on. CMake takes it to be the machine actually compiling
the binaries now.

This change makes lit.site-cfg more consistent between autotools and CMake,
allowing lit tests (particularly in ExecutionEngine) to run correctly when
cross-compiled with CMake

llvm-svn: 175179

11 years agoDo not run formatting checks by default
Tobias Grosser [Thu, 14 Feb 2013 16:42:50 +0000 (16:42 +0000)]
Do not run formatting checks by default

llvm-svn: 175178

11 years agoFormatting fixes
Tobias Grosser [Thu, 14 Feb 2013 16:42:45 +0000 (16:42 +0000)]
Formatting fixes

llvm-svn: 175177

11 years agoAArch64: switch from neverHasSideEffects to hasSideEffects.
Tim Northover [Thu, 14 Feb 2013 16:31:12 +0000 (16:31 +0000)]
AArch64: switch from neverHasSideEffects to hasSideEffects.

llvm-svn: 175176

11 years agoAdd deprecation of neverHasSideEffects to documentation comments.
Tim Northover [Thu, 14 Feb 2013 16:31:06 +0000 (16:31 +0000)]
Add deprecation of neverHasSideEffects to documentation comments.

llvm-svn: 175175

11 years agoclang-format: Really check all files
Tobias Grosser [Thu, 14 Feb 2013 16:25:44 +0000 (16:25 +0000)]
clang-format: Really check all files

llvm-svn: 175174

11 years agoRevert r15266. This fixes llvm.org/pr15266.
Rafael Espindola [Thu, 14 Feb 2013 16:23:08 +0000 (16:23 +0000)]
Revert r15266. This fixes llvm.org/pr15266.

llvm-svn: 175173

11 years agoAArch64: stop claiming that NEON registers are usable for now.
Tim Northover [Thu, 14 Feb 2013 16:22:14 +0000 (16:22 +0000)]
AArch64: stop claiming that NEON registers are usable for now.

If vector types have legal register classes, then LLVM bypasses LegalizeTypes
on them, which causes faults currently since the code to handle them isn't in
place.

This fixes test failures when AArch64 is the default target.

llvm-svn: 175172

11 years agoReport formatting problems as with 'diff -u'
Tobias Grosser [Thu, 14 Feb 2013 16:20:55 +0000 (16:20 +0000)]
Report formatting problems as with 'diff -u'

llvm-svn: 175171

11 years agocmake: add command polly-check-format
Tobias Grosser [Thu, 14 Feb 2013 16:19:16 +0000 (16:19 +0000)]
cmake: add command polly-check-format

This command runs clang-format on all files and reports formatting problems

llvm-svn: 175170

11 years agoAArch64: add block comments where missing
Tim Northover [Thu, 14 Feb 2013 16:17:01 +0000 (16:17 +0000)]
AArch64: add block comments where missing

Only comments affected. No code change at all.

llvm-svn: 175169

11 years agoAdd testcase for llvm-dwarfdump to test parsing of the pubnames data.
Krzysztof Parzyszek [Thu, 14 Feb 2013 16:10:58 +0000 (16:10 +0000)]
Add testcase for llvm-dwarfdump to test parsing of the pubnames data.

llvm-svn: 175168

11 years agoOn FreeBSD, we need to look in /usr/local/include so that libxml2 finds iconv.h
David Chisnall [Thu, 14 Feb 2013 15:40:44 +0000 (15:40 +0000)]
On FreeBSD, we need to look in /usr/local/include so that libxml2 finds iconv.h

Patch by Jonathan Anderson!

llvm-svn: 175167

11 years agoMangle extern "C" functions whose names are not simple identifiers.
Rafael Espindola [Thu, 14 Feb 2013 15:38:59 +0000 (15:38 +0000)]
Mangle extern "C" functions whose names are not simple identifiers.

llvm-svn: 175166

11 years agoFix counting of parameters so that r175162 works as expected.
Daniel Jasper [Thu, 14 Feb 2013 15:01:34 +0000 (15:01 +0000)]
Fix counting of parameters so that r175162 works as expected.

Before:
aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa()
                              .aaaaaaaaaaaaaaaaa());

After:
aaaaaaaaaaaaaaaaaaaaaaaaa(
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa().aaaaaaaaaaaaaaaaa());

Not sure which of the formattings above is better, but we should not pick
one by accident.

llvm-svn: 175165

11 years agoMake ARMAsmParser accept the correct alignment specifier syntax in instructions.
Kristof Beyls [Thu, 14 Feb 2013 14:46:12 +0000 (14:46 +0000)]
Make ARMAsmParser accept the correct alignment specifier syntax in instructions.

The parser will now accept instructions with alignment specifiers written like
    vld1.8  {d16}, [r0:64]
, while also still accepting the incorrect syntax
    vld1.8  {d16}, [r0, :64]

llvm-svn: 175164

11 years ago[sanitizer] Get full argv and envp on glibc.
Evgeniy Stepanov [Thu, 14 Feb 2013 14:40:03 +0000 (14:40 +0000)]
[sanitizer] Get full argv and envp on glibc.

/proc/$PID/cmdline is clipped to 4Kb.
Locate argv and envp on the main thread stack.

llvm-svn: 175163

11 years agoReduce penalty for breaking before ./-> after complex calls.
Daniel Jasper [Thu, 14 Feb 2013 14:26:07 +0000 (14:26 +0000)]
Reduce penalty for breaking before ./-> after complex calls.

This gives a clearer separation of the context, e.g. in GMOCK
statements.

Before:
EXPECT_CALL(SomeObject,
            SomeFunction(Parameter)).WillRepeatedly(Return(SomeValue));

After:
EXPECT_CALL(SomeObject, SomeFunction(Parameter))
    .WillRepeatedly(Return(SomeValue));

Minor format cleanups.

llvm-svn: 175162

11 years agoRemove a const_cast by propagating constness to called functions
Dmitri Gribenko [Thu, 14 Feb 2013 13:53:30 +0000 (13:53 +0000)]
Remove a const_cast by propagating constness to called functions

llvm-svn: 175161

11 years agoRemove an unneeded const_cast
Dmitri Gribenko [Thu, 14 Feb 2013 13:49:48 +0000 (13:49 +0000)]
Remove an unneeded const_cast

llvm-svn: 175160

11 years agoRemove const_casts by making spec_begin()/spec_end() const
Dmitri Gribenko [Thu, 14 Feb 2013 13:20:36 +0000 (13:20 +0000)]
Remove const_casts by making spec_begin()/spec_end() const

llvm-svn: 175159

11 years agollvm-symbolizer: speedup symbol lookup
Dmitry Vyukov [Thu, 14 Feb 2013 13:06:18 +0000 (13:06 +0000)]
llvm-symbolizer: speedup symbol lookup

llvm-svn: 175158

11 years ago[ASan] Fixed the wrong placement of #include
Alexander Potapenko [Thu, 14 Feb 2013 12:37:17 +0000 (12:37 +0000)]
[ASan] Fixed the wrong placement of #include

llvm-svn: 175157

11 years agoWorkaround an MSan false positive.
Evgeniy Stepanov [Thu, 14 Feb 2013 12:18:32 +0000 (12:18 +0000)]
Workaround an MSan false positive.

llvm-svn: 175156

11 years ago[ASan] Remove the 'alarm' script which isn't present on OS X by default.
Alexander Potapenko [Thu, 14 Feb 2013 12:18:07 +0000 (12:18 +0000)]
[ASan] Remove the 'alarm' script which isn't present on OS X by default.
The test may hang now if a regression occurs.

llvm-svn: 175155

11 years agotsan: fix bug in suppression reading (suppressions from file were discarded)
Dmitry Vyukov [Thu, 14 Feb 2013 11:03:45 +0000 (11:03 +0000)]
tsan: fix bug in suppression reading (suppressions from file were discarded)

llvm-svn: 175153

11 years agoRemove the trailing whitespace of formatted lines.
Daniel Jasper [Thu, 14 Feb 2013 09:58:41 +0000 (09:58 +0000)]
Remove the trailing whitespace of formatted lines.

So far, clang-format has always assumed the whitespace belonging to the
subsequent token. This has the negative side-effect that when
clang-format formats a line, it does not remove its trailing whitespace,
as it belongs to the next token.

Thus, this patch fixes most of llvm.org/PR15062.

We are not zapping a file's trailing whitespace so far, as this does not
belong to any token we see during formatting. We need to fix this in a
subsequent patch.

llvm-svn: 175152

11 years agoGet less confused by trailing comma in Google style.
Daniel Jasper [Thu, 14 Feb 2013 09:19:04 +0000 (09:19 +0000)]
Get less confused by trailing comma in Google style.

The formatter can now format:
void aaaaaaaaaaaaaaaaaa(int level,
                        double *min_x,
                        double *max_x,
                        double *min_y,
                        double *max_y,
                        double *min_z,
                        double *max_z, ) {
}

Although this is invalid code, it frequently happens during development and
clang-format should be nicer :-).

llvm-svn: 175151

11 years agoMoved line-info.ll to DebugInfo\X86 directory
Elena Demikhovsky [Thu, 14 Feb 2013 09:07:34 +0000 (09:07 +0000)]
Moved line-info.ll to DebugInfo\X86 directory

llvm-svn: 175150

11 years agoAdd some legality checks for SETCC before introducing it in the DAG combiner post...
Owen Anderson [Thu, 14 Feb 2013 09:07:33 +0000 (09:07 +0000)]
Add some legality checks for SETCC before introducing it in the DAG combiner post-operand legalization.

llvm-svn: 175149

11 years agoRemove accidentally committed empty test.
Daniel Jasper [Thu, 14 Feb 2013 08:45:14 +0000 (08:45 +0000)]
Remove accidentally committed empty test.

llvm-svn: 175148

11 years agoAlign superclasses for multiple inheritence.
Daniel Jasper [Thu, 14 Feb 2013 08:42:54 +0000 (08:42 +0000)]
Align superclasses for multiple inheritence.

This fixes llvm.org/PR15179.

Before:
class ColorChooserMac : public content::ColorChooser,
    public content::WebContentsObserver {
};

After:
class ColorChooserMac : public content::ColorChooser,
                        public content::WebContentsObserver {
};

llvm-svn: 175147

11 years agoThe test failed on Windows. I've changed the platform to run to "x86_64-apple-darwin".
Elena Demikhovsky [Thu, 14 Feb 2013 08:23:08 +0000 (08:23 +0000)]
The test failed on Windows. I've changed the platform to run to "x86_64-apple-darwin".

llvm-svn: 175146

11 years ago[sanitizer] Raise argv limit for ReExec.
Evgeniy Stepanov [Thu, 14 Feb 2013 08:22:06 +0000 (08:22 +0000)]
[sanitizer] Raise argv limit for ReExec.

We are still limited by /proc/*/cmdline size (4Kb max on Linux!).

llvm-svn: 175145

11 years agoFixed a bug in X86TargetLowering::LowerVectorIntExtend() (assertion failure).
Elena Demikhovsky [Thu, 14 Feb 2013 08:20:26 +0000 (08:20 +0000)]
Fixed a bug in X86TargetLowering::LowerVectorIntExtend() (assertion failure).
Added a test.

llvm-svn: 175144

11 years agoRevert accidental commit.
Bill Wendling [Thu, 14 Feb 2013 08:18:53 +0000 (08:18 +0000)]
Revert accidental commit.

llvm-svn: 175143

11 years ago[asan] use short path for sanitizer_common/tests/sanitizer_test_utils.h, add -I sanit...
Kostya Serebryany [Thu, 14 Feb 2013 08:12:26 +0000 (08:12 +0000)]
[asan] use short path for sanitizer_common/tests/sanitizer_test_utils.h, add -I sanitizer_common/tests to asan/tests/CMakeLists.txt

llvm-svn: 175142