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
Chandler Carruth
503eb2bb49
Fix PR14034, an infloop / heap corruption / crash bug in the new SROA.
...
Thanks to Benjamin for the raw test case. This one took about 50 times
longer to reduce than to fix. =/
llvm-svn: 165476
2012-10-09 01:58:35 +00:00
Nadav Rotem
07cee6efc9
whitespace
...
llvm-svn: 165475
2012-10-09 01:56:07 +00:00
Sean Silva
309ec42886
Move misplaced comment.
...
llvm-svn: 165474
2012-10-09 01:47:16 +00:00
Argyrios Kyrtzidis
b9556e695f
Move the logic that searches for overridden methods from libclang to
...
ASTContext so that it can be widely available.
llvm-svn: 165473
2012-10-09 01:23:50 +00:00
Argyrios Kyrtzidis
cc4ca0a324
When storing the C++ overridden methods, store them once for the
...
canonical method; avoid storing them again for an out-of-line definition.
llvm-svn: 165472
2012-10-09 01:23:45 +00:00
Jason Molenda
bb860bd264
Add a parameter to Symbols::DownloadObjectAndSymbolFile() to control
...
whether we try to call an external program to load symbols unconditionally,
or if we check the user's preferences before calling it.
ProcessMachCore now sets CanJIT to false - we can't execute code in a core file.
DynamicLoaderDarwinKernel::OSKextLoadedKextSummary::LoadImageUsingMemoryModule changed
to load the kernel from an on-disk file if at all possible.
Don't load the kext binaries out of memory from the remote systems - their linkedit doesn't
seem to be in a good state and we'll error out down in SymbolVendorMacOSX if we try to use
the in-memory images.
Call Symbols::DownloadObjectAndSymbolFile to get the kext/kernel binary -- the external
program may be able to give us a file path on the local filesystem instead of reading
the binary / dSYM over a network drive every time. Fall back to calling
Target::GetSharedModule() like before if DownloadObjectAndSymbolFile fails.
llvm-svn: 165471
2012-10-09 01:17:11 +00:00
Bill Wendling
f8a18efe0a
Remove a couple more 'hasAttrSomewhere' calls.
...
llvm-svn: 165470
2012-10-09 01:03:48 +00:00
Bill Wendling
f1c60d6d04
Fix. Apply the no capture attribute to the correct parameter.
...
llvm-svn: 165469
2012-10-09 00:51:40 +00:00
Bill Wendling
c1e8e74cbd
Convert to using the Attributes::Builder class to create attributes.
...
llvm-svn: 165468
2012-10-09 00:47:36 +00:00
Bill Wendling
cb4b567f0a
Use an iterator and proper query method instead of the 'hasAttrSomewhere' method.
...
llvm-svn: 165467
2012-10-09 00:34:19 +00:00
Bill Wendling
375eb1f980
Remove more uses of the attribute enums by supplying appropriate query methods for them.
...
No functionality change intended.
llvm-svn: 165466
2012-10-09 00:28:54 +00:00
Bill Wendling
70f3917b0e
Convert to using the Attributes::Builder interface.
...
llvm-svn: 165465
2012-10-09 00:01:21 +00:00
Eric Christopher
b0d9dec1ff
Fix typo in docs.
...
llvm-svn: 165464
2012-10-08 23:54:10 +00:00
Eric Christopher
286113687a
Fix up comment to be more clear.
...
llvm-svn: 165463
2012-10-08 23:53:45 +00:00
Eli Friedman
ae8ee25d8d
Make sure we allow "#pragma options align=mac68k" in function-local contexts. <rdar://problem/12453134>
...
llvm-svn: 165462
2012-10-08 23:52:38 +00:00
Bill Wendling
7cf8f3c9c2
Update comment.
...
llvm-svn: 165461
2012-10-08 23:51:19 +00:00
Greg Clayton
13d4dfd3f2
Fix a build warning and a dangerous possible crasher.
...
llvm-svn: 165460
2012-10-08 23:50:19 +00:00
Ted Kremenek
40a69600af
Add regression test to check if -Wenum-conversion is a subgroup of -Wconversion.
...
llvm-svn: 165459
2012-10-08 23:45:09 +00:00
Bill Wendling
c6daefad7e
Use the Attributes::Builder to build the attributes in the parser.
...
llvm-svn: 165458
2012-10-08 23:27:46 +00:00
Nadav Rotem
ff9d7038d7
Use DataTypes.h
...
llvm-svn: 165457
2012-10-08 23:14:28 +00:00
Argyrios Kyrtzidis
e0d649789d
In VarDecl::getSourceRange() make sure to check that the source location
...
of the initializer is valid before using it.
Fixes rdar://12455002&12449015 where local variables of objc objects in ARC mode
were not annotated because of the ImplicitValueInitExpr initializer having invalid
source range, resulting in the SourceRange of the VarDecl having invalid end location.
llvm-svn: 165456
2012-10-08 23:08:41 +00:00
Nadav Rotem
35315fea70
Refactor the AddrMode class out of TLI to its own header file.
...
This class is used by LSR and a number of places in the codegen.
This is the first step in de-coupling LSR from TLI, and creating
a new interface in between them.
llvm-svn: 165455
2012-10-08 23:06:34 +00:00