platform/upstream/llvm.git
9 years agoMigrate a bare getSubtarget call to query the MachineFunction
Eric Christopher [Fri, 30 Jan 2015 01:50:09 +0000 (01:50 +0000)]
Migrate a bare getSubtarget call to query the MachineFunction
for the target dependent one.

llvm-svn: 227542

9 years agoMigrate NVPTXISelLowering to take the subtarget that it's dependent
Eric Christopher [Fri, 30 Jan 2015 01:50:07 +0000 (01:50 +0000)]
Migrate NVPTXISelLowering to take the subtarget that it's dependent
upon as an argument and store/use that in the entire function.

llvm-svn: 227541

9 years agoWeaken an assertion that isn't true for invalid input.
Nico Weber [Fri, 30 Jan 2015 01:48:49 +0000 (01:48 +0000)]
Weaken an assertion that isn't true for invalid input.

llvm-svn: 227540

9 years agoRemove unused argument.
Eric Christopher [Fri, 30 Jan 2015 01:41:01 +0000 (01:41 +0000)]
Remove unused argument.

llvm-svn: 227539

9 years agoMigrate NVPTXISelDAGToDAG's getSubtarget to a runOnMachineFunction
Eric Christopher [Fri, 30 Jan 2015 01:40:59 +0000 (01:40 +0000)]
Migrate NVPTXISelDAGToDAG's getSubtarget to a runOnMachineFunction
version. Update NVPTXInstrInfo accordingly.

llvm-svn: 227538

9 years agoRemove unused parameter.
Rui Ueyama [Fri, 30 Jan 2015 01:35:38 +0000 (01:35 +0000)]
Remove unused parameter.

llvm-svn: 227536

9 years agoRemove calls to bare getSubtarget and clean up the functions
Eric Christopher [Fri, 30 Jan 2015 01:30:01 +0000 (01:30 +0000)]
Remove calls to bare getSubtarget and clean up the functions
accordingly.

llvm-svn: 227535

9 years agoRemove remaining code for PPC ELF target.
Rui Ueyama [Fri, 30 Jan 2015 01:18:43 +0000 (01:18 +0000)]
Remove remaining code for PPC ELF target.

llvm-svn: 227534

9 years ago[LTO] Scan all per-function subtargets when collecting runtime library names.
Akira Hatanaka [Fri, 30 Jan 2015 01:16:24 +0000 (01:16 +0000)]
[LTO] Scan all per-function subtargets when collecting runtime library names.

accumulateAndSortLibcalls in LTOCodeGenerator.cpp collects names of runtime
library functions which are used to identify user-defined functions that should
be protected. Previously, this function would only scan the TargetLowering
object belonging to the "main" subtarget for the library function names. This
commit changes it to scan all per-function subtargets.

Differential Revision: http://reviews.llvm.org/D7275

llvm-svn: 227533

9 years ago[llvm-lto] Add a line for setting LTOCodeGenerator's CPU string from command
Akira Hatanaka [Fri, 30 Jan 2015 01:14:28 +0000 (01:14 +0000)]
[llvm-lto] Add a line for setting LTOCodeGenerator's CPU string from command
line.

This is needed for a test case I plan to commit later.

llvm-svn: 227532

9 years agoRemove a few getSubtarget calls in AArch64 pass manager initialization.
Eric Christopher [Fri, 30 Jan 2015 01:10:26 +0000 (01:10 +0000)]
Remove a few getSubtarget calls in AArch64 pass manager initialization.

llvm-svn: 227531

9 years agoClean up some uses of getSubtarget in AArch64.
Eric Christopher [Fri, 30 Jan 2015 01:10:24 +0000 (01:10 +0000)]
Clean up some uses of getSubtarget in AArch64.

llvm-svn: 227530

9 years agoThis only needs TargetInstrInfo, not the specialized one.
Eric Christopher [Fri, 30 Jan 2015 01:10:18 +0000 (01:10 +0000)]
This only needs TargetInstrInfo, not the specialized one.

llvm-svn: 227529

9 years agoclang-cl: Enable -fexceptions but not -fcxx-exceptions by default
Reid Kleckner [Fri, 30 Jan 2015 01:04:16 +0000 (01:04 +0000)]
clang-cl: Enable -fexceptions but not -fcxx-exceptions by default

This enables proper IRgen of SEH constructs.

llvm-svn: 227528

9 years ago[TSan] Fix -Werror=sign-compare warning. NFC.
Alexey Samsonov [Fri, 30 Jan 2015 01:02:12 +0000 (01:02 +0000)]
[TSan] Fix -Werror=sign-compare warning. NFC.

llvm-svn: 227527

9 years agoRemove unused #includes.
Rui Ueyama [Fri, 30 Jan 2015 00:47:33 +0000 (00:47 +0000)]
Remove unused #includes.

llvm-svn: 227526

9 years ago[PM] Remove two very old and dead forward declarations for the prior
Chandler Carruth [Fri, 30 Jan 2015 00:41:44 +0000 (00:41 +0000)]
[PM] Remove two very old and dead forward declarations for the prior
incarnation of target transform info.

This is in preparation for starting to redesign TTI to be amenable to
the new PM world.

llvm-svn: 227525

9 years ago[FIX] Activated a pointer test and removed obsolete comment
Johannes Doerfert [Fri, 30 Jan 2015 00:36:13 +0000 (00:36 +0000)]
[FIX] Activated a pointer test and removed obsolete comment

llvm-svn: 227524

9 years agoUpdating iOS.cmake to work with the latest Xcode and iOS 8 SDK.
Chris Bieneman [Fri, 30 Jan 2015 00:10:47 +0000 (00:10 +0000)]
Updating iOS.cmake to work with the latest Xcode and iOS 8 SDK.

llvm-svn: 227523

9 years agoiOS doesn't have histedit.h available. We should gate use of libedit on whether or...
Chris Bieneman [Fri, 30 Jan 2015 00:10:43 +0000 (00:10 +0000)]
iOS doesn't have histedit.h available. We should gate use of libedit on whether or not this headers exists.

llvm-svn: 227522

9 years agoiOS doesn't have crt_externs.h available, so we fall back to the posix method.
Chris Bieneman [Fri, 30 Jan 2015 00:10:39 +0000 (00:10 +0000)]
iOS doesn't have crt_externs.h available, so we fall back to the posix method.

llvm-svn: 227521

9 years agox86: Remove unused variables not caught by MSVC =P
Reid Kleckner [Fri, 30 Jan 2015 00:05:39 +0000 (00:05 +0000)]
x86: Remove unused variables not caught by MSVC =P

llvm-svn: 227520

9 years agox86: Fix large model calls to __chkstk for dynamic allocas
Reid Kleckner [Thu, 29 Jan 2015 23:58:04 +0000 (23:58 +0000)]
x86: Fix large model calls to __chkstk for dynamic allocas

In the large code model, we now put __chkstk in %r11 before calling it.

Refactor the code so that we only do this once. Simplify things by using
__chkstk_ms instead of __chkstk on cygming. We already use that symbol
in the prolog emission, and it simplifies our logic.

Second half of PR18582.

llvm-svn: 227519

9 years agoAdd some more PS4 driver settings related to rtti and exceptions.
Filipe Cabecinhas [Thu, 29 Jan 2015 23:56:43 +0000 (23:56 +0000)]
Add some more PS4 driver settings related to rtti and exceptions.

Summary:
The PS4 defaults to -fno-rtti, and has to have rtti enabled when enabling
exceptions.

This commit makes clang add the -fno-rtti by default on the PS4, unless
-frtti was passed in.

It also diagnoses misuses for the PS4:
- Exceptions need rtti. Warn and enable rtti if no rtti flag was passed,
  error if -fno-rtti was passed.

I also added a more general warning for when -fno-rtti is the default
(currently it's only on the PS4) and the vptr sanitizer is on.

Fixed a few tests, due to different flag order when passing cc1 arguments.

Reviewers: chandlerc

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D7250

llvm-svn: 227518

9 years agoRemove unnecessary calls to getSubtarget/getSubtargetImpl from the
Eric Christopher [Thu, 29 Jan 2015 23:46:42 +0000 (23:46 +0000)]
Remove unnecessary calls to getSubtarget/getSubtargetImpl from the
MSP430 backend.

llvm-svn: 227517

9 years agoRemove unused header.
Eric Christopher [Thu, 29 Jan 2015 23:46:39 +0000 (23:46 +0000)]
Remove unused header.

llvm-svn: 227516

9 years agoChange SmallVector param to the more general ArrayRef; NFCI
Sanjay Patel [Thu, 29 Jan 2015 23:35:04 +0000 (23:35 +0000)]
Change SmallVector param to the more general ArrayRef; NFCI

llvm-svn: 227514

9 years agoGet rid of a few calls through the subtarget to get the ABI
Eric Christopher [Thu, 29 Jan 2015 23:27:45 +0000 (23:27 +0000)]
Get rid of a few calls through the subtarget to get the ABI
that's actually sitting on the target machine.

llvm-svn: 227513

9 years agoRemove most of the TargetMachine::getSubtarget/getSubtargetImpl
Eric Christopher [Thu, 29 Jan 2015 23:27:36 +0000 (23:27 +0000)]
Remove most of the TargetMachine::getSubtarget/getSubtargetImpl
calls that don't take a Function argument from Mips. Notable
exceptions: the AsmPrinter and MipsTargetObjectFile. The
latter needs to be fixed, and the former will be fixed when the
general AsmPrinter changes happen.

llvm-svn: 227512

9 years ago[LPM] Remove a PPC64 hack to try to work around a bad interaction
Chandler Carruth [Thu, 29 Jan 2015 23:26:37 +0000 (23:26 +0000)]
[LPM] Remove a PPC64 hack to try to work around a bad interaction
between the linker's TLS optimizations and Clang's TLS code generation.

For now, Clang has been changed to disable linker TLS optimizations
until it (and LLVM more generally) are emitting TLS code sequences
compatible with the old bugs found in the linkers. That's a better fix
to handle bootstrapping on that platform.

llvm-svn: 227511

9 years agoELF: Check StringRef::getAsInteger's return value.
Rui Ueyama [Thu, 29 Jan 2015 23:23:57 +0000 (23:23 +0000)]
ELF: Check StringRef::getAsInteger's return value.

getAsInteger may partially update its result argument. We need to
check function return value to handle errors reliably.

llvm-svn: 227510

9 years ago[compiler-rt] OS X: Update the CMake and Make builds to explicitely use libc++, mmaco...
Kuba Brecka [Thu, 29 Jan 2015 23:19:26 +0000 (23:19 +0000)]
[compiler-rt] OS X: Update the CMake and Make builds to explicitely use libc++, mmacosx-version-min and SDKs

In both CMake and Makefiles, we are inconsistent about the use of libstdc++ vs. libc++, SDKs and minimum deployment targets for OS X. Let's fix the detection of SDKs, and let's explicitely set that we link against libc++ and mmacosx-version-min is 10.7.

llvm-svn: 227509

9 years agox86: Remove the W64ALLOCA pseudo
Reid Kleckner [Thu, 29 Jan 2015 23:09:37 +0000 (23:09 +0000)]
x86: Remove the W64ALLOCA pseudo

This is just an alias for CALL64pcrel32, and we can just use that opcode
with explicit defs in the MI.

No functionality change.

llvm-svn: 227508

9 years ago[fuzzer] add -use_full_coverage_set=1 which solves FullCoverageSetTest. This does...
Kostya Serebryany [Thu, 29 Jan 2015 23:01:07 +0000 (23:01 +0000)]
[fuzzer] add -use_full_coverage_set=1 which solves FullCoverageSetTest. This does not scale very well yet, but might be a good start.

llvm-svn: 227507

9 years ago[AArch64] Add INITIALIZE_PASS macros to AArch64A57FPLoadBalancing.
Chad Rosier [Thu, 29 Jan 2015 22:57:37 +0000 (22:57 +0000)]
[AArch64] Add INITIALIZE_PASS macros to AArch64A57FPLoadBalancing.

These are needed so this pass will produce output when
e.g. -print-after-all is used.

Phabricator Review: http://reviews.llvm.org/D7264
Patch by Geoff Berry <gberry@codeaurora.org>!

llvm-svn: 227506

9 years agoAdd an assert to check atom ordinal.
Rui Ueyama [Thu, 29 Jan 2015 22:39:43 +0000 (22:39 +0000)]
Add an assert to check atom ordinal.

No two atoms are allowed to have the same file and atom ordinals.
If there's such atoms, there's a bug in the reader.

llvm-svn: 227504

9 years agoUpdate comments to use unreachable instead of llvm.trap, as implemented now
Reid Kleckner [Thu, 29 Jan 2015 22:33:00 +0000 (22:33 +0000)]
Update comments to use unreachable instead of llvm.trap, as implemented now

win64: Call __chkstk through a register with the large code model

Fixes half of PR18582. True dynamic allocas will still have a
CALL64pcrel32 which will fail.

Reviewers: majnemer

Differential Revision: http://reviews.llvm.org/D7267

llvm-svn: 227503

9 years agoUpdate comments to use unreachable instead of llvm.trap, as implemented now
Reid Kleckner [Thu, 29 Jan 2015 22:32:26 +0000 (22:32 +0000)]
Update comments to use unreachable instead of llvm.trap, as implemented now

llvm-svn: 227502

9 years agoELF: Remove dead code.
Rui Ueyama [Thu, 29 Jan 2015 22:18:28 +0000 (22:18 +0000)]
ELF: Remove dead code.

_runLayoutPass is always true. No way to set a new value to the
member variable.

llvm-svn: 227501

9 years agoPECOFF: Do not use LayoutPass and instead use simpler one.
Rui Ueyama [Thu, 29 Jan 2015 22:12:50 +0000 (22:12 +0000)]
PECOFF: Do not use LayoutPass and instead use simpler one.

The LayoutPass is one of the slowest pass. This change is to skip
that pass. This change not only improve performance but also improve
maintainability of the code because the LayoutPass is pretty complex.

Previously we used the LayoutPass to sort all atoms in a specific way,
and reorder them again for PE/COFF in GroupedSectionPass.

I spent time on improving and fixing bugs in the LayoutPass (e.g.
r193029), but the pass is still hard to understand and hard to use.
It's better not to depend on that if we don't need. For PE/COFF, we
just wanted to sort atoms in the same order as the file order in the
command line.

The feature we used in the LayoutPass is now simplified to
compareByPosition function in OrderPass.cpp. The function is just 5
lines.

This patch changes the order of final output because it changes the
sort order a bit. The output is still correct, though.

llvm-svn: 227500

9 years ago[LoopReroll] Alter the data structures used during reroll validation.
James Molloy [Thu, 29 Jan 2015 21:52:03 +0000 (21:52 +0000)]
[LoopReroll] Alter the data structures used during reroll validation.

The validation algorithm used an incremental approach, building each
iteration's data structures temporarily, validating them, then
adding them to a global set.

This does not scale well to having multiple sets of Root nodes, as the
set of instructions used in each iteration is the union over all
the root nodes. Therefore, refactor the logic to create a single, simple
container to which later logic then refers. This makes it simpler
control-flow wise to make the creation of the container more complex with
the addition of multiple root sets.

llvm-svn: 227499

9 years ago[Hexagon] Organizing tests and adding a few missing jump instruction encodings.
Colin LeMahieu [Thu, 29 Jan 2015 21:47:15 +0000 (21:47 +0000)]
[Hexagon] Organizing tests and adding a few missing jump instruction encodings.

llvm-svn: 227498

9 years ago[CMake] Get rid of TARGET_64_BIT_CFLAGS: explicitly list required flags for each...
Alexey Samsonov [Thu, 29 Jan 2015 21:32:34 +0000 (21:32 +0000)]
[CMake] Get rid of TARGET_64_BIT_CFLAGS: explicitly list required flags for each architecture.

llvm-svn: 227496

9 years ago[Hexagon] Adding missing instruction encodings and tests.
Colin LeMahieu [Thu, 29 Jan 2015 21:30:22 +0000 (21:30 +0000)]
[Hexagon] Adding missing instruction encodings and tests.

llvm-svn: 227495

9 years ago[Hexagon] Adding alu vector instructions
Colin LeMahieu [Thu, 29 Jan 2015 21:09:30 +0000 (21:09 +0000)]
[Hexagon] Adding alu vector instructions

llvm-svn: 227493

9 years ago[GVN] don't propagate equality comparisons of FP zero (PR22376)
Sanjay Patel [Thu, 29 Jan 2015 20:51:49 +0000 (20:51 +0000)]
[GVN] don't propagate equality comparisons of FP zero (PR22376)

In http://reviews.llvm.org/D6911, we allowed GVN to propagate FP equalities
to allow some simple value range optimizations. But that introduced a bug
when comparing to -0.0 or 0.0: these compare equal even though they are not
bitwise identical.

This patch disallows propagating zero constants in equality comparisons.
Fixes: http://llvm.org/bugs/show_bug.cgi?id=22376

Differential Revision: http://reviews.llvm.org/D7257

llvm-svn: 227491

9 years agoAll signal handlers are required to have C language linkage in C++. This does not...
Aaron Ballman [Thu, 29 Jan 2015 20:48:34 +0000 (20:48 +0000)]
All signal handlers are required to have C language linkage in C++. This does not fix all signal handlers, but does fix the most recent one.

llvm-svn: 227490

9 years agoAdd missing test from r227488
David Blaikie [Thu, 29 Jan 2015 20:25:46 +0000 (20:25 +0000)]
Add missing test from r227488

llvm-svn: 227489

9 years agoMatching ARM change for r227481: DebugInfo: Teach Fast ISel to respect the debug...
David Blaikie [Thu, 29 Jan 2015 20:23:47 +0000 (20:23 +0000)]
Matching ARM change for r227481: DebugInfo: Teach Fast ISel to respect the debug location of comparisons in jumps.

llvm-svn: 227488

9 years agoRefactor test to be reused across architectures
David Blaikie [Thu, 29 Jan 2015 20:21:24 +0000 (20:21 +0000)]
Refactor test to be reused across architectures

llvm-svn: 227487

9 years agoRemove erroneous REQUIRES: object-emission for asm test.
David Blaikie [Thu, 29 Jan 2015 20:17:15 +0000 (20:17 +0000)]
Remove erroneous REQUIRES: object-emission for asm test.

llvm-svn: 227486

9 years agoMissing test case for r227481
David Blaikie [Thu, 29 Jan 2015 19:40:02 +0000 (19:40 +0000)]
Missing test case for r227481

llvm-svn: 227485

9 years agoR600/SI: Implement enableAggressiveFMAFusion
Matt Arsenault [Thu, 29 Jan 2015 19:34:32 +0000 (19:34 +0000)]
R600/SI: Implement enableAggressiveFMAFusion

Add tests for the various combines. This should
always be at least cycle neutral on all subtargets for f64,
and faster on some. For f32 we should prefer selecting
v_mad_f32 over v_fma_f32.

llvm-svn: 227484

9 years agoR600/SI: Add subtarget feature for if f32 fma is fast
Matt Arsenault [Thu, 29 Jan 2015 19:34:25 +0000 (19:34 +0000)]
R600/SI: Add subtarget feature for if f32 fma is fast

llvm-svn: 227483

9 years agoR600/SI: Fix tonga's basic scheduling model
Matt Arsenault [Thu, 29 Jan 2015 19:34:18 +0000 (19:34 +0000)]
R600/SI: Fix tonga's basic scheduling model

llvm-svn: 227482

9 years agoDebugInfo: Teach Fast ISel to respect the debug location of comparisons in jumps
David Blaikie [Thu, 29 Jan 2015 19:09:18 +0000 (19:09 +0000)]
DebugInfo: Teach Fast ISel to respect the debug location of comparisons in jumps

The use of the DbgLoc in FastISel is probably something we should fix.
It's prone to leaking the wrong location into instructions - we should
have a clear chain of custody from the debug location of an IR
Instruction to that of a MachineInstr to avoid such leakage.

llvm-svn: 227481

9 years ago[PowerPC] Work around TLS linker bug
Ulrich Weigand [Thu, 29 Jan 2015 19:08:51 +0000 (19:08 +0000)]
[PowerPC] Work around TLS linker bug

Work around a bug in GNU ld (and gold) linker versions up to 2.25
that may mis-optimize code generated by this version of clang/LLVM
to access general-dynamic or local-dynamic TLS variables.

Bug is fixed here:
https://sourceware.org/ml/binutils/2015-01/msg00318.html

llvm-svn: 227480

9 years agoDisable compilation of llvm-pdbdump for versions of MSVC < 2013.
Zachary Turner [Thu, 29 Jan 2015 18:44:14 +0000 (18:44 +0000)]
Disable compilation of llvm-pdbdump for versions of MSVC < 2013.

Certain aspects of llvm-pdbdump require language support only present in
MSVC 2013 and higher.  Since this is strictly a utility, and since we hope
to drop support for MSVC 2012 soon, don't build this unless MSVC 2013 or
higher.

llvm-svn: 227479

9 years ago[fuzzer] fix warning in a test
Kostya Serebryany [Thu, 29 Jan 2015 18:13:36 +0000 (18:13 +0000)]
[fuzzer] fix warning in a test

llvm-svn: 227478

9 years agoCompute the ELF SectionKind from the flags.
Rafael Espindola [Thu, 29 Jan 2015 17:33:21 +0000 (17:33 +0000)]
Compute the ELF SectionKind from the flags.

Any code creating an MCSectionELF knows ELF and already provides the flags.

SectionKind is an abstraction used by common code that uses a plain
MCSection.

Use the flags to compute the SectionKind. This removes a lot of
guessing and boilerplate from the MCSectionELF construction.

llvm-svn: 227476

9 years ago[Hexagon] Deleting old variants of intrinsics and adding missing tests.
Colin LeMahieu [Thu, 29 Jan 2015 17:26:56 +0000 (17:26 +0000)]
[Hexagon] Deleting old variants of intrinsics and adding missing tests.

llvm-svn: 227474

9 years ago[asan] Add one more wait-for-device in the Android setup script.
Evgeniy Stepanov [Thu, 29 Jan 2015 17:24:21 +0000 (17:24 +0000)]
[asan] Add one more wait-for-device in the Android setup script.

llvm-svn: 227473

9 years agoThis reverts commit r227432, r227438 and r227448.
Rafael Espindola [Thu, 29 Jan 2015 17:22:53 +0000 (17:22 +0000)]
This reverts commit r227432, r227438 and r227448.

It should bring the bots back.

Original messagses:

r227448:
   Remove unnecessary default.

r227438:
   Fix Index/print-type.cpp test following r227432.

r227432:
    libclang: Add three functions useful for dealing with anonymous fields:
       clang_Cursor_getOffsetOfField
       clang_Cursor_isAnonymous
       clang_Type_visitFields
    Python: Add corresponding methods for dealing with anonymous fields.

    Patch by Loïc Jaquemet

llvm-svn: 227472

9 years ago[lto] Disable dialog boxes on crash on Windows.
Michael J. Spencer [Thu, 29 Jan 2015 17:20:41 +0000 (17:20 +0000)]
[lto] Disable dialog boxes on crash on Windows.

This has to be done in the DLL because the state doesn't cross DLL boundaries.

llvm-svn: 227471

9 years ago[Support][Windows] Unify dialog box suppression and print stack traces on abort.
Michael J. Spencer [Thu, 29 Jan 2015 17:20:29 +0000 (17:20 +0000)]
[Support][Windows] Unify dialog box suppression and print stack traces on abort.

llvm-svn: 227470

9 years agoPin the libiomp5.dll for the lifetime of application, Windows-specific
Andrey Churbanov [Thu, 29 Jan 2015 17:18:20 +0000 (17:18 +0000)]
Pin the libiomp5.dll for the lifetime of application, Windows-specific

llvm-svn: 227469

9 years ago[fuzzer] minor cleanup based on reviews: remove redundant includes, fix a copy-pasto...
Kostya Serebryany [Thu, 29 Jan 2015 17:16:23 +0000 (17:16 +0000)]
[fuzzer] minor cleanup based on reviews: remove redundant includes, fix a copy-pasto in tests

llvm-svn: 227468

9 years agoenable environment variable KMP_PLACE_THREADS also for non-MIC architectures
Andrey Churbanov [Thu, 29 Jan 2015 17:14:58 +0000 (17:14 +0000)]
enable environment variable KMP_PLACE_THREADS also for non-MIC architectures

llvm-svn: 227467

9 years ago[fuzzer] add FAQ section to the README.txt
Kostya Serebryany [Thu, 29 Jan 2015 17:11:30 +0000 (17:11 +0000)]
[fuzzer] add FAQ section to the README.txt

llvm-svn: 227466

9 years agoReverting r227453, which adds back the fuzzer library. Now excluding the clang-format...
Aaron Ballman [Thu, 29 Jan 2015 16:58:53 +0000 (16:58 +0000)]
Reverting r227453, which adds back the fuzzer library. Now excluding the clang-format fuzzer functionality based on LLVM_USE_SANITIZE_COVERAGE being set or unset.

llvm-svn: 227465

9 years agoReverting r227452, which adds back the fuzzer library. Now excluding the fuzzer libra...
Aaron Ballman [Thu, 29 Jan 2015 16:58:29 +0000 (16:58 +0000)]
Reverting r227452, which adds back the fuzzer library. Now excluding the fuzzer library based on LLVM_USE_SANITIZE_COVERAGE being set or unset.

llvm-svn: 227464

9 years ago[Hexagon] Adding CR intrinsic tests.
Colin LeMahieu [Thu, 29 Jan 2015 16:55:37 +0000 (16:55 +0000)]
[Hexagon] Adding CR intrinsic tests.

llvm-svn: 227463

9 years agoR600/SI: Remove stray debug statements
Tom Stellard [Thu, 29 Jan 2015 16:55:28 +0000 (16:55 +0000)]
R600/SI: Remove stray debug statements

llvm-svn: 227462

9 years agoR600/SI: Define a schedule model and enable the generic machine scheduler
Tom Stellard [Thu, 29 Jan 2015 16:55:25 +0000 (16:55 +0000)]
R600/SI: Define a schedule model and enable the generic machine scheduler

The schedule model is not complete yet, and could be improved.

llvm-svn: 227461

9 years ago[Hexagon] Deleting unused classes.
Colin LeMahieu [Thu, 29 Jan 2015 16:35:38 +0000 (16:35 +0000)]
[Hexagon] Deleting unused classes.

llvm-svn: 227460

9 years agoOops -- accidentally commit some debug code! Removing that code; NFC (this time for...
Aaron Ballman [Thu, 29 Jan 2015 16:18:59 +0000 (16:18 +0000)]
Oops -- accidentally commit some debug code! Removing that code; NFC (this time for real).

llvm-svn: 227459

9 years ago[X86] Use single add/sub for large stack offsets
Robert Lougher [Thu, 29 Jan 2015 16:18:29 +0000 (16:18 +0000)]
[X86] Use single add/sub for large stack offsets

For large stack offsets the compiler generates multiple immediate mode
sub/add instructions in the prologue/epilogue.  This patch makes the
compiler place the final amount to be added/subtracted into a register,
which is then added/substracted with a single operation.

Differential Revision: http://reviews.llvm.org/D7226

llvm-svn: 227458

9 years ago[Hexagon] Adding XTYPE/PRED intrinsic tests. Converting predicate types to i32 inste...
Colin LeMahieu [Thu, 29 Jan 2015 16:08:43 +0000 (16:08 +0000)]
[Hexagon] Adding XTYPE/PRED intrinsic tests.  Converting predicate types to i32 instead of i1.

llvm-svn: 227457

9 years agoAttempting to fix a build issue with MSVC 2012; NFC
Aaron Ballman [Thu, 29 Jan 2015 16:02:06 +0000 (16:02 +0000)]
Attempting to fix a build issue with MSVC 2012; NFC

llvm-svn: 227456

9 years ago[PowerPC] Complete setting the baseline for ppc64le
Bill Schmidt [Thu, 29 Jan 2015 15:59:09 +0000 (15:59 +0000)]
[PowerPC] Complete setting the baseline for ppc64le

Patch by Nemanja Ivanovic.

As was uncovered by the failing test case (when run on non-PPC
platforms), the feature set when compiling with -march=ppc64le was not
being picked up. This change ensures that if the -mcpu option is not
specified, the correct feature set is picked up regardless of whether
we are on PPC or not.

llvm-svn: 227455

9 years agofix that sets proc-bind-var to proc_bind_false if affinity is not supported
Andrey Churbanov [Thu, 29 Jan 2015 15:52:20 +0000 (15:52 +0000)]
fix that sets proc-bind-var to proc_bind_false if affinity is not supported

llvm-svn: 227454

9 years agoTemporarily reverting the fuzzer library as it causes too many build issues for MSVC...
Aaron Ballman [Thu, 29 Jan 2015 15:49:46 +0000 (15:49 +0000)]
Temporarily reverting the fuzzer library as it causes too many build issues for MSVC users. This reverts: 227354

llvm-svn: 227453

9 years agoTemporarily reverting the fuzzer library as it causes too many build issues for MSVC...
Aaron Ballman [Thu, 29 Jan 2015 15:49:22 +0000 (15:49 +0000)]
Temporarily reverting the fuzzer library as it causes too many build issues for MSVC users. This reverts: 227445, 227395, 227389, 227357, 227254, 227252

llvm-svn: 227452

9 years agofixing typo in error message
Andrey Churbanov [Thu, 29 Jan 2015 15:49:22 +0000 (15:49 +0000)]
fixing typo in error message

llvm-svn: 227451

9 years agofixing mistake in kmp_get_affinity_max_proc() api function
Andrey Churbanov [Thu, 29 Jan 2015 15:48:21 +0000 (15:48 +0000)]
fixing mistake in kmp_get_affinity_max_proc() api function

llvm-svn: 227450

9 years agofixing the Fortran modules dependencies
Andrey Churbanov [Thu, 29 Jan 2015 15:43:48 +0000 (15:43 +0000)]
fixing the Fortran modules dependencies

llvm-svn: 227449

9 years agoRemove unnecessary default.
Francois Pichet [Thu, 29 Jan 2015 15:42:56 +0000 (15:42 +0000)]
Remove unnecessary default.

llvm-svn: 227448

9 years agoadding the jobs variable for parallel build
Andrey Churbanov [Thu, 29 Jan 2015 15:37:15 +0000 (15:37 +0000)]
adding the jobs variable for parallel build

llvm-svn: 227447

9 years agoMake the test actually test what it's supposed to test. Add a test for the from memor...
Alex Rosenberg [Thu, 29 Jan 2015 15:19:54 +0000 (15:19 +0000)]
Make the test actually test what it's supposed to test. Add a test for the from memory variant of vcvtph2ps for 256-bit.

llvm-svn: 227446

9 years agoAdding missing #includes to try to get this to compile on Windows with Visual Studio.
Aaron Ballman [Thu, 29 Jan 2015 15:19:13 +0000 (15:19 +0000)]
Adding missing #includes to try to get this to compile on Windows with Visual Studio.

llvm-svn: 227445

9 years ago[clang-tidy] Fix some false positives in google-readability-casting
Alexander Kornienko [Thu, 29 Jan 2015 15:17:13 +0000 (15:17 +0000)]
[clang-tidy] Fix some false positives in google-readability-casting

Summary:
Ignore C-style casts in extern "C" {} sections. Be more careful when
detecting redundant casts between typedefs to the same type - emit a more
specific warning and don't automatically fix them.

Reviewers: klimek

Reviewed By: klimek

Subscribers: curdeius, cfe-commits

Differential Revision: http://reviews.llvm.org/D7247

llvm-svn: 227444

9 years ago[xcore] Make the exceptions test actually check for the absence of -fexceptions in...
Filipe Cabecinhas [Thu, 29 Jan 2015 15:03:36 +0000 (15:03 +0000)]
[xcore] Make the exceptions test actually check for the absence of -fexceptions in the proper place

llvm-svn: 227443

9 years agoRemove unused tokens in the ll lexer.
Sean Silva [Thu, 29 Jan 2015 14:45:09 +0000 (14:45 +0000)]
Remove unused tokens in the ll lexer.

Patch by Robin Eklind!

llvm-svn: 227442

9 years agoUse isMergeableConst now that it is sane.
Rafael Espindola [Thu, 29 Jan 2015 14:23:28 +0000 (14:23 +0000)]
Use isMergeableConst now that it is sane.

llvm-svn: 227441

9 years agoRemove MergeableConst.
Rafael Espindola [Thu, 29 Jan 2015 14:12:41 +0000 (14:12 +0000)]
Remove MergeableConst.

Only the specific ones (MergeableConst4, MergeableConst8, MergeableConst16) are
handled specially.

llvm-svn: 227440

9 years ago[LoopReroll] Refactor most of reroll() into a helper class
James Molloy [Thu, 29 Jan 2015 13:48:05 +0000 (13:48 +0000)]
[LoopReroll] Refactor most of reroll() into a helper class

reroll() was slightly monolithic and a pain to modify. Refactor
a bunch of its state from local variables to member variables
of a helper class, and do some trivial simplification while we're
there.

llvm-svn: 227439

9 years agoFix Index/print-type.cpp test following r227432.
Francois Pichet [Thu, 29 Jan 2015 13:33:44 +0000 (13:33 +0000)]
Fix Index/print-type.cpp test following r227432.

llvm-svn: 227438

9 years agoCleanup a few tests on sse4a machines and FileCheckize along the way.
Alex Rosenberg [Thu, 29 Jan 2015 13:31:32 +0000 (13:31 +0000)]
Cleanup a few tests on sse4a machines and FileCheckize along the way.

llvm-svn: 227437

9 years agoEHPrepare: Remove leftover initialization code for DomTrees.
Benjamin Kramer [Thu, 29 Jan 2015 13:26:50 +0000 (13:26 +0000)]
EHPrepare: Remove leftover initialization code for DomTrees.

While there modernize some loops. NFC.

llvm-svn: 227436

9 years agoUse enum values. NFC.
Rafael Espindola [Thu, 29 Jan 2015 13:25:44 +0000 (13:25 +0000)]
Use enum values. NFC.

llvm-svn: 227435