platform/upstream/llvm.git
11 years agoAdd instructions to www/source.html for using the Git mirror for those so inclined.
Stefanus Du Toit [Tue, 23 Jul 2013 17:18:43 +0000 (17:18 +0000)]
Add instructions to www/source.html for using the Git mirror for those so inclined.

Reviewed by: Daniel Malea

llvm-svn: 186958

11 years ago[PECOFF] Support -tsaware:no command line option.
Rui Ueyama [Tue, 23 Jul 2013 17:17:19 +0000 (17:17 +0000)]
[PECOFF] Support -tsaware:no command line option.

llvm-svn: 186957

11 years agoImplement string suffixes from N3642
Marshall Clow [Tue, 23 Jul 2013 17:05:24 +0000 (17:05 +0000)]
Implement string suffixes from N3642

llvm-svn: 186956

11 years agoRemove unused diagnostics.
Benjamin Kramer [Tue, 23 Jul 2013 16:18:53 +0000 (16:18 +0000)]
Remove unused diagnostics.

llvm-svn: 186955

11 years agoBill Fisher: This patch fixes a bug where std::regex in ECMAScript mode was ignoring...
Howard Hinnant [Tue, 23 Jul 2013 16:18:04 +0000 (16:18 +0000)]
Bill Fisher: This patch fixes a bug where std::regex in ECMAScript mode was ignoring capture groups inside lookahead assertions.

For example, matching /(?=(a))(a)/ to "a" should yield two captures: \1 = "a", \2 = "a"

llvm-svn: 186954

11 years agoRemove line number from test/Analysis/crash-trace.c.
Jordan Rose [Tue, 23 Jul 2013 16:12:18 +0000 (16:12 +0000)]
Remove line number from test/Analysis/crash-trace.c.

...and hopefully, finally, unbreak buildbots.

llvm-svn: 186953

11 years agoAdd some friendly messages to libcxx calls to abort().
Howard Hinnant [Tue, 23 Jul 2013 16:05:56 +0000 (16:05 +0000)]
Add some friendly messages to libcxx calls to abort().

llvm-svn: 186951

11 years agoMark test/Analysis/crash-trace.c as requiring crash recovery.
Jordan Rose [Tue, 23 Jul 2013 16:02:54 +0000 (16:02 +0000)]
Mark test/Analysis/crash-trace.c as requiring crash recovery.

This plus Rafael's fix at r186943 should keep all the buildbots happy.

llvm-svn: 186950

11 years agoConvert another test to -###.
Rafael Espindola [Tue, 23 Jul 2013 15:57:21 +0000 (15:57 +0000)]
Convert another test to -###.

llvm-svn: 186949

11 years agoFix doxygen warnings
Ariel J. Bernal [Tue, 23 Jul 2013 15:52:07 +0000 (15:52 +0000)]
Fix doxygen warnings
It seems that doxygen fails to find overloaded methods when the parameters are
not in sync with the method declaration.
Added the fully-qualifed type to the parameters method definition although it's
not necessary since the using directive is in effect.

llvm-svn: 186948

11 years agoFixing the build bots from the previous commit.
Aaron Ballman [Tue, 23 Jul 2013 15:21:34 +0000 (15:21 +0000)]
Fixing the build bots from the previous commit.

llvm-svn: 186947

11 years agoAdd missing quotes for -###.
Rafael Espindola [Tue, 23 Jul 2013 15:20:22 +0000 (15:20 +0000)]
Add missing quotes for -###.

Sorry about forgetting to include this in the previous patch.

llvm-svn: 186946

11 years agoUse -### instead of -ccc-echo.
Rafael Espindola [Tue, 23 Jul 2013 15:17:51 +0000 (15:17 +0000)]
Use -### instead of -ccc-echo.

This is still a fairly odd test. Clang wants to run gcc for assembling. At
least with -### it only prints that instead of actually trying to run it with
-ccc-echo.

llvm-svn: 186945

11 years agoReplacing some manual diagnostic checks with an existing helper method. Adding missi...
Aaron Ballman [Tue, 23 Jul 2013 15:16:00 +0000 (15:16 +0000)]
Replacing some manual diagnostic checks with an existing helper method.  Adding missing test cases for the diagnostics.

llvm-svn: 186944

11 years agoRun %clang_cc1, it is the one that actually crashes.
Rafael Espindola [Tue, 23 Jul 2013 15:02:28 +0000 (15:02 +0000)]
Run %clang_cc1, it is the one that actually crashes.

llvm-svn: 186943

11 years agoRemoved a redundant diagnostic and replaced it with a more standard one. Added a...
Aaron Ballman [Tue, 23 Jul 2013 14:54:24 +0000 (14:54 +0000)]
Removed a redundant diagnostic and replaced it with a more standard one.  Added a test case for the diagnostic.

llvm-svn: 186942

11 years agoConsolidate several attribute argument diagnostics into a single, selectable diagnost...
Aaron Ballman [Tue, 23 Jul 2013 14:03:57 +0000 (14:03 +0000)]
Consolidate several attribute argument diagnostics into a single, selectable diagnostic.  This makes the diagnostic more consistent.

llvm-svn: 186940

11 years agoAdd not so that these tests pass with pipefail enabled.
Rafael Espindola [Tue, 23 Jul 2013 13:18:20 +0000 (13:18 +0000)]
Add not so that these tests pass with pipefail enabled.

llvm-svn: 186939

11 years agocp11-migrate: Integration with LibFormat
Edwin Vane [Tue, 23 Jul 2013 12:50:03 +0000 (12:50 +0000)]
cp11-migrate: Integration with LibFormat

Adding a feature to optionally reformat code changed by the migrator. Like
LibFormat, can choose between built-in styles (LLVM, Mozilla, Google, Chromium)
or use a YAML-format config file.

Now with no dependency on iostream by the Reformatting.cpp LIT test.

Author: Guillaume Papin <guillaume.papin@epitech.eu>
llvm-svn: 186938

11 years agoAdd -disable-debug-info-verifier.
Rafael Espindola [Tue, 23 Jul 2013 12:31:37 +0000 (12:31 +0000)]
Add -disable-debug-info-verifier.

Found while testing with pipefail enabled.

llvm-svn: 186937

11 years agoCorrecting the NSObject and Overloadable attribute diagnostics so that the count...
Aaron Ballman [Tue, 23 Jul 2013 12:13:14 +0000 (12:13 +0000)]
Correcting the NSObject and Overloadable attribute diagnostics so that the count reported matches reality.

llvm-svn: 186936

11 years agoFix the build in c++03 mode.
Rafael Espindola [Tue, 23 Jul 2013 11:02:16 +0000 (11:02 +0000)]
Fix the build in c++03 mode.

llvm-svn: 186935

11 years agoAdd an initial implementation of archive symbol table generation.
Rafael Espindola [Tue, 23 Jul 2013 10:47:01 +0000 (10:47 +0000)]
Add an initial implementation of archive symbol table generation.

The symbol table has forward references in the file. Instead of allocating
a temporary buffer or counting the size and then writing, this implementation
writes a dummy value first and patches it once the final value is known.

There is room for performance improvement. I will implement them as soon as I
get some other features (like a ranlib mode) in.

llvm-svn: 186934

11 years agoC++1y literal suffix support:
Richard Smith [Tue, 23 Jul 2013 08:14:48 +0000 (08:14 +0000)]
C++1y literal suffix support:
 * Allow ns, us, ms, s, min, h as numeric ud-suffixes
 * Allow s as string ud-suffix

llvm-svn: 186933

11 years agoRemove some errant space charcters in mnemonic strings.
Craig Topper [Tue, 23 Jul 2013 06:45:34 +0000 (06:45 +0000)]
Remove some errant space charcters in mnemonic strings.

llvm-svn: 186932

11 years agoremove unnecessary space
Shuxin Yang [Tue, 23 Jul 2013 06:44:34 +0000 (06:44 +0000)]
remove unnecessary space

llvm-svn: 186931

11 years agollvm/test/DebugInfo/X86/dbg-value-range.ll: Add -disable-debug-info-verifier, too...
NAKAMURA Takumi [Tue, 23 Jul 2013 06:41:51 +0000 (06:41 +0000)]
llvm/test/DebugInfo/X86/dbg-value-range.ll: Add -disable-debug-info-verifier, too, since r186902.

llvm-svn: 186930

11 years agoRemove 'else' after 'return'. No functional change.
Craig Topper [Tue, 23 Jul 2013 06:27:36 +0000 (06:27 +0000)]
Remove 'else' after 'return'. No functional change.

llvm-svn: 186929

11 years agoRemove trailing whitespace.
Craig Topper [Tue, 23 Jul 2013 06:25:00 +0000 (06:25 +0000)]
Remove trailing whitespace.

llvm-svn: 186928

11 years ago[analyzer] Enable pseudo-destructor expressions.
Jordan Rose [Tue, 23 Jul 2013 02:15:20 +0000 (02:15 +0000)]
[analyzer] Enable pseudo-destructor expressions.

These are cases where a scalar type is "destructed", usually due to
template instantiation (e.g. "obj.~T()", where 'T' is 'int'). This has
no actual effect and the analyzer should just skip over it.

llvm-svn: 186927

11 years ago[analyzer] Add test for crash tracing (r186639)
Jordan Rose [Tue, 23 Jul 2013 02:15:16 +0000 (02:15 +0000)]
[analyzer] Add test for crash tracing (r186639)

llvm-svn: 186926

11 years agoRevert "[analyzer] Add very limited support for temporary destructors"
Jordan Rose [Tue, 23 Jul 2013 02:15:11 +0000 (02:15 +0000)]
Revert "[analyzer] Add very limited support for temporary destructors"

The analyzer doesn't currently expect CFG blocks with terminators to be
empty, but this can happen when generating conditional destructors for
a complex logical expression, such as (a && (b || Temp{})). Moreover,
the branch conditions for these expressions are not persisted in the
state. Even for handling noreturn destructors this needs more work.

This reverts r186498.

llvm-svn: 186925

11 years agoDon't let x86 asm printer use the no operand movsd alias. It should use the normal...
Craig Topper [Tue, 23 Jul 2013 01:50:47 +0000 (01:50 +0000)]
Don't let x86 asm printer use the no operand movsd alias. It should use the normal movsl instead.

llvm-svn: 186924

11 years agoR600: Add support for 24-bit MAD instructions
Tom Stellard [Tue, 23 Jul 2013 01:48:49 +0000 (01:48 +0000)]
R600: Add support for 24-bit MAD instructions

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186923

11 years agoR600: Add support for 24-bit MUL instructions
Tom Stellard [Tue, 23 Jul 2013 01:48:42 +0000 (01:48 +0000)]
R600: Add support for 24-bit MUL instructions

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186922

11 years agoR600: Improve support for < 32-bit loads
Tom Stellard [Tue, 23 Jul 2013 01:48:35 +0000 (01:48 +0000)]
R600: Improve support for < 32-bit loads

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186921

11 years agoR600: Rename AMDILISelDAGToDAG.cpp -> AMDGPUISelDAGToDAG.cpp
Tom Stellard [Tue, 23 Jul 2013 01:48:29 +0000 (01:48 +0000)]
R600: Rename AMDILISelDAGToDAG.cpp -> AMDGPUISelDAGToDAG.cpp

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186920

11 years agoR600: Move CONST_ADDRESS folding into AMDGPUDAGToDAGISel::Select()
Tom Stellard [Tue, 23 Jul 2013 01:48:24 +0000 (01:48 +0000)]
R600: Move CONST_ADDRESS folding into AMDGPUDAGToDAGISel::Select()

This increases the number of opportunites we have for folding.  With the
previous implementation we were unable to fold into any instructions
other than the first when multiple instructions were selected from a
single SDNode.

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186919

11 years agoR600: Use KCache for kernel arguments
Tom Stellard [Tue, 23 Jul 2013 01:48:18 +0000 (01:48 +0000)]
R600: Use KCache for kernel arguments

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186918

11 years agoR600: Simplify assembly for KCache registers using the TableGen !add operator
Tom Stellard [Tue, 23 Jul 2013 01:48:08 +0000 (01:48 +0000)]
R600: Simplify assembly for KCache registers using the TableGen !add operator

Before:

MOV * T0.W, KC0[131-128].Y

After:

MOV * T0.W, KC0[3].Y

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186917

11 years agoR600: Use the same compute kernel calling convention for all GPUs
Tom Stellard [Tue, 23 Jul 2013 01:48:05 +0000 (01:48 +0000)]
R600: Use the same compute kernel calling convention for all GPUs

A side-effect of this is that now the compiler expects kernel arguments
to be 4-byte aligned.

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186916

11 years agoR600: Use correct LoadExtType when lowering kernel arguments
Tom Stellard [Tue, 23 Jul 2013 01:47:58 +0000 (01:47 +0000)]
R600: Use correct LoadExtType when lowering kernel arguments

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186915

11 years agoR600: Clean up extended load patterns
Tom Stellard [Tue, 23 Jul 2013 01:47:52 +0000 (01:47 +0000)]
R600: Clean up extended load patterns

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
llvm-svn: 186914

11 years agoR600: Expand vector FNEG
Tom Stellard [Tue, 23 Jul 2013 01:47:46 +0000 (01:47 +0000)]
R600: Expand vector FNEG

llvm-svn: 186913

11 years agoFixed a potential crash in the GetOSVersion code
Sean Callanan [Tue, 23 Jul 2013 01:38:41 +0000 (01:38 +0000)]
Fixed a potential crash in the GetOSVersion code
caused by a CFStringRef going out of scope.

llvm-svn: 186912

11 years ago[PECOFF] Support -fixed command line option to disable base relocations.
Rui Ueyama [Tue, 23 Jul 2013 01:29:50 +0000 (01:29 +0000)]
[PECOFF] Support -fixed command line option to disable base relocations.

llvm-svn: 186911

11 years agoRevert r186907 to fix bots.
Craig Topper [Tue, 23 Jul 2013 01:29:37 +0000 (01:29 +0000)]
Revert r186907 to fix bots.

llvm-svn: 186910

11 years agoAdd some missing cv-qualifiers.
Richard Smith [Tue, 23 Jul 2013 01:24:30 +0000 (01:24 +0000)]
Add some missing cv-qualifiers.

llvm-svn: 186909

11 years agoError on more illegal kernel argument types for OpenCL
Matt Arsenault [Tue, 23 Jul 2013 01:23:36 +0000 (01:23 +0000)]
Error on more illegal kernel argument types for OpenCL

bool, half, pointers and structs / unions containing any
of these are not allowed. Does not yet reject size_t and
related integer types that are also disallowed.

llvm-svn: 186908

11 years agoDon't let x86 asm printer use the no operand movsd alias. It should use the normal...
Craig Topper [Tue, 23 Jul 2013 01:21:36 +0000 (01:21 +0000)]
Don't let x86 asm printer use the no operand movsd alias. It should use the normal movsl instead.

llvm-svn: 186907

11 years agoMake the nomathbuiltin.c test less demanding.
Eli Bendersky [Tue, 23 Jul 2013 01:09:17 +0000 (01:09 +0000)]
Make the nomathbuiltin.c test less demanding.

This should hopefully unbreak the Windows bots at http://bb.pgr.jp

llvm-svn: 186906

11 years agoFurther simplify test case from r186894
David Blaikie [Tue, 23 Jul 2013 01:01:17 +0000 (01:01 +0000)]
Further simplify test case from r186894

llvm-svn: 186905

11 years agoAdd aliases to map 'imm, mem' form of x86 bts/btr/btc without a size suffix to their...
Craig Topper [Tue, 23 Jul 2013 00:56:15 +0000 (00:56 +0000)]
Add aliases to map 'imm, mem' form of x86 bts/btr/btc without a size suffix to their 32-bit forms.

This makes them consistent with 'bt' which already had this handling. gas has the same behavior. There have been discussions on the mailing list about determining size based on the immediate, but my goal here was just to remove the inconsistency.

llvm-svn: 186904

11 years agoIntegers which are too large should be an error.
Eli Friedman [Tue, 23 Jul 2013 00:25:18 +0000 (00:25 +0000)]
Integers which are too large should be an error.

Switch some warnings over to errors which should never have been warnings
in the first place.  (Also, a minor fix to the preprocessor rules for
integer literals while I'm here.)

llvm-svn: 186903

11 years agoDebug Info Finder: use processDeclare and processValue to list debug info
Manman Ren [Tue, 23 Jul 2013 00:22:51 +0000 (00:22 +0000)]
Debug Info Finder: use processDeclare and processValue to list debug info
MDNodes used by DbgDeclareInst and DbgValueInst.

Another 16 testing cases failed and they are disabled with
-disable-debug-info-verifier.
A total of 34 cases are disabled with -disable-debug-info-verifier and will be
corrected.

llvm-svn: 186902

11 years agoSimplify testcase.
Adrian Prantl [Tue, 23 Jul 2013 00:21:48 +0000 (00:21 +0000)]
Simplify testcase.
rdar://problem/14386148

llvm-svn: 186901

11 years agoExplicitly don't let the asm printer use the clrb/w/l aliases for xor %reg, %reg.
Craig Topper [Tue, 23 Jul 2013 00:15:19 +0000 (00:15 +0000)]
Explicitly don't let the asm printer use the clrb/w/l aliases for xor %reg, %reg.

It only didn't use it before because it seems InstAlias handling in the asm printer fails to count tied operands so it tried to find an xor with 2 operands instead of the 3 it wfails to count tied.

llvm-svn: 186900

11 years agoAdd a -fno-math-builtin option to the Clang -cc1
Eli Bendersky [Tue, 23 Jul 2013 00:13:01 +0000 (00:13 +0000)]
Add a -fno-math-builtin option to the Clang -cc1

llvm-svn: 186899

11 years agoImplement a better fix for r186894 by setting the appropriate type for __byref_variab...
Adrian Prantl [Tue, 23 Jul 2013 00:12:14 +0000 (00:12 +0000)]
Implement a better fix for r186894 by setting the appropriate type for __byref_variable_layout.

rdar://problem/14386148

llvm-svn: 186898

11 years agoSuppress argumentless aliases for some x86 FP operations from being used by the asm...
Craig Topper [Tue, 23 Jul 2013 00:03:33 +0000 (00:03 +0000)]
Suppress argumentless aliases for some x86 FP operations from being used by the asm writer. Prefer to use the explicit %st(1) form.

llvm-svn: 186897

11 years agoFix typo (ponted -> pointed)
Matt Arsenault [Mon, 22 Jul 2013 23:52:23 +0000 (23:52 +0000)]
Fix typo (ponted -> pointed)

llvm-svn: 186896

11 years agoObjectiveC migration. Better handle migration to conforming
Fariborz Jahanian [Mon, 22 Jul 2013 23:50:04 +0000 (23:50 +0000)]
ObjectiveC migration. Better handle migration to conforming
protocols by ignoring cases where all protocol properties
and methods are optional.

llvm-svn: 186895

11 years agoDebug Info: Acknowledge the alignment when locating byref block variables.
Adrian Prantl [Mon, 22 Jul 2013 23:44:26 +0000 (23:44 +0000)]
Debug Info: Acknowledge the alignment when locating byref block variables.
Fixes rdar://problem/14386148

llvm-svn: 186894

11 years agoRemove extraneous null statement. No functionality change!
Nick Lewycky [Mon, 22 Jul 2013 23:38:27 +0000 (23:38 +0000)]
Remove extraneous null statement. No functionality change!

llvm-svn: 186893

11 years agoUse switch instead of if. No functionality change.
Jakub Staszak [Mon, 22 Jul 2013 23:38:16 +0000 (23:38 +0000)]
Use switch instead of if. No functionality change.

llvm-svn: 186892

11 years agoTestcase for PR16673.
Eli Friedman [Mon, 22 Jul 2013 23:30:13 +0000 (23:30 +0000)]
Testcase for PR16673.

llvm-svn: 186891

11 years agoRemove trailing spaces.
Jakub Staszak [Mon, 22 Jul 2013 23:16:36 +0000 (23:16 +0000)]
Remove trailing spaces.

llvm-svn: 186890

11 years agoDon't emit open-paren fixit without close-paren.
Eli Friedman [Mon, 22 Jul 2013 23:09:39 +0000 (23:09 +0000)]
Don't emit open-paren fixit without close-paren.

getLocForEndOfToken() isn't guaranteed to succeed; if it doesn't, make sure
we do something sane.

Fixes PR16673.  I'm not sure how to write a testcase for this short of grepping
through the diagnostic output.

llvm-svn: 186889

11 years ago[PECOFF] Replace magic numbers with offsetof().
Rui Ueyama [Mon, 22 Jul 2013 23:02:08 +0000 (23:02 +0000)]
[PECOFF] Replace magic numbers with offsetof().

llvm-svn: 186888

11 years agoAdd a simple unit test for MemoryBuffer::getOpenFile
Eli Bendersky [Mon, 22 Jul 2013 22:46:21 +0000 (22:46 +0000)]
Add a simple unit test for MemoryBuffer::getOpenFile

llvm-svn: 186887

11 years agoTypo.
Eric Christopher [Mon, 22 Jul 2013 22:25:09 +0000 (22:25 +0000)]
Typo.

llvm-svn: 186886

11 years ago80-column tidying. Formatting choices by clang-format.
Eric Christopher [Mon, 22 Jul 2013 22:25:07 +0000 (22:25 +0000)]
80-column tidying. Formatting choices by clang-format.

llvm-svn: 186885

11 years agoFix -Wsign-compare warnings.
Rui Ueyama [Mon, 22 Jul 2013 22:21:39 +0000 (22:21 +0000)]
Fix -Wsign-compare warnings.

llvm-svn: 186884

11 years agoWhen we vectorize across multiple basic blocks we may vectorize PHINodes that create...
Nadav Rotem [Mon, 22 Jul 2013 22:18:07 +0000 (22:18 +0000)]
When we vectorize across multiple basic blocks we may vectorize PHINodes that create a cycle. We already break the cycle on phi-nodes, but arithmetic operations are still uplicated. This patch adds code that checks if the operation that we are vectorizing was vectorized during the visit of the operands and uses this value if it can.

llvm-svn: 186883

11 years ago[PECOFF][Driver] Show error message if no input file is given.
Rui Ueyama [Mon, 22 Jul 2013 22:17:24 +0000 (22:17 +0000)]
[PECOFF][Driver] Show error message if no input file is given.

llvm-svn: 186882

11 years agoWhen a Cortex-M3 target is selected (armv7m), force disassembly to be in
Jason Molenda [Mon, 22 Jul 2013 22:11:53 +0000 (22:11 +0000)]
When a Cortex-M3 target is selected (armv7m), force disassembly to be in
thumb mode.
<rdar://problem/14107444>, <rdar://problem/14107405>

llvm-svn: 186881

11 years agoOldPtr is llvm::Instruction. Remove unneeded cast<>.
Jakub Staszak [Mon, 22 Jul 2013 22:10:43 +0000 (22:10 +0000)]
OldPtr is llvm::Instruction. Remove unneeded cast<>.

llvm-svn: 186880

11 years agoSilence gcc warning.
Richard Trieu [Mon, 22 Jul 2013 21:29:28 +0000 (21:29 +0000)]
Silence gcc warning.

llvm-svn: 186879

11 years agoFix the move to/from accumulator register instructions that use a full 64-bit
Kevin Enderby [Mon, 22 Jul 2013 21:25:31 +0000 (21:25 +0000)]
Fix the move to/from accumulator register instructions that use a full 64-bit
absolute address encoded in the instruction.

rdar://8612627 and rdar://14299221

llvm-svn: 186878

11 years agoChange tabs to spaces.
Jakub Staszak [Mon, 22 Jul 2013 21:11:30 +0000 (21:11 +0000)]
Change tabs to spaces.

llvm-svn: 186877

11 years agoFix typo in test.
Jakub Staszak [Mon, 22 Jul 2013 21:10:42 +0000 (21:10 +0000)]
Fix typo in test.

llvm-svn: 186876

11 years agoFix a bug in std::fill_n where memset would end up being called in cases when it...
Anders Carlsson [Mon, 22 Jul 2013 21:08:00 +0000 (21:08 +0000)]
Fix a bug in std::fill_n where memset would end up being called in cases when it shouldn’t.

Reviewed by Howard.

llvm-svn: 186875

11 years ago[stackprotector] Changed isNoopBitcast/sameNoopInput to take TargetLoweringBase inste...
Michael Gottesman [Mon, 22 Jul 2013 21:05:47 +0000 (21:05 +0000)]
[stackprotector] Changed isNoopBitcast/sameNoopInput to take TargetLoweringBase instead of TargetLowering.

Both functions only use functionality from TargetLoweringBase.

rdar://13935163

llvm-svn: 186874

11 years agoRevert "cp11-migrate: Integration with LibFormat"
Michael Gottesman [Mon, 22 Jul 2013 21:03:56 +0000 (21:03 +0000)]
Revert "cp11-migrate: Integration with LibFormat"

This reverts commit r186866.

This breaks the build and the original author Guillaume Papin
<guillaume.papin@epitech.eu> asked me to revert so he could look at it more with
revane.

llvm-svn: 186873

11 years agoRevert commit 186833 (no longer needed after the fix in 186859).
Enea Zaffanella [Mon, 22 Jul 2013 20:58:30 +0000 (20:58 +0000)]
Revert commit 186833 (no longer needed after the fix in 186859).

llvm-svn: 186872

11 years agoFix i386 FreeBSD build
Ed Maste [Mon, 22 Jul 2013 20:51:08 +0000 (20:51 +0000)]
Fix i386 FreeBSD build

llvm-svn: 186871

11 years agoMake modules depend on the compiler's own module.map, as a proxy for the compiler...
Douglas Gregor [Mon, 22 Jul 2013 20:48:33 +0000 (20:48 +0000)]
Make modules depend on the compiler's own module.map, as a proxy for the compiler itself.

The headers in the compiler's own resource include directory are
system headers, which means we don't stat() them eagerly when loading
a module. Use module.map as a proxy for these headers and the compiler
itself. Fixes <rdar://problem/13856838>.

llvm-svn: 186870

11 years agoRecommit r186813: More Intel syntax alias fixes. With the addition of suppressing...
Craig Topper [Mon, 22 Jul 2013 20:46:37 +0000 (20:46 +0000)]
Recommit r186813: More Intel syntax alias fixes. With the addition of suppressing some of the aliases from being emitted by the asm printer.

llvm-svn: 186869

11 years ago[stackprotector] Refactored ssp prologue creation code into its own helper function.
Michael Gottesman [Mon, 22 Jul 2013 20:44:11 +0000 (20:44 +0000)]
[stackprotector] Refactored ssp prologue creation code into its own helper function.

No functionality change.

rdar://13935163

llvm-svn: 186868

11 years agoDebug Info Finder: add processScope to actually handle the Scope.
Manman Ren [Mon, 22 Jul 2013 20:28:53 +0000 (20:28 +0000)]
Debug Info Finder: add processScope to actually handle the Scope.

Instead of just adding the scope to the list, we actually handle the scope.

llvm-svn: 186867

11 years agocp11-migrate: Integration with LibFormat
Edwin Vane [Mon, 22 Jul 2013 20:26:29 +0000 (20:26 +0000)]
cp11-migrate: Integration with LibFormat

Adding a feature to optionally reformat code changed by the migrator. Like
LibFormat, can choose between built-in styles (LLVM, Mozilla, Google, Chromium)
or use a YAML-format config file.

Author: Guillaume Papin <guillaume.papin@epitech.eu>
llvm-svn: 186866

11 years agoelf-core: Run-time reg context selection
Ed Maste [Mon, 22 Jul 2013 20:20:55 +0000 (20:20 +0000)]
elf-core: Run-time reg context selection

Instantiate RegisterContextCore... based on getOS() instead of with
compile-time #ifdef-ery.

The assert()s here are unfortunate, but better than crashing with no
explanation.  (This would previously happen for an unsupported
architecture, anyhow.)

We should add an equivalent OS and architecture test to
ProcessElfCore::DoLoadCore() and cleanly report the error to the user.

llvm-svn: 186865

11 years agoUse the updated name for the attribute.
Bill Wendling [Mon, 22 Jul 2013 20:15:41 +0000 (20:15 +0000)]
Use the updated name for the attribute.

llvm-svn: 186864

11 years agoRecommit r186217 with testcase fix:
Bill Wendling [Mon, 22 Jul 2013 20:15:21 +0000 (20:15 +0000)]
Recommit r186217 with testcase fix:

 Use the function attributes to pass along the stack protector buffer size.

 Now that we have robust function attributes, don't use a command line option to
 specify the stack protecto buffer size.

llvm-svn: 186863

11 years agoelf-core: Remove SetTriple workaround
Ed Maste [Mon, 22 Jul 2013 20:01:34 +0000 (20:01 +0000)]
elf-core: Remove SetTriple workaround

On FreeBSD I see that Arch, Vendor, OS, and Environment are unchanged
after this call (for x86_64, at least), and core debugging works without
it.

If we need to restore it we should be able to switch on
arch.GetTriple.getOS() instead of a compile-time #ifdef.

Thanks to Daniel Malea for testing on Linux.

llvm-svn: 186862

11 years ago[mips] Fix MipsAsmParser::parseCCRRegs.
Akira Hatanaka [Mon, 22 Jul 2013 19:30:38 +0000 (19:30 +0000)]
[mips] Fix MipsAsmParser::parseCCRRegs.

Enable parsing all 32 floating point control registers $0-31 and stop trying to
parse floating point condition code register $fcc0. Also, return ParseFail if
the operand being parsed is not in the expected format.

llvm-svn: 186861

11 years agoMark ELF's first symbol as format specific so that llvm-nm ignores it.
Rafael Espindola [Mon, 22 Jul 2013 19:24:34 +0000 (19:24 +0000)]
Mark ELF's first symbol as format specific so that llvm-nm ignores it.

llvm-svn: 186860

11 years agoFixed implementation of C89 6.5.7 p3.
Enea Zaffanella [Mon, 22 Jul 2013 19:10:20 +0000 (19:10 +0000)]
Fixed implementation of C89 6.5.7 p3.
Warning should be emitted only for InitListExpr nodes.

llvm-svn: 186859

11 years agoFix spelling and grammar
Matt Arsenault [Mon, 22 Jul 2013 18:59:58 +0000 (18:59 +0000)]
Fix spelling and grammar

llvm-svn: 186858

11 years agoFix missing const
Matt Arsenault [Mon, 22 Jul 2013 18:58:53 +0000 (18:58 +0000)]
Fix missing const

llvm-svn: 186857