platform/upstream/llvm.git
11 years agoPPC: Reinstate the fatal error when trying to emit a macho file.
Benjamin Kramer [Sat, 24 Nov 2012 15:23:49 +0000 (15:23 +0000)]
PPC: Reinstate the fatal error when trying to emit a macho file.

llvm-svn: 168543

11 years agoARM: Share applyFixup between ELF and Darwin.
Benjamin Kramer [Sat, 24 Nov 2012 14:36:43 +0000 (14:36 +0000)]
ARM: Share applyFixup between ELF and Darwin.

The implementations already diverged a bit, merge them back together.

llvm-svn: 168542

11 years agoPPC: MCize most of the darwin PIC emission.
Benjamin Kramer [Sat, 24 Nov 2012 13:18:25 +0000 (13:18 +0000)]
PPC: MCize most of the darwin PIC emission.

The last remaining bit is "bcl 20, 31, AnonSymbol", which I couldn't find the
instruction definition for. Only whitespace changes in assembly output.

llvm-svn: 168541

11 years agoPPC: Share applyFixup between ELF and Darwin.
Benjamin Kramer [Sat, 24 Nov 2012 13:18:17 +0000 (13:18 +0000)]
PPC: Share applyFixup between ELF and Darwin.

llvm-svn: 168540

11 years agoPPC: Simplify code with Twines.
Benjamin Kramer [Sat, 24 Nov 2012 13:18:11 +0000 (13:18 +0000)]
PPC: Simplify code with Twines.

No functionality change.

llvm-svn: 168539

11 years agoFactor some common code out of individual if blocks.
Craig Topper [Sat, 24 Nov 2012 08:22:37 +0000 (08:22 +0000)]
Factor some common code out of individual if blocks.

llvm-svn: 168538

11 years ago[asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). This...
Kostya Serebryany [Sat, 24 Nov 2012 05:03:11 +0000 (05:03 +0000)]
[asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). This makes the code friendly to more platforms

llvm-svn: 168537

11 years agoChange the representation of MCCFIInstruction.
Rafael Espindola [Sat, 24 Nov 2012 04:33:48 +0000 (04:33 +0000)]
Change the representation of MCCFIInstruction.

We now store the Register and Offset directly. MachineLocation is gone (from
this file)!

llvm-svn: 168536

11 years agoMake err_module_expected_semi consistent with all the other expected_semi diags.
Nico Weber [Sat, 24 Nov 2012 03:20:20 +0000 (03:20 +0000)]
Make err_module_expected_semi consistent with all the other expected_semi diags.

llvm-svn: 168535

11 years agoGive each MCCFIInstruction its own opcode.
Rafael Espindola [Sat, 24 Nov 2012 03:10:54 +0000 (03:10 +0000)]
Give each MCCFIInstruction its own opcode.
This untangles the switch cases of the old Move and RelMove opcodes a bit
and makes it clear how to add new instructions.

llvm-svn: 168534

11 years agoMove a bit of duplicated code into a helper function.
Rafael Espindola [Sat, 24 Nov 2012 02:18:49 +0000 (02:18 +0000)]
Move a bit of duplicated code into a helper function.

llvm-svn: 168533

11 years agoRefactor how MCCFIInstructions are created.
Rafael Espindola [Sat, 24 Nov 2012 02:01:08 +0000 (02:01 +0000)]
Refactor how MCCFIInstructions are created.

Give MCCFIInstruction a single, private constructor and add helper static
methods that create each type of cfi instruction. This is is preparation
for changing its representation. The representation with a pair
MachineLocations older than MC and has been abused quiet a bit to support
more cfi instructions.

llvm-svn: 168532

11 years agoSkip objC test on non-darwin platforms
Daniel Malea [Fri, 23 Nov 2012 22:15:09 +0000 (22:15 +0000)]
Skip objC test on non-darwin platforms

llvm-svn: 168531

11 years agoRemove decorator to skip event tests
Daniel Malea [Fri, 23 Nov 2012 22:10:20 +0000 (22:10 +0000)]
Remove decorator to skip event tests
- hang resolved in r168503

llvm-svn: 168530

11 years agoUpdate test status on Linux
Daniel Malea [Fri, 23 Nov 2012 21:59:29 +0000 (21:59 +0000)]
Update test status on Linux
- add decorators @expectedFailLinux and @skipOnLinux
- skip/mark xfail cases due to open bugzillas # 14323, 14416, 14423, 14424, 14425, 14426

Patch by Ashok Thirumurthi!

llvm-svn: 168529

11 years agoCodeGenPrepare: Move ret duplication out of the instruction iteration loop.
Benjamin Kramer [Fri, 23 Nov 2012 19:17:06 +0000 (19:17 +0000)]
CodeGenPrepare: Move ret duplication out of the instruction iteration loop.

It can delete the block, and the loop continues on free'd memory.
No change in output. Found by valgrind.

llvm-svn: 168525

11 years agoRefactor a bit to make some helper functions static.
Craig Topper [Fri, 23 Nov 2012 18:38:31 +0000 (18:38 +0000)]
Refactor a bit to make some helper functions static.

llvm-svn: 168524

11 years agoFix Linux bug that leaves lldb in invalid state after expression evaluation times...
Daniel Malea [Fri, 23 Nov 2012 18:09:58 +0000 (18:09 +0000)]
Fix Linux bug that leaves lldb in invalid state after expression evaluation times out.
- Handle EINVAL return code from ptrace(GETSIGINFO, ...): not an error, but 'group-stop' state on Linux
- propagate SIGSTOP to inferior in above case
- this commit resolves the failure in expression_command/timeout testcase

Thanks to Sean Callanan & Matt Kopec for helping debug this problem

llvm-svn: 168523

11 years agoAdd a -disable-cfi option to llvm-mc. This is useful for debugging as
Rafael Espindola [Fri, 23 Nov 2012 17:37:34 +0000 (17:37 +0000)]
Add a -disable-cfi option to llvm-mc. This is useful for debugging as
it will expand any .cfi_* directives in the input assembly.

Unfortunately this cannot replace elf-dump in tests as the asm streamer
cannot relax the line advance opcodes.

llvm-svn: 168522

11 years agoSema: Provide a valid source location when instantiating templates based on a CXXDefa...
Benjamin Kramer [Fri, 23 Nov 2012 17:04:52 +0000 (17:04 +0000)]
Sema: Provide a valid source location when instantiating templates based on a CXXDefaultArgExpr.

Fixes PR13758.

llvm-svn: 168521

11 years agoImplement .cfi_undefined. Based on a patch from PaX team, updated by
Rafael Espindola [Fri, 23 Nov 2012 16:59:41 +0000 (16:59 +0000)]
Implement .cfi_undefined. Based on a patch from PaX team, updated by
Roman Divacky. I just added the testcase.

llvm-svn: 168520

11 years agoMerge used flags so that we don't have to iterate on isUsed. With this change
Rafael Espindola [Fri, 23 Nov 2012 16:26:30 +0000 (16:26 +0000)]
Merge used flags so that we don't have to iterate on isUsed. With this change
"clang -cc1 -fsyntax-only" on the preprocessed output of

#define M extern int a;
#define M2 M M
#define M4 M2 M2
#define M8 M4 M4
#define M16 M8 M8
#define M32 M16 M16
#define M64 M32 M32
#define M128 M64 M64
#define M256 M128 M128
#define M512 M256 M256
#define M1024 M512 M512
#define M2048 M1024 M1024
#define M4096 M2048 M2048
#define M8192 M4096 M4096
#define M16384 M8192 M8192
M16384

goes from 2.994s to 1.416s. GCC is at 0.022s, so we still have a long way to go.

llvm-svn: 168519

11 years agotsan: add failure memory order to atomic compare exchange functions
Dmitry Vyukov [Fri, 23 Nov 2012 15:51:45 +0000 (15:51 +0000)]
tsan: add failure memory order to atomic compare exchange functions

llvm-svn: 168518

11 years ago[asan] get rid of some of the uses of kPageSize. The intent is to get rid of it compl...
Kostya Serebryany [Fri, 23 Nov 2012 15:38:49 +0000 (15:38 +0000)]
[asan] get rid of some of the uses of kPageSize. The intent is to get rid of it completely to support platforms with multiple possible page sizes.

llvm-svn: 168517

11 years agoDisallow the undocumented practice of starting the datalayout string with '-'.
Patrik Hägglund [Fri, 23 Nov 2012 14:51:42 +0000 (14:51 +0000)]
Disallow the undocumented practice of starting the datalayout string with '-'.

Update some test cases accordingly.

llvm-svn: 168516

11 years agoRemove redundant check.
Rafael Espindola [Fri, 23 Nov 2012 14:29:54 +0000 (14:29 +0000)]
Remove redundant check.

llvm-svn: 168515

11 years agoCheck that we don't warn on this testcase. This is basically a test that
Rafael Espindola [Fri, 23 Nov 2012 13:54:40 +0000 (13:54 +0000)]
Check that we don't warn on this testcase. This is basically a test that
Decl::isUsed checks the attribute. If the function had a body just the check
is DeclMustBeEmitted would be sufficient.

llvm-svn: 168514

11 years ago[ASan] move swapcontext_test to Linux-specific tests
Alexey Samsonov [Fri, 23 Nov 2012 11:20:54 +0000 (11:20 +0000)]
[ASan] move swapcontext_test to Linux-specific tests

llvm-svn: 168513

11 years agoUpdate call to the new syntax.
Bill Wendling [Fri, 23 Nov 2012 11:05:35 +0000 (11:05 +0000)]
Update call to the new syntax.

llvm-svn: 168512

11 years agoRemove unused parameter Penalty from the BoundsChecking pass.
Joey Gouly [Fri, 23 Nov 2012 10:47:35 +0000 (10:47 +0000)]
Remove unused parameter Penalty from the BoundsChecking pass.

llvm-svn: 168511

11 years agoPR14306: Move -fbounds-checking to -fsanitize=bounds.
Joey Gouly [Fri, 23 Nov 2012 10:39:49 +0000 (10:39 +0000)]
PR14306: Move -fbounds-checking to -fsanitize=bounds.

llvm-svn: 168510

11 years ago[ASan] intercept swapcontext on Linux only
Alexey Samsonov [Fri, 23 Nov 2012 10:14:44 +0000 (10:14 +0000)]
[ASan] intercept swapcontext on Linux only

llvm-svn: 168509

11 years ago[ASan] Add interceptor for swapcontext to fight with false positives in some of its...
Alexey Samsonov [Fri, 23 Nov 2012 09:46:34 +0000 (09:46 +0000)]
[ASan] Add interceptor for swapcontext to fight with false positives in some of its use cases.

llvm-svn: 168508

11 years agoCleanup: Simplify loop end logic in computeRegisterProperties().
Patrik Hägglund [Fri, 23 Nov 2012 08:35:04 +0000 (08:35 +0000)]
Cleanup: Simplify loop end logic in computeRegisterProperties().

llvm-svn: 168507

11 years agotsan: ensure than func entry/exit are inlined
Dmitry Vyukov [Fri, 23 Nov 2012 07:14:11 +0000 (07:14 +0000)]
tsan: ensure than func entry/exit are inlined

llvm-svn: 168506

11 years agoReapply a subset of r167567 to clean up Darwin-specific code for invoking gcc.
Bob Wilson [Fri, 23 Nov 2012 06:14:39 +0000 (06:14 +0000)]
Reapply a subset of r167567 to clean up Darwin-specific code for invoking gcc.

Unlike my previous attempt at this, this patch leaves intact the check for
whether clang can handle the input file type, and for non-Darwin toolchains it
will invoke gcc for things it cannot handle. For Darwin toolchains, the
behavior reported in pr14338 still occurs with this patch, but that is a
definite improvement from what happens currently, where it just crashes with
an assertion failure.

llvm-svn: 168505

11 years agoAdded me as the owner of the Sparc backend
Venkatraman Govindaraju [Thu, 22 Nov 2012 22:14:48 +0000 (22:14 +0000)]
Added me as the owner of the Sparc backend

llvm-svn: 168504

11 years agoRemove call to StopMonitor() from ProcessMonitor::Detach()
Daniel Malea [Thu, 22 Nov 2012 18:21:05 +0000 (18:21 +0000)]
Remove call to StopMonitor() from ProcessMonitor::Detach()
- StopMonitor() is called anyways from ProcessMonitor destructor later
- resolves hang in TestEvents.py

Patch by Matt Kopec!

llvm-svn: 168503

11 years agoMark me as the owner of the gold plugin.
Rafael Espindola [Thu, 22 Nov 2012 16:43:44 +0000 (16:43 +0000)]
Mark me as the owner of the gold plugin.

llvm-svn: 168502

11 years agoAdd more functions to the target library information.
Meador Inge [Thu, 22 Nov 2012 15:36:42 +0000 (15:36 +0000)]
Add more functions to the target library information.

I discovered a few more missing functions while migrating optimizations
from the simplify-libcalls pass to the instcombine (I already added some
in r167659).

llvm-svn: 168501

11 years agoMake helpers static/anonymous.
Benjamin Kramer [Thu, 22 Nov 2012 15:02:44 +0000 (15:02 +0000)]
Make helpers static/anonymous.

llvm-svn: 168500

11 years agollvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp: Prune AddressSanitizerCreat...
NAKAMURA Takumi [Thu, 22 Nov 2012 14:18:25 +0000 (14:18 +0000)]
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp: Prune AddressSanitizerCreateGlobalRedzonesPass::ID. [-Wunused-variable]

llvm-svn: 168499

11 years agoFix 80-col violation
Eli Bendersky [Thu, 22 Nov 2012 14:10:40 +0000 (14:10 +0000)]
Fix 80-col violation

llvm-svn: 168498

11 years agotsan: fix more bugs in signal handling
Dmitry Vyukov [Thu, 22 Nov 2012 13:53:54 +0000 (13:53 +0000)]
tsan: fix more bugs in signal handling

llvm-svn: 168497

11 years agotsan: add missing \n in report
Dmitry Vyukov [Thu, 22 Nov 2012 13:38:28 +0000 (13:38 +0000)]
tsan: add missing \n in report

llvm-svn: 168496

11 years agoIntelJITEventsWrapper.h: Prune two members, FinalizeThreadFunc and FinalizeProcessFun...
NAKAMURA Takumi [Thu, 22 Nov 2012 13:18:37 +0000 (13:18 +0000)]
IntelJITEventsWrapper.h: Prune two members, FinalizeThreadFunc and FinalizeProcessFunc, for now. [-Wunused-private-field]

llvm-svn: 168495

11 years agoDocumentation: convert SourceLevelDebugging.html to reST
Dmitri Gribenko [Thu, 22 Nov 2012 11:56:02 +0000 (11:56 +0000)]
Documentation: convert SourceLevelDebugging.html to reST

llvm-svn: 168493

11 years agoRemove 'sretpromotion' pass from the documentation. This pass is long
Chandler Carruth [Thu, 22 Nov 2012 11:17:08 +0000 (11:17 +0000)]
Remove 'sretpromotion' pass from the documentation. This pass is long
dead.

Patch by Stephan Falke.

llvm-svn: 168492

11 years agotsan: better error message for OOM
Dmitry Vyukov [Thu, 22 Nov 2012 08:42:01 +0000 (08:42 +0000)]
tsan: better error message for OOM

llvm-svn: 168491

11 years agoGeneralize matching of add_executable to add_XXX_executable.
Ted Kremenek [Thu, 22 Nov 2012 07:48:52 +0000 (07:48 +0000)]
Generalize matching of add_executable to add_XXX_executable.

llvm-svn: 168490

11 years agollvm.fmuladd.* lowering should be checking isOperationLegalOrCustom, rather than
Lang Hames [Thu, 22 Nov 2012 03:31:45 +0000 (03:31 +0000)]
llvm.fmuladd.* lowering should be checking isOperationLegalOrCustom, rather than
isOperationLegal. Thanks to Craig Topper for pointing this out.

llvm-svn: 168485

11 years ago[asan] rip off the creation of global redzones from the main AddressSanitizer class...
Kostya Serebryany [Thu, 22 Nov 2012 03:18:50 +0000 (03:18 +0000)]
[asan] rip off the creation of global redzones from the main AddressSanitizer class into a separate class. The intent is to make it a separate ModulePass in the following commmits

llvm-svn: 168484

11 years agoPull some code out into functions to make rearranging them a bit easier.
Eric Christopher [Thu, 22 Nov 2012 00:59:49 +0000 (00:59 +0000)]
Pull some code out into functions to make rearranging them a bit easier.

llvm-svn: 168481

11 years agoFix regression in r168477. Use canonical decl when looking for base class
Richard Smith [Thu, 22 Nov 2012 00:40:54 +0000 (00:40 +0000)]
Fix regression in r168477. Use canonical decl when looking for base class
specified as a qualified name.

llvm-svn: 168479

11 years agoFix CXXRecordDecl::forallBases to not look through bases which are dependent
Richard Smith [Thu, 22 Nov 2012 00:24:47 +0000 (00:24 +0000)]
Fix CXXRecordDecl::forallBases to not look through bases which are dependent
and defined within the current instantiation, but which are not part of the
current instantiation. Previously, it would look at bases which could be
specialized separately from the current template.

llvm-svn: 168477

11 years agoTest that we correctly deal with multiple copy constructors when detecting
Richard Smith [Thu, 22 Nov 2012 00:21:13 +0000 (00:21 +0000)]
Test that we correctly deal with multiple copy constructors when detecting
non-trivial special members for varargs calls.

llvm-svn: 168476

11 years agoCorrects a problem where we reply exclusively of GEPs to drive
Preston Briggs [Wed, 21 Nov 2012 23:50:04 +0000 (23:50 +0000)]
Corrects a problem where we reply exclusively of GEPs to drive
analysis.  Better is to look for cases with useful GEPs and use them
when possible.  When a pair of useful GEPs is not available, use the
raw SCEVs directly. This approach supports better analysis of pointer
dereferencing.

In parallel, all the test cases are updated appropriately.
Cases where we have a store to *B++ can now be analyzed!

llvm-svn: 168474

11 years agoFix the '-fuse-init-array' option to actually be an option.
Chandler Carruth [Wed, 21 Nov 2012 23:40:23 +0000 (23:40 +0000)]
Fix the '-fuse-init-array' option to actually be an option.

Previously, this flag to CC1 was never exposed at the clang driver
layer, and if you happened to enable it (by being on Android or GCC 4.7
platform), you couldn't *disable* it, because there was no 'no' variant.
The whole thing was confusingly implemented.

Now, the target-specific flag processing gets the driver arg list, and
we use standard hasFlag with a default based on the GCC version and/or
Android platform. The user can still pass the 'no-' variant to forcibly
disable the flag, or pass the positive variant to clang itself to enable
the flag.

The test has also been substantially cleaned up and extended to cover
these use cases.

llvm-svn: 168473

11 years agoMips direct object xgot support
Jack Carter [Wed, 21 Nov 2012 23:38:59 +0000 (23:38 +0000)]
Mips direct object xgot support

This patch provides support for the MIPS relocations:

    *)  R_MIPS_GOT_HI16
    *)  R_MIPS_GOT_LO16
    *)  R_MIPS_CALL_HI16
    *)  R_MIPS_CALL_LO16

These are used for large GOT instruction sequences.

Contributer: Jack Carter
llvm-svn: 168471

11 years agoFix a typo in FileCheck.rst
Eli Bendersky [Wed, 21 Nov 2012 22:40:52 +0000 (22:40 +0000)]
Fix a typo in FileCheck.rst

llvm-svn: 168466

11 years agoPopulate entry point into ELF executable.
Hemant Kulkarni [Wed, 21 Nov 2012 21:07:36 +0000 (21:07 +0000)]
Populate entry point into ELF executable.

llvm-svn: 168461

11 years ago[mips] Generate big GOT code.
Akira Hatanaka [Wed, 21 Nov 2012 20:40:38 +0000 (20:40 +0000)]
[mips] Generate big GOT code.

llvm-svn: 168460

11 years agoAdding tests for the Intel JIT event listener's MCJIT support.
Andrew Kaylor [Wed, 21 Nov 2012 20:38:26 +0000 (20:38 +0000)]
Adding tests for the Intel JIT event listener's MCJIT support.

llvm-svn: 168459

11 years ago[mips] Simplify lowering functions in MipsISelLowering.cpp by using the helper
Akira Hatanaka [Wed, 21 Nov 2012 20:30:40 +0000 (20:30 +0000)]
[mips] Simplify lowering functions in MipsISelLowering.cpp by using the helper
functions added in r168456.

llvm-svn: 168458

11 years ago[mips] Add helper functions that create nodes for computing address.
Akira Hatanaka [Wed, 21 Nov 2012 20:26:38 +0000 (20:26 +0000)]
[mips] Add helper functions that create nodes for computing address.

llvm-svn: 168456

11 years ago[mips] Add command line option "-mxgot".
Akira Hatanaka [Wed, 21 Nov 2012 20:21:11 +0000 (20:21 +0000)]
[mips] Add command line option "-mxgot".

llvm-svn: 168455

11 years agoDisable darwin-specific test on non-darwin platforms
Daniel Malea [Wed, 21 Nov 2012 20:17:07 +0000 (20:17 +0000)]
Disable darwin-specific test on non-darwin platforms

llvm-svn: 168454

11 years ago[mips] When a node which loads from a GOT is created, pass a MachinePointerInfo
Akira Hatanaka [Wed, 21 Nov 2012 20:16:34 +0000 (20:16 +0000)]
[mips] When a node which loads from a GOT is created, pass a MachinePointerInfo
referring to a GOT entry.

llvm-svn: 168453

11 years agoLinux test case fixes
Daniel Malea [Wed, 21 Nov 2012 20:12:12 +0000 (20:12 +0000)]
Linux test case fixes
- missing includes in cpp test programs
- mismatched dwarf/dsym test cases
- make "com.apple.main-thread" expected string conditional on darwin platform

llvm-svn: 168452

11 years agoAdd new predicates for the immediate operands.
Jyotsna Verma [Wed, 21 Nov 2012 20:05:09 +0000 (20:05 +0000)]
Add new predicates for the immediate operands.

llvm-svn: 168451

11 years ago[mips] Add target operand flag enums for big GOT relocations.
Akira Hatanaka [Wed, 21 Nov 2012 19:59:51 +0000 (19:59 +0000)]
[mips] Add target operand flag enums for big GOT relocations.

llvm-svn: 168450

11 years agoUse one common 'let' expression to set PrintMethod for all immediate operands.
Jyotsna Verma [Wed, 21 Nov 2012 19:53:42 +0000 (19:53 +0000)]
Use one common 'let' expression to set PrintMethod for all immediate operands.

llvm-svn: 168449

11 years agoAdd relocations used for mips big GOT.
Akira Hatanaka [Wed, 21 Nov 2012 19:50:22 +0000 (19:50 +0000)]
Add relocations used for mips big GOT.

llvm-svn: 168448

11 years agotest commit: added a few comments
Preston Briggs [Wed, 21 Nov 2012 18:53:19 +0000 (18:53 +0000)]
test commit: added a few comments

llvm-svn: 168445

11 years agoImplementing basic function-level profiling support in IntelJITEventListener.
Andrew Kaylor [Wed, 21 Nov 2012 18:50:33 +0000 (18:50 +0000)]
Implementing basic function-level profiling support in IntelJITEventListener.

Tests to follow in another patch.

llvm-svn: 168444

11 years agoSemaCXX: an enumeral type can be of character or boolean type in a C++11 enum class...
Benjamin Kramer [Wed, 21 Nov 2012 17:42:47 +0000 (17:42 +0000)]
SemaCXX: an enumeral type can be of character or boolean type in a C++11 enum class. Make sure we create a literal of the right type.

Fixes PR14386.

llvm-svn: 168441

11 years agoAdd support for varargs functions for msp430.
Anton Korobeynikov [Wed, 21 Nov 2012 17:28:27 +0000 (17:28 +0000)]
Add support for varargs functions for msp430.
Patch by Job Noorman!

llvm-svn: 168440

11 years agoAdd support for byval args. Patch by Job Noorman!
Anton Korobeynikov [Wed, 21 Nov 2012 17:23:03 +0000 (17:23 +0000)]
Add support for byval args. Patch by Job Noorman!

llvm-svn: 168439

11 years agoFinish the renaming.
Rafael Espindola [Wed, 21 Nov 2012 16:56:33 +0000 (16:56 +0000)]
Finish the renaming.

llvm-svn: 168437

11 years agoTest commit: Remove blank line.
Joey Gouly [Wed, 21 Nov 2012 16:54:35 +0000 (16:54 +0000)]
Test commit: Remove blank line.

llvm-svn: 168436

11 years agoRenamed HexagonImmediates.td -> HexagonOperands.td.
Jyotsna Verma [Wed, 21 Nov 2012 16:28:18 +0000 (16:28 +0000)]
Renamed HexagonImmediates.td -> HexagonOperands.td.

llvm-svn: 168434

11 years agoTry to fix test from r168428 on mingw bot
Alexey Samsonov [Wed, 21 Nov 2012 15:52:36 +0000 (15:52 +0000)]
Try to fix test from r168428 on mingw bot

llvm-svn: 168431

11 years agollvm/test/Transforms/InstCombine/sdiv-1.ll: FileCheck-ize.
NAKAMURA Takumi [Wed, 21 Nov 2012 14:46:18 +0000 (14:46 +0000)]
llvm/test/Transforms/InstCombine/sdiv-1.ll: FileCheck-ize.

"not grep '-715827882'" performed as below...bad...

Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

llvm-svn: 168430

11 years agoclang/test/Driver/x86_64-nacl-defines.cpp: Specify filename generated.
NAKAMURA Takumi [Wed, 21 Nov 2012 14:45:57 +0000 (14:45 +0000)]
clang/test/Driver/x86_64-nacl-defines.cpp: Specify filename generated.

FIXME: It could be /dev/null.
llvm-svn: 168429

11 years ago[Sanitizer] force linking with static sanitizer runtimes on Darwin even if they are...
Alexey Samsonov [Wed, 21 Nov 2012 14:17:42 +0000 (14:17 +0000)]
[Sanitizer] force linking with static sanitizer runtimes on Darwin even if they are not found in resource directory. Add test checking sanitizer linker flags on Darwin.

llvm-svn: 168428

11 years agoUsing "not grep" is brittle as the test passes if llvm-as fails.
Rafael Espindola [Wed, 21 Nov 2012 14:17:23 +0000 (14:17 +0000)]
Using "not grep" is brittle as the test passes if llvm-as fails.
Fix the testcase to be valid IL and uses FileCheck.
Thanks to NAKAMURA Takumi for noticing it.

llvm-svn: 168427

11 years ago[asan] get rid of kPageSizeBits
Kostya Serebryany [Wed, 21 Nov 2012 13:31:07 +0000 (13:31 +0000)]
[asan] get rid of kPageSizeBits

llvm-svn: 168426

11 years agoAllow PopStackFrames leave the stack empty.
Evgeniy Stepanov [Wed, 21 Nov 2012 13:00:04 +0000 (13:00 +0000)]
Allow PopStackFrames leave the stack empty.

llvm-svn: 168425

11 years ago[asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. Instead, defin...
Kostya Serebryany [Wed, 21 Nov 2012 12:38:58 +0000 (12:38 +0000)]
[asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. Instead, define our own SANITIZER_WORDSIZE

llvm-svn: 168424

11 years agotsan: explictly say when we fail to restore a stack trace
Dmitry Vyukov [Wed, 21 Nov 2012 11:44:20 +0000 (11:44 +0000)]
tsan: explictly say when we fail to restore a stack trace

llvm-svn: 168423

11 years ago[Sanitizer] replace while with internal_memset to make sure compiler won't replace...
Alexey Samsonov [Wed, 21 Nov 2012 11:12:57 +0000 (11:12 +0000)]
[Sanitizer] replace while with internal_memset to make sure compiler won't replace it with library memset

llvm-svn: 168422

11 years agotsan: fix handling of signals
Dmitry Vyukov [Wed, 21 Nov 2012 11:12:33 +0000 (11:12 +0000)]
tsan: fix handling of signals
(do not execute synchronous signals in recursive interceptors)

llvm-svn: 168421

11 years agoUse color for -ast-dump-filter only when it is supported
Dmitri Gribenko [Wed, 21 Nov 2012 10:54:55 +0000 (10:54 +0000)]
Use color for -ast-dump-filter only when it is supported

Patch by Philip Craig.

llvm-svn: 168420

11 years agoPR14055: Implement support for sub-vector operations in SROA.
Chandler Carruth [Wed, 21 Nov 2012 08:16:30 +0000 (08:16 +0000)]
PR14055: Implement support for sub-vector operations in SROA.

Now if we can transform an alloca into a single vector value, but it has
subvector, non-element accesses, we form the appropriate shufflevectors
to allow SROA to proceed. This fixes PR14055 which pointed out a very
common pattern that SROA couldn't handle -- mixed vec3 and vec4
operations on a single alloca.

llvm-svn: 168418

11 years agoFix execution domain for packed FMA4 instructions.
Craig Topper [Wed, 21 Nov 2012 08:08:21 +0000 (08:08 +0000)]
Fix execution domain for packed FMA4 instructions.

llvm-svn: 168417

11 years agoMark ISD::FMA as Legal instead of custom for x86 with FMA3/FMA4. Needed so that llvm...
Craig Topper [Wed, 21 Nov 2012 05:36:24 +0000 (05:36 +0000)]
Mark ISD::FMA as Legal instead of custom for x86 with FMA3/FMA4. Needed so that llvm.muladd can be converted to ISD::FMA for fp_contract.

llvm-svn: 168413

11 years agoRemove redundant code.
Rafael Espindola [Wed, 21 Nov 2012 02:53:22 +0000 (02:53 +0000)]
Remove redundant code.

llvm-svn: 168411

11 years agoRemove redundant code.
Rafael Espindola [Wed, 21 Nov 2012 02:47:19 +0000 (02:47 +0000)]
Remove redundant code.

llvm-svn: 168410

11 years agoMake calcLiveInMask method static.
Jakub Staszak [Wed, 21 Nov 2012 00:59:34 +0000 (00:59 +0000)]
Make calcLiveInMask method static.

llvm-svn: 168409

11 years agoMake isScratchReg and isFPCopy methods static.
Jakub Staszak [Wed, 21 Nov 2012 00:50:57 +0000 (00:50 +0000)]
Make isScratchReg and isFPCopy methods static.

llvm-svn: 168407