Bill Wendling
9864a6557e
Inline the checks for mutually exclusive attributes since they're used in only one module.
...
llvm-svn: 165539
2012-10-09 20:11:19 +00:00
Argyrios Kyrtzidis
a7a108173f
Simplify the code using SmallVector::append(), as suggested by Benjamin Kramer.
...
llvm-svn: 165538
2012-10-09 20:08:43 +00:00
Chad Rosier
31753473a6
[driver] Remove redundant cases due to overlapping commits between Ted (r165531, 165532) and I
...
(r165534), but leave the test case in place.
llvm-svn: 165537
2012-10-09 20:01:58 +00:00
Richard Smith
e30752c93b
-fcatch-undefined-behavior: emit calls to the runtime library whenever one of the checks fails.
...
llvm-svn: 165536
2012-10-09 19:52:38 +00:00
Rafael Espindola
be5613c0a7
Enable response files in all tools. Patch by Liu, Yaxun (Sam). I have simplified
...
the test.
llvm-svn: 165535
2012-10-09 19:52:10 +00:00
Chad Rosier
3530682558
[driver] Remove the -W[no-][int-conversion|constant-conversion|enum-conversion]
...
options when clang invokes cc1plus for i386 kexts.
rdar://12459188
llvm-svn: 165534
2012-10-09 19:43:33 +00:00
Richard Smith
68b3014cd3
Add a runtime diagnostics library for Clang's -fcatch-undefined-behavior.
...
llvm-svn: 165533
2012-10-09 19:34:32 +00:00
Ted Kremenek
a88397d9ba
Don't forward -Wenum-conversion to cc1plus.
...
llvm-svn: 165532
2012-10-09 19:29:48 +00:00
Ted Kremenek
b476241840
Don't forward -Wint-conversion to cc1plus.
...
llvm-svn: 165531
2012-10-09 19:29:46 +00:00
Bill Wendling
7c04e04a75
Move the 'FunctionOnly' attributes thingy inside of the Attributes class.
...
llvm-svn: 165530
2012-10-09 19:01:18 +00:00
Ted Kremenek
aa4ca653ae
Create variable for warning group -Wshorten-64-to-32.
...
llvm-svn: 165521
2012-10-09 18:46:14 +00:00
Jason Molenda
0a72520f22
Patch from Dan Malea to fix a build break I introduced yesterday.
...
Thanks again Dan!
llvm-svn: 165519
2012-10-09 18:40:44 +00:00
Argyrios Kyrtzidis
353f6a477e
Move the functionality that looks for ObjC overridden methods from
...
ASTContext to the ObjCMethodDecl, and have the more generic
ASTContext::getOverriddenMethods() use the ObjCMethodDecl::getOverriddenMethods()
function.
llvm-svn: 165518
2012-10-09 18:19:01 +00:00
Douglas Gregor
ab88e86dd0
Not everyone uses C++11, apparently
...
llvm-svn: 165517
2012-10-09 17:51:56 +00:00
Greg Clayton
77fbc8176d
Changes to clean up the runtime and how the ISA caches are managed.
...
llvm-svn: 165516
2012-10-09 17:51:53 +00:00
Douglas Gregor
7c0990ba35
Make the order of visitation of the pending bodies in the AST reader
...
deterministic.
llvm-svn: 165515
2012-10-09 17:50:23 +00:00
Douglas Gregor
62692ce7f3
Allow MapVector clients to specify the map and vector types, and add a
...
clear() method.
llvm-svn: 165514
2012-10-09 17:49:42 +00:00
Douglas Gregor
a6017bbd52
When we load a function or method body from an AST file, we check
...
whether that function/method already has a body (loaded from some
other AST file), as introduced in r165137. Delay this check until
after the redeclaration chains have been wired up.
While I'm here, make the loading of method bodies lazy.
llvm-svn: 165513
2012-10-09 17:21:28 +00:00
Michael Ilseman
7eaf29c61e
More descriptive, doxygen-ed comments
...
llvm-svn: 165512
2012-10-09 17:05:59 +00:00
Sean Silva
94c7604832
tblgen: Remove pointless method call.
...
llvm-svn: 165511
2012-10-09 17:03:11 +00:00
Michael Ilseman
c93cffb590
New EarlyCSE tests for CSE-ing across commutativity.
...
llvm-svn: 165510
2012-10-09 16:58:13 +00:00
Michael Ilseman
336cb79fdf
Update EarlyCSE's SimpleValues to use Hashing.h for their hashes. Expanded the hashing and equality to allow for equality modulo commutativity for binary ops, and comparisons with swapping of predicates.
...
llvm-svn: 165509
2012-10-09 16:57:38 +00:00
Michael Ilseman
f876de06d2
New value_op_iterator for User. This allows other code to iterate over the User's operands directly as values, which can be convenient.
...
llvm-svn: 165508
2012-10-09 16:55:14 +00:00
Greg Clayton
85c2a72f2a
Fixed the redo.py script to emit correct arch and compiler options after dotest.py was switched over to use argparse.
...
llvm-svn: 165507
2012-10-09 16:54:55 +00:00
David Chisnall
3705125cc8
Improvements to MIPS64 assembler:
...
- Teach it about dadd[i] instructions and move pseudo-instruction
- Make it parse the register names correctly (for N32 / N64)
llvm-svn: 165506
2012-10-09 16:27:43 +00:00
Micah Villmow
89021e4740
Add in the first step of the multiple pointer support. This adds in support to the data layout for specifying a per address space pointer size.
...
The next step is to update the optimizers to allow them to optimize the different address spaces with this information.
llvm-svn: 165505
2012-10-09 16:06:12 +00:00
Alexey Samsonov
7b6ce747d6
Determine supported archs for compiler-rt libraries on Linux by trying to compile a simple executable
...
llvm-svn: 165504
2012-10-09 16:05:50 +00:00
Alexey Samsonov
be5ae06dec
Fixup for r165097: build 32-bit ASan compiler-rt library on 64-bit Linux only if just-built clang can build simple 32-bit executables
...
llvm-svn: 165503
2012-10-09 16:03:52 +00:00
Douglas Gregor
8cb174654f
If a macro has been #undef'd in a precompiled header, we still need to
...
write out the macro history for that macro. Similarly, we need to cope
with reading a macro definition that has been #undef'd.
Take advantage of this new ability so that global code-completion
results can refer to #undef'd macros, rather than losing them
entirely. For multiply defined/#undef'd macros, we will still get the
wrong result, but it's better than getting no result.
llvm-svn: 165502
2012-10-09 16:01:50 +00:00
Benjamin Kramer
97e5949068
Clearing a SmallPtrSet is still expensive, split it out from OverloadCandidateSet::clear and don't do it on destruction.
...
llvm-svn: 165501
2012-10-09 15:52:25 +00:00
Alexey Samsonov
2747e22051
Fixup for r165490: Use DenseMap instead of std::map. Simplify the loop in CollectFunctionDIs.
...
llvm-svn: 165498
2012-10-09 10:34:52 +00:00
Bill Wendling
908126a745
Move the 'ParameterOnly' variable inside of the Attributes class and make it a method.
...
llvm-svn: 165497
2012-10-09 09:51:10 +00:00
Bill Wendling
217c9b1916
Remove the now dead VarArgsIncompatible variable.
...
llvm-svn: 165496
2012-10-09 09:33:01 +00:00
Bill Wendling
1c1b324ccf
Use the enum value of the attributes when removing them from the attributes builder.
...
llvm-svn: 165495
2012-10-09 09:17:28 +00:00
Bill Wendling
93f70b78fd
Use the enum value of the attributes when adding them to the attributes builder.
...
llvm-svn: 165494
2012-10-09 09:11:20 +00:00
Alexey Samsonov
83ecabe6e6
[Sanitizer] Remove unneeded returns after UNIMPLEMENTED macro
...
llvm-svn: 165493
2012-10-09 08:51:08 +00:00
Alexey Samsonov
3a0a88fe0a
[Sanitizer] Add UNREACHABLE(msg) macro
...
llvm-svn: 165492
2012-10-09 08:42:07 +00:00
Alexey Samsonov
3b861ec989
Fix PR14016.
...
DeadArgumentElimination pass can replace one LLVM function with another,
invalidating a pointer stored in debug info metadata entry for this function.
To fix this, we collect debug info descriptors for functions before
running a DeadArgumentElimination pass and "patch" pointers in metadata nodes
if we replace a function.
llvm-svn: 165490
2012-10-09 08:13:15 +00:00
Bill Wendling
0597c1e53c
We use the enums to query whether an Attributes object has that attribute. The
...
opaque layer is responsible for knowing where that specific attribute is stored.
llvm-svn: 165489
2012-10-09 07:45:26 +00:00
Bill Wendling
c9b22d735a
Create enums for the different attributes.
...
We use the enums to query whether an Attributes object has that attribute. The
opaque layer is responsible for knowing where that specific attribute is stored.
llvm-svn: 165488
2012-10-09 07:45:08 +00:00
Arnaud A. de Grandmaison
3b95e4da76
CXXMethodDecl::isConst() and CXXMethodDecl::isVolatile() can be const methods
...
Patch by: Laszlo Nagy
llvm-svn: 165486
2012-10-09 07:09:56 +00:00
Bill Wendling
bcd425b094
Remove some dead methods.
...
llvm-svn: 165485
2012-10-09 05:54:39 +00:00
Bill Wendling
a1d2b3ee45
Remove ifdef'd code.
...
llvm-svn: 165484
2012-10-09 05:36:15 +00:00
Craig Topper
f1c2016075
Separate AVXCC and SSECC printing for cmpps/pd/ss/sd and add masking before the switch statement. This keeps the unreachable default case from being hit if the instruction was created with an intrinsic with too large of an immediate.
...
llvm-svn: 165483
2012-10-09 05:26:13 +00:00
NAKAMURA Takumi
be94b1c37e
Revert r117093, "test/Makefile: Force lit -j1 on Cygwin."
...
lit -jN works on cygwin in most cases, but still sometimes I can see stalls with iterative run on the buildbot.
llvm-svn: 165482
2012-10-09 05:07:18 +00:00
Sameer Sahasrabuddhe
1646a6ec44
Trivial change to the README, mainly to test commit access.
...
llvm-svn: 165481
2012-10-09 04:59:42 +00:00
Craig Topper
a004b0d303
In parseMSRMaskOperand, add an explicit check for the operand being an identifier instead of just having an assert.
...
llvm-svn: 165480
2012-10-09 04:55:28 +00:00
Craig Topper
db092d7aeb
Remove some dead code from ARMAsmPrinter. Add virtual and LLVM_OVERRIDE to the other methods. Mark some of the helper methods as private.
...
llvm-svn: 165479
2012-10-09 04:23:49 +00:00
Craig Topper
ffb1825036
Remove some unused code in the X86AsmPrinter. Add LLVM_OVERRIDE and virtual keywords to the remaining interface methods.
...
llvm-svn: 165478
2012-10-09 03:50:37 +00:00
Sid Manning
42064e5b60
* Add relocation reference support for Hexagon and PowerPC.
...
- Hexagon has many relocation types, this patch covers just
a subset, more will be added.
- PowerPC support was added so that we can verify mixed endian
environments.
* Add some basic test cases
* Update ldd-core to accept -endian flag
llvm-svn: 165477
2012-10-09 02:20:47 +00:00