David Majnemer [Wed, 2 Apr 2014 23:17:29 +0000 (23:17 +0000)]
CodeGen: Emit some functions as weak_odr under -fms-compatibility
Summary:
MSVC always emits inline functions marked with the extern storage class
specifier. The result is something similar to the opposite of
__attribute__((gnu_inline)).
This extension is also available in C.
This fixes PR19264.
Reviewers: rnk, rsmith
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D3207
llvm-svn: 205485
Juergen Ributzka [Wed, 2 Apr 2014 23:06:22 +0000 (23:06 +0000)]
Add test case for [Constant Hoisting] Erase dead cast instructions (r204538).
llvm-svn: 205484
Renato Golin [Wed, 2 Apr 2014 23:03:28 +0000 (23:03 +0000)]
ARM Linux support
llvm-svn: 205483
Ed Maste [Wed, 2 Apr 2014 23:01:04 +0000 (23:01 +0000)]
Add decorator for pr19311 on FreeBSD
A breakpoint at the resume address for "continue" is skipped. This is
presumably the root cause for the Linux failure as well.
llvm-svn: 205482
Lang Hames [Wed, 2 Apr 2014 22:59:58 +0000 (22:59 +0000)]
[CodeGen] Teach the peephole optimizer to remember (and exploit) all folding
opportunities in the current basic block, rather than just the last one seen.
<rdar://problem/
16478629>
llvm-svn: 205481
Jim Ingham [Wed, 2 Apr 2014 22:53:21 +0000 (22:53 +0000)]
Workaround for collision between enum members in LLVM's MachO.h and system headers
on Mac OS X (in particular mach/machine.h).
<rdar://problem/
16494607>
llvm-svn: 205480
Rafael Espindola [Wed, 2 Apr 2014 22:52:46 +0000 (22:52 +0000)]
Fix a nomenclature error in llvm-nm.
What llvm-nm prints depends on the file format. On ELF for example, if the
file is relocatable, it prints offsets. If it is not, it prints addresses.
Since it doesn't really need to care what it is that it is printing, use the
generic term value.
Fix or implement getSymbolValue to keep llvm-nm working.
llvm-svn: 205479
Pete Cooper [Wed, 2 Apr 2014 22:49:58 +0000 (22:49 +0000)]
Add ability to disable building LLVM utils
Patch by Chris Bieneman
llvm-svn: 205478
Fariborz Jahanian [Wed, 2 Apr 2014 22:49:42 +0000 (22:49 +0000)]
Objective-C [IRGen]. Add encoding for 'weak' attribute of a
'readonly' property. // rdar://
16136439
llvm-svn: 205477
Hal Finkel [Wed, 2 Apr 2014 22:43:49 +0000 (22:43 +0000)]
[PowerPC] Make PPCTTI::getMemoryOpCost call BasicTTI::getMemoryOpCost
PPCTTI::getMemoryOpCost will now make use of BasicTTI::getMemoryOpCost to
calculate the base cost of the memory access, and then adjust on top of that.
There is no functionality change from this modification, but it will become
important so that PPCTTI can take advantage of scalarization information for which
BasicTTI::getMemoryOpCost will account in the near future.
llvm-svn: 205476
Rui Ueyama [Wed, 2 Apr 2014 22:32:51 +0000 (22:32 +0000)]
Concatenate strings that are unnecessarily separated.
llvm-svn: 205475
Juergen Ributzka [Wed, 2 Apr 2014 22:21:01 +0000 (22:21 +0000)]
Add comments and test case for [DAG] Keep the opaque constant flag when performing unary constant folding operations (r204737).
llvm-svn: 205474
Adrian Prantl [Wed, 2 Apr 2014 22:17:30 +0000 (22:17 +0000)]
typo
llvm-svn: 205473
Lang Hames [Wed, 2 Apr 2014 22:06:16 +0000 (22:06 +0000)]
[X86] Make the VFMA*231 variants commutable and relax the alignment restrictions
on FMA3 memory operands. FMA3 instructions are VEX encoded, so they can load
from unaligned memory.
Testcase to follow, along with related patch.
<rdar://problem/
16478629>
llvm-svn: 205472
Duncan P. N. Exon Smith [Wed, 2 Apr 2014 22:05:57 +0000 (22:05 +0000)]
Revert "Reapply "LTO: add API to set strategy for -internalize""
This reverts commit r199244.
Conflicts:
include/llvm-c/lto.h
include/llvm/LTO/LTOCodeGenerator.h
lib/LTO/LTOCodeGenerator.cpp
llvm-svn: 205471
Rui Ueyama [Wed, 2 Apr 2014 21:57:29 +0000 (21:57 +0000)]
Minor cleanup.
llvm-svn: 205470
Rui Ueyama [Wed, 2 Apr 2014 21:49:27 +0000 (21:49 +0000)]
Remove unused fields/member functions from unit test.
llvm-svn: 205469
Juergen Ributzka [Wed, 2 Apr 2014 21:45:36 +0000 (21:45 +0000)]
Add comments and test case for [X86TTI] Make constant base pointers for GetElementPtr opaque (r204739).
llvm-svn: 205468
Richard Smith [Wed, 2 Apr 2014 21:44:35 +0000 (21:44 +0000)]
If a using-declaration names a class member, but appears outside a class, try
to suggest a different syntax to get the same effect.
llvm-svn: 205467
Rui Ueyama [Wed, 2 Apr 2014 21:39:44 +0000 (21:39 +0000)]
Remove unused include.
llvm-svn: 205466
Saleem Abdulrasool [Wed, 2 Apr 2014 21:22:03 +0000 (21:22 +0000)]
ARM: fixup tests to specify the target more explicitly
This changes the tests that were targeting ARM EABI to explicitly specify the
environment rather than relying on the default. This breaks with the new
Windows on ARM support when running the tests on Windows where the default
environment is no longer EABI.
Take the opportunity to avoid a pointless redirect (helps when trying to debug
with providing a command line invocation which can be copy and pasted) and
removing a few greps in favour of FileCheck.
llvm-svn: 205465
Juergen Ributzka [Wed, 2 Apr 2014 21:15:36 +0000 (21:15 +0000)]
Add test case for [Stackmaps][X86TTI] Fix think-o in getIntImmCost calculation (r204738).
llvm-svn: 205464
Rui Ueyama [Wed, 2 Apr 2014 21:02:44 +0000 (21:02 +0000)]
Simplify communication between Resolver and Input Graph.
Resolver is sending too much information to Input Graph than Input
Graph actually needs. In order to collect the detailed information,
which wouldn't be consumed by anyone, we have a good amount of code
in Resolver, Input Graph and Input Elements. This patch is to
simplify it. No functionality change.
Specifically, this patch replaces ResolverState enum with a boolean
value. The enum defines many bits to notify the progress about
linking to Input Graph using bit masks, however, what Input Graph
actually does is to compare a given value with 0. The details of
the bit mask is simply being ignored, so the efforts to collect
such data is wasted.
This patch also changes the name of the notification interface from
setResolverState to notifyProgress, to make it sounds more like
message passing style. It's not a setter but something to notify of
an update, so the new name should be more appropriate than before.
Differential Revision: http://llvm-reviews.chandlerc.com/D3267
llvm-svn: 205463
Greg Clayton [Wed, 2 Apr 2014 20:39:20 +0000 (20:39 +0000)]
Don’t #include "llvm/Support/MachO.h” as it isn’t needed here.
llvm-svn: 205462
Greg Clayton [Wed, 2 Apr 2014 20:38:03 +0000 (20:38 +0000)]
Don’t include “llvm/Support/MachO.h” as it isn’t needed here.
llvm-svn: 205461
Greg Clayton [Wed, 2 Apr 2014 20:36:22 +0000 (20:36 +0000)]
Don’t #include “llvm/Support/MachO.h” in a header file if we can avoid it.
llvm-svn: 205460
Saleem Abdulrasool [Wed, 2 Apr 2014 20:32:05 +0000 (20:32 +0000)]
ARM: update subtarget information for Windows on ARM
Update the subtarget information for Windows on ARM. This enables using the MC
layer to target Windows on ARM.
llvm-svn: 205459
Jim Grosbach [Wed, 2 Apr 2014 20:21:22 +0000 (20:21 +0000)]
Make a few more range-based loops use explicit types.
No functional change.
llvm-svn: 205458
Tobias Grosser [Wed, 2 Apr 2014 20:18:19 +0000 (20:18 +0000)]
Use explit types in foreach iterators
llvm-svn: 205457
Rafael Espindola [Wed, 2 Apr 2014 20:00:33 +0000 (20:00 +0000)]
Add back an assert that was lost in the ELFObjectFile.h split.
llvm-svn: 205456
Tom Stellard [Wed, 2 Apr 2014 19:53:29 +0000 (19:53 +0000)]
TargetLibraryInfo: Disable memcpy and memset on R600
There are no implementations of these for R600.
llvm-svn: 205455
Rui Ueyama [Wed, 2 Apr 2014 19:42:35 +0000 (19:42 +0000)]
Remove dead code.
llvm-svn: 205454
Jim Grosbach [Wed, 2 Apr 2014 19:28:18 +0000 (19:28 +0000)]
Simplify resolveFrameIndex() signature.
Just pass a MachineInstr reference rather than an MBB iterator.
Creating a MachineInstr& is the first thing every implementation did
anyway.
llvm-svn: 205453
Jim Grosbach [Wed, 2 Apr 2014 19:28:13 +0000 (19:28 +0000)]
ARM: cortex-m0 doesn't support unaligned memory access.
Unlike other v6+ processors, cortex-m0 never supports unaligned accesses.
From the v6m ARM ARM:
"A3.2 Alignment support: ARMv6-M always generates a fault when an unaligned
access occurs."
rdar://
16491560
llvm-svn: 205452
Jim Grosbach [Wed, 2 Apr 2014 19:28:08 +0000 (19:28 +0000)]
Make some range based loop types more explicit.
No functional change, but more readable code.
llvm-svn: 205451
Enrico Granata [Wed, 2 Apr 2014 18:55:29 +0000 (18:55 +0000)]
rdar://
16424649
Clean up the DynamicValueTestCase
Namely, I split off the part of the test that validates child counts to a separate test
llvm-svn: 205450
Kai Nacke [Wed, 2 Apr 2014 18:40:43 +0000 (18:40 +0000)]
[mips] Add more Octeon cnMips instructions
Adds the instructions ext/ext32/cins/cins32.
It also changes pop/dpop to accept the two operand version and
adds a simple pattern to generate baddu.
Tests for the two operand versions (including baddu/dmul/dpop/pop)
and the code generation pattern for baddu are included.
Reviewed by: Daniel.Sanders@imgtec.com
llvm-svn: 205449
Richard Smith [Wed, 2 Apr 2014 18:28:36 +0000 (18:28 +0000)]
PR19305: Don't issue -Wunused-variable warnings on variable templates. It's not
meaningful to odr-use the VarDecl inside a variable template. (Separately, it'd
be nice to track referenced-ness for templates, and warn on unused ones, but
that's really a distinct issue...)
Move a test that generates and tests a warning-suppressing error out to its own
test file, so it doesn't have weird effects on the other tests in the same file.
llvm-svn: 205448
David Blaikie [Wed, 2 Apr 2014 18:21:09 +0000 (18:21 +0000)]
DebugInfo: Include default template arguments in template type names
This was committed 4 years ago in 108916 with insufficient testing to
explain why the "getTypeAsWritten" case was appropriate. Experience says
that it isn't - the presence or absence of an explicit instantiation
declaration was causing this code to generate either i<int> or i<int,
int>.
That didn't seem to be a useful distinction, and omitting the template
arguments was destructive to debuggers being able to associate the two
types across translation units or across compilers (GCC, reasonably,
never omitted the arguments).
llvm-svn: 205447
Jim Grosbach [Wed, 2 Apr 2014 18:00:59 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for and explicit 'override' in STP cleanup.
No functional change intended.
llvm-svn: 205446
Jim Grosbach [Wed, 2 Apr 2014 18:00:56 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops in constant promotion.
No functional change intended.
llvm-svn: 205445
Jim Grosbach [Wed, 2 Apr 2014 18:00:53 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops in load/store pair optimizer.
No functional change intended.
llvm-svn: 205444
Jim Grosbach [Wed, 2 Apr 2014 18:00:51 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops in target lowering.
No functional change intended.
llvm-svn: 205443
Jim Grosbach [Wed, 2 Apr 2014 18:00:49 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops in frame lowering.
No functional change intended.
llvm-svn: 205442
Jim Grosbach [Wed, 2 Apr 2014 18:00:46 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops in pseudo expansion.
No functional change intended.
llvm-svn: 205441
Jim Grosbach [Wed, 2 Apr 2014 18:00:44 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops for LOH
No functional change intended.
llvm-svn: 205440
Jim Grosbach [Wed, 2 Apr 2014 18:00:41 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops TLS cleanup.
No functional change intended.
llvm-svn: 205439
Jim Grosbach [Wed, 2 Apr 2014 18:00:39 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops in branch relaxation.
No functional change intended.
llvm-svn: 205438
Jim Grosbach [Wed, 2 Apr 2014 18:00:36 +0000 (18:00 +0000)]
[C++11,ARM64] Range based for loops in address type promotion.
No functional change intended.
llvm-svn: 205437
Roman Divacky [Wed, 2 Apr 2014 17:27:03 +0000 (17:27 +0000)]
Extend the SSE2 comment lexing to AVX2. Only 16byte align when not on AVX2.
This provides some 3% speedup when preprocessing gcc.c as a single file.
llvm-svn: 205436
Quentin Colombet [Wed, 2 Apr 2014 16:40:49 +0000 (16:40 +0000)]
[ARM64][CollectLOH] Remove the link to the radar from the comments.
llvm-svn: 205435
Simon Atanasyan [Wed, 2 Apr 2014 16:34:54 +0000 (16:34 +0000)]
[yaml2obj][ELF] Convert some static functions into class members to
reduce number of arguments.
No functional changes.
llvm-svn: 205434
Simon Atanasyan [Wed, 2 Apr 2014 16:34:48 +0000 (16:34 +0000)]
[yaml2obj][ELF] Remove unused typedef.
No functional changes.
llvm-svn: 205433
Simon Atanasyan [Wed, 2 Apr 2014 16:34:40 +0000 (16:34 +0000)]
[yaml2obj][ELF] Move section index to the ELFState class.
No functional changes.
llvm-svn: 205432
Simon Atanasyan [Wed, 2 Apr 2014 16:34:34 +0000 (16:34 +0000)]
[yaml2obj][ELF] Remove relationship between ELFState
and ContiguousBlobAccumulator classes. Pass ContiguousBlobAccumulator to
the handleSymtabSectionHeader function directly.
No functional changes.
llvm-svn: 205431
Oliver Stannard [Wed, 2 Apr 2014 16:10:33 +0000 (16:10 +0000)]
ARM: Add support for segmented stacks
Patch by Alex Crichton, ILyoan, Luqman Aden and Svetoslav.
llvm-svn: 205430
Adrian Prantl [Wed, 2 Apr 2014 15:49:45 +0000 (15:49 +0000)]
clarify comment
llvm-svn: 205429
Adrian Prantl [Wed, 2 Apr 2014 15:49:37 +0000 (15:49 +0000)]
fix a comment to use ASCII aprostrophes.
llvm-svn: 205428
Ed Maste [Wed, 2 Apr 2014 14:45:46 +0000 (14:45 +0000)]
Add annotation for failure from new Attach/Resume test case on FreeBSD
llvm-svn: 205427
Tim Northover [Wed, 2 Apr 2014 14:39:11 +0000 (14:39 +0000)]
ARM64: use GOT for weak symbols & PIC.
Weak symbols cannot use the small code model's usual ADRP sequences since the
instruction simply may not be able to encode a value of 0.
This redirects them to use the GOT, which hopefully linkers are able to cope
with even in the static relocation model.
llvm-svn: 205426
Tim Northover [Wed, 2 Apr 2014 14:39:07 +0000 (14:39 +0000)]
ARM64: fix lowering of fp128 fptosi/fptoui
We were creating libcall nodes that returned an MVT::f128, when these
particular operations actually return an int of some stripe.
llvm-svn: 205425
Tim Northover [Wed, 2 Apr 2014 14:39:02 +0000 (14:39 +0000)]
SLPVectorizer: compare entire intrinsic for SLP compatibility.
Some Intrinsics are overloaded to the extent that return type equality (all
that's been checked up to now) does not guarantee that the arguments are the
same. In these cases SLP vectorizer should not recurse into the operands, which
can be achieved by comparing them as "Function *" rather than simply the ID.
llvm-svn: 205424
Tim Northover [Wed, 2 Apr 2014 14:38:58 +0000 (14:38 +0000)]
ARM64: make sure first argument to INSERT_SUBVECTOR has right type.
Again, coalescing and other optimisations swiftly made the MachineInstrs
consistent again, but when compiled at -O0 a bad INSERT_SUBREGISTER was
produced.
llvm-svn: 205423
Tim Northover [Wed, 2 Apr 2014 14:38:54 +0000 (14:38 +0000)]
ARM64: convert fp16 narrowing ISel to pseudo-instruction
The previous attempt was fine with optimisations, but was actually rather
cavalier with its types. When compiled at -O0, it produced invalid COPY
MachineInstrs.
llvm-svn: 205422
Job Noorman [Wed, 2 Apr 2014 13:13:56 +0000 (13:13 +0000)]
Mark FPB as a reserved register when needed.
llvm-svn: 205421
Samuel Benzaquen [Wed, 2 Apr 2014 13:12:14 +0000 (13:12 +0000)]
Add matcher for ExprWithCleanups.
Summary: Add matcher for ExprWithCleanups.
Reviewers: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D3248
llvm-svn: 205420
Samuel Benzaquen [Wed, 2 Apr 2014 13:11:45 +0000 (13:11 +0000)]
Add support for named values in the parser.
Summary:
Add support for named values in the parser.
This allows injection of arbitrary constants using a custom Sema object.
Completions are not supported right now.
Will be used by clang_query to support the 'let' command.
Usage example:
clang_query> let unique_ptr recordDecl(hasName("unique_ptr"))
clang_query> match varDecl(hasType(unique_ptr))
Reviewers: klimek, pcc
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D3229
llvm-svn: 205419
Alexey Samsonov [Wed, 2 Apr 2014 13:09:22 +0000 (13:09 +0000)]
[ASan] Fix incompatible runtimes check: don't iterate /proc/self/maps on every call to __asan_init
llvm-svn: 205418
Evgeniy Stepanov [Wed, 2 Apr 2014 12:38:13 +0000 (12:38 +0000)]
[msan] Add missing test for r205413.
llvm-svn: 205417
Rafael Espindola [Wed, 2 Apr 2014 12:15:20 +0000 (12:15 +0000)]
Work around gold bug sourceware.org/PR16794.
llvm-svn: 205416
Evgeniy Stepanov [Wed, 2 Apr 2014 11:55:24 +0000 (11:55 +0000)]
[msan] Kill __msan_print_param_shadow.
It does not do what it's name says, and what it actually does is hard to
describe, and is not useful at all.
llvm-svn: 205415
Andreas Simbuerger [Wed, 2 Apr 2014 11:54:01 +0000 (11:54 +0000)]
Replace INVALID/INVALID_NOVERIFY with diagnostics.
This replaces the ancient INVALID/INVALID_NOVERIFY macros with a real
function.
The new invalid(..) function uses small diagnostic objects that are
generated on demand. We can store arbitrary additional information per
error type and generate useful debug/error messages on the fly.
Use it as follows:
if (/* Some error condition (ReportFoo) */)
invalid<ReportFoo>(Context, /*Assert=*/true/false,
(/* List of helpful diagnostic objects */));
Where ReportFoo is a subclass of RejectReason that is able to take the
list of helpful diagnostic objects in its constructor.
The implementation of invalid will create the report and fire
an assertion, if necessary.
llvm-svn: 205414
Evgeniy Stepanov [Wed, 2 Apr 2014 11:50:42 +0000 (11:50 +0000)]
[msan] Add __msan_check_mem_is_initialized.
An assert()-like function that checks that a memory range is fully initialized.
llvm-svn: 205413
Evgeniy Stepanov [Wed, 2 Apr 2014 11:06:35 +0000 (11:06 +0000)]
[msan] Precise origin handling in __unaligned_(load|store)*.
llvm-svn: 205412
Alexey Samsonov [Wed, 2 Apr 2014 09:36:36 +0000 (09:36 +0000)]
[ASan] One more attempt to fix Android build
llvm-svn: 205411
Evgeniy Stepanov [Wed, 2 Apr 2014 09:17:55 +0000 (09:17 +0000)]
[msan] clang-format several unit tests
llvm-svn: 205410
Renato Golin [Wed, 2 Apr 2014 09:03:43 +0000 (09:03 +0000)]
Remove duplicated DMB instructions
ARM specific optimiztion, finding places in ARM machine code where 2 dmbs
follow one another, and eliminating one of them.
Patch by Reinoud Elhorst.
llvm-svn: 205409
Daniel Jasper [Wed, 2 Apr 2014 08:52:06 +0000 (08:52 +0000)]
Fix regex bug in clang-tidy.
Also make tests slightly less dependent on default flags. Once we have
implemented configuration file support, we might want to store the
clang-tidy configuration for the tests there.
llvm-svn: 205408
Daniel Jasper [Wed, 2 Apr 2014 08:27:12 +0000 (08:27 +0000)]
Disable a few clang-tidy checks by default.
The goal is to be able to run clang-tidy on LLVM files without further
configuration for now. Once llvm.org/PR19306 is addressed, we can add a
configuration file instead and choose other defaults.
llvm-svn: 205407
Rui Ueyama [Wed, 2 Apr 2014 06:59:28 +0000 (06:59 +0000)]
Remove a function that's not defined.
llvm-svn: 205406
Andrew MacPherson [Wed, 2 Apr 2014 06:57:45 +0000 (06:57 +0000)]
Use getpgid() with waitpid() in case the process pgid is not equal to its pid, as is the case with a forked subprocess. Also a couple of fixes for unit test failures from Todd Fiala.
llvm-svn: 205405
Rui Ueyama [Wed, 2 Apr 2014 06:54:46 +0000 (06:54 +0000)]
s/llvm::dyn_cast/dyn_cast/
llvm-svn: 205404
Rui Ueyama [Wed, 2 Apr 2014 06:54:43 +0000 (06:54 +0000)]
Use cast<T> instead of dyn_cast<T>.
llvm-svn: 205403
Rui Ueyama [Wed, 2 Apr 2014 06:43:08 +0000 (06:43 +0000)]
Remove unused variables.
llvm-svn: 205402
Rui Ueyama [Wed, 2 Apr 2014 06:38:46 +0000 (06:38 +0000)]
Remove dead code.
llvm-svn: 205401
David Blaikie [Wed, 2 Apr 2014 06:18:49 +0000 (06:18 +0000)]
Some more anonymous namespace diagnostics to switch to ()
llvm-svn: 205400
Rui Ueyama [Wed, 2 Apr 2014 06:18:12 +0000 (06:18 +0000)]
Devirtualize Resolver.
No one inherits Resolver. Virtualizing the member functions was just
making it inefficient.
llvm-svn: 205399
David Blaikie [Wed, 2 Apr 2014 05:58:29 +0000 (05:58 +0000)]
Render anonymous entities as '(anonymous <thing>)' (and lambdas as '(lambda at ... )')
For namespaces, this is consistent with mangling and GCC's debug info
behavior. For structs, GCC uses <anonymous struct> but we prefer
consistency between all anonymous entities but don't want to confuse
them with template arguments, etc, so we'll just go with parens in all
cases.
llvm-svn: 205398
Rui Ueyama [Wed, 2 Apr 2014 05:57:19 +0000 (05:57 +0000)]
Remove dead code.
llvm-svn: 205397
David Blaikie [Wed, 2 Apr 2014 05:48:29 +0000 (05:48 +0000)]
Add the location of Decls to ast dump.
While investigating some debug info issues, Eric and I came across a
particular template case where the location of a decl was quite
different from the range of the same decl. It might've been rather
helpful if the dumper had actually showed us this.
llvm-svn: 205396
Shankar Easwaran [Wed, 2 Apr 2014 05:45:52 +0000 (05:45 +0000)]
[TODO] revisit features TODO in the driver
llvm-svn: 205395
Rui Ueyama [Wed, 2 Apr 2014 05:03:40 +0000 (05:03 +0000)]
Move nextFile() from LinkingContext to InputGraph.
LinkingContext and InputGraph are unnecessarily entangled. Most linker
input file data, e.g. the vector containing input files, the next index
of the input file, etc. are managed by InputGraph, but only the current
input file is for no obvious reason managed by LinkingContext.
This patch is to move code from LinkingContext to InputGraph to fix it.
It's now clear who's reponsible for managing input file state, which is
InputGraph, and LinkingContext is now free from that responsibility.
It improves the readability as we now have fewer dependencies between
classes. No functionality change.
Differential Revision: http://llvm-reviews.chandlerc.com/D3259
llvm-svn: 205394
Yaron Keren [Wed, 2 Apr 2014 04:27:51 +0000 (04:27 +0000)]
Added isTargetWindowsMSVC(), renamed isTargetMingw() to isTargetWindowsGNU()
and isTargetCygwin() to isTargetWindowsCygwin() to be consistent with the
four Windows environments in Triple.h.
Suggestion by Saleem Abdulrasool!
llvm-svn: 205393
Shankar Easwaran [Wed, 2 Apr 2014 03:57:39 +0000 (03:57 +0000)]
[ELF] Create Attribute class associated with Input files.
The attribute class holds positional attributes for Input files specified on the
command line for the Gnu flavor.
llvm-svn: 205392
Shankar Easwaran [Wed, 2 Apr 2014 03:57:37 +0000 (03:57 +0000)]
[ELF] Add -z muldefs option.
This adds -z muldefs option which is widely used over
--allow-multiple-definition.
This option is supported by the GNU linker.
llvm-svn: 205391
Saleem Abdulrasool [Wed, 2 Apr 2014 03:51:35 +0000 (03:51 +0000)]
sanitise sign comparisons
This is a mechanical change addressing the various sign comparison warnings that
are identified by both clang and gcc. This helps cleanup some of the warning
spew that occurs during builds.
llvm-svn: 205390
Saleem Abdulrasool [Wed, 2 Apr 2014 03:51:16 +0000 (03:51 +0000)]
build: ignore pragma warnings with GCC
GCC does not support '#pragma mark'. Add -Wno-unknown-pragmas if the compiler
supports it.
llvm-svn: 205389
Rui Ueyama [Wed, 2 Apr 2014 02:57:39 +0000 (02:57 +0000)]
Remove unused function.
llvm-svn: 205388
Hal Finkel [Wed, 2 Apr 2014 02:34:49 +0000 (02:34 +0000)]
[LoopVectorizer] Count dependencies of consecutive pointers as uniforms
For the purpose of calculating the cost of the loop at various vectorization
factors, we need to count dependencies of consecutive pointers as uniforms
(which means that the VF = 1 cost is used for all overall VF values).
For example, the TSVC benchmark function s173 has:
...
%3 = add nsw i64 %indvars.iv, 16000
%arrayidx8 = getelementptr inbounds %struct.GlobalData* @global_data, i64 0, i32 0, i64 %3
...
and we must realize that the add will be a scalar in order to correctly deduce
it to be profitable to vectorize this on PowerPC with VSX enabled. In fact, all
dependencies of a consecutive pointer must be a scalar (uniform), and so we
simply need to add all consecutive pointers to the worklist that currently
detects collects uniforms.
Fixes PR19296.
llvm-svn: 205387
David Blaikie [Wed, 2 Apr 2014 02:04:51 +0000 (02:04 +0000)]
Adjust comments regarding non-relocated abbrev offset in debug_info.dwo
I'm not sure the comment in the implementation really adds a lot of
value (it's clear that we emit zero when no symbol is provided, but it
doesn't explain why we would do that). Happy to iterate.
llvm-svn: 205386