David Blaikie
a789c40380
Provide a portability macro for __builtin_trap.
...
llvm-svn: 162300
2012-08-21 18:54:21 +00:00
Michael J. Spencer
d492219e59
Reduce the amount of state in the Option class by relying on the data from OptTable::Info.
...
llvm-svn: 162299
2012-08-21 18:51:17 +00:00
Rafael Espindola
2c06448360
Fix macros arguments with an underscore, dot or dollar in them. This is based
...
on a patch by Andy/PaX. I added the support for dot and dollar.
llvm-svn: 162298
2012-08-21 18:29:30 +00:00
Richard Smith
a75e1cff0a
Switch some realignment calculations over to llvm::RoundUpToAlignment.
...
llvm-svn: 162297
2012-08-21 18:18:06 +00:00
Chad Rosier
19160b6e39
[ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl. In general,
...
this is the index of the operand that failed to match.
llvm-svn: 162296
2012-08-21 18:15:08 +00:00
Chad Rosier
79e766c38e
[ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl. In general,
...
this is the index of the operand that failed to match.
Note: This may cause a buildbot failure due to an API mismatch in clang. Should
recover with my next commit to clang.
llvm-svn: 162295
2012-08-21 18:14:59 +00:00
Dmitri Gribenko
a9a2af7893
DeclPrinter, terse mode: don't print function bodies
...
llvm-svn: 162294
2012-08-21 17:47:24 +00:00
Dmitri Gribenko
a93a7e8d5e
Rename PrintingPolicy::DontRecurseInDeclContext to PrintingPolicy::TerseOutput
...
to reflect the intention, not the implementation.
llvm-svn: 162293
2012-08-21 17:36:32 +00:00
Chad Rosier
4ee038421b
Formatting. No functional change.
...
llvm-svn: 162292
2012-08-21 17:22:47 +00:00
Rafael Espindola
af6da83a2c
Make the wording in of the "expected identifier" error in the .macro directive
...
consistent with the other "expected identifier" errors.
Extracted from the Andy/PaX patch. I added the test.
llvm-svn: 162291
2012-08-21 17:12:05 +00:00
Chad Rosier
5e80ced3f6
[ms-inline asm] Append identifier for better debugging.
...
llvm-svn: 162289
2012-08-21 17:02:27 +00:00
Chad Rosier
b84cc6cfa3
[ms-inline asm] Remove this test case and the associated special case code.
...
llvm-svn: 162288
2012-08-21 17:01:26 +00:00
Marshall Clow
2a6415ec04
Make Mr. Pedantic happy by fixing banner to be exactly 80 columns
...
llvm-svn: 162287
2012-08-21 16:29:41 +00:00
Duncan Sands
d232ac54c0
Pacify PVS-Studio by changing the type rather than doing a cast, a tweak
...
suggested by David Blaikie.
llvm-svn: 162286
2012-08-21 16:20:37 +00:00
Chad Rosier
db3da83b28
[driver] Add support for the --param ssp-buffer-size= driver option.
...
PR9673
llvm-svn: 162285
2012-08-21 16:16:06 +00:00
Chad Rosier
d269bd8c24
Add support for the --param ssp-buffer-size= driver option.
...
PR9673
llvm-svn: 162284
2012-08-21 16:15:24 +00:00
Rafael Espindola
d2dc2a7af3
Use typedefs. Fix indentation. Extracted from the Andy/PaX patch.
...
llvm-svn: 162283
2012-08-21 16:06:48 +00:00
Rafael Espindola
5535863043
Remove unused variable. Extracted from the Andy/PaX patch.
...
llvm-svn: 162282
2012-08-21 16:01:14 +00:00
Rafael Espindola
3e5eb4263a
Fix typo. Extracted from the Andy/PaX patch.
...
llvm-svn: 162281
2012-08-21 15:55:04 +00:00
Jim Grosbach
bea6753f4f
MCJIT: Tidy up the constructor.
...
The MCJIT doesn't need or want a TargetJITInfo. That's vestigal from the old
JIT, so just remove it.
rdar://12119347
llvm-svn: 162280
2012-08-21 15:42:49 +00:00
Kostya Serebryany
68d9c9da40
[asan] fix mac build
...
llvm-svn: 162279
2012-08-21 14:43:36 +00:00
Kostya Serebryany
676bcdb838
[asan] run-time part of the initialization order checker. Patch by Reid Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine.
...
llvm-svn: 162278
2012-08-21 14:10:25 +00:00
Duncan Sands
68256859ff
PVS-Studio noticed that EmitVBR64 would perform undefined behaviour if the
...
number of bits was bigger than 32. I checked every use of this function
that I could find and it looks like the maximum number of bits is 32, so I've
added an assertion checking this property, and a type cast to (hopefully) stop
PVS-Studio from warning about this in the future.
llvm-svn: 162277
2012-08-21 13:47:25 +00:00
Tim Northover
f39c1a3f72
Add correct set of regression tests for r162094 commit.
...
llvm-svn: 162276
2012-08-21 12:43:03 +00:00
Tobias Grosser
1df5289782
autoconf: Only define GPGPU_CODEGEN, if that feature is requested
...
Before we defined GPGPU_CODEGEN to '0', which does not disable the relevant code
as we just check if that value is defined at all. We now follow the cmake
approach and only define GPGPU_CODEGEN, if the feature should be enabled.
Reported by: Sebastian Pop <spop@codeaurora.org>
llvm-svn: 162275
2012-08-21 12:29:10 +00:00
Peter Collingbourne
354686be76
Add rsqrt builtin. Based on patch by Cassie Epps!
...
llvm-svn: 162274
2012-08-21 10:48:35 +00:00
Peter Collingbourne
e1d91f73ec
Add floor builtin. Patch by Cassie Epps!
...
llvm-svn: 162273
2012-08-21 10:48:21 +00:00
Alexey Samsonov
b92488a549
[Sanitizer] implement internal_strcspn
...
llvm-svn: 162272
2012-08-21 09:26:26 +00:00
Chandler Carruth
c908ca1766
Port the global copy optimization from the SROA pass to InstCombine.
...
This optimization is really just replacing allocas wholesale with
globals, there is no scalarization.
The underlying motivation for this patch is to simplify the SROA pass
and focus it on splitting and promoting allocas.
llvm-svn: 162271
2012-08-21 08:39:44 +00:00
Craig Topper
bab0c76674
Fix up indentation and remove a couple else's after returns.
...
llvm-svn: 162270
2012-08-21 08:29:51 +00:00
Kostya Serebryany
55b4dd314f
[asan] update asan-rt to match the interface change in LLVm (r162268)
...
llvm-svn: 162269
2012-08-21 08:24:35 +00:00
Kostya Serebryany
f4be019fba
[asan] add code to detect global initialization fiasco in C/C++. The sub-pass is off by default for now. Patch by Reid Watson. Note: this patch changes the interface between LLVM and compiler-rt parts of asan. The corresponding patch to compiler-rt will follow.
...
llvm-svn: 162268
2012-08-21 08:24:25 +00:00
Craig Topper
bfcfdeb563
Use uint16_t for tables of opcodes.
...
llvm-svn: 162267
2012-08-21 08:23:21 +00:00
Craig Topper
a0cabf19f8
Fix up indentation. No functional change.
...
llvm-svn: 162264
2012-08-21 08:17:07 +00:00
Craig Topper
4bc3e5a1bf
Add a couple llvm_unreachables. Add a message to several others.
...
llvm-svn: 162263
2012-08-21 08:16:16 +00:00
Alexey Samsonov
e6704ee109
[Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It is defined analogous to similar class in tsan and should replace it.
...
llvm-svn: 162262
2012-08-21 08:13:37 +00:00
Craig Topper
653e759046
Replace a break with llvm_unreachable in the default case of a nested switch. Condense code a bit. No functional change.
...
llvm-svn: 162261
2012-08-21 07:32:16 +00:00
Craig Topper
384fae2f0d
Cleanup the scalar FMA3 definitions. Add patterns to fold loads with scalar forms.
...
llvm-svn: 162260
2012-08-21 07:11:11 +00:00
Kostya Serebryany
28a26c8d99
[asan] If we are compiling with ASan, add metadata indicating dynamically initialized globals. Patch by Reid Watson, reviewed by Richard Smith
...
llvm-svn: 162259
2012-08-21 06:53:28 +00:00
Kostya Serebryany
6b745b5281
[asan] fix lint
...
llvm-svn: 162258
2012-08-21 06:43:44 +00:00
Craig Topper
4f3879dfa7
Merge FMA3 instructions with and without patterns into single classes using null_frag.
...
llvm-svn: 162257
2012-08-21 05:56:45 +00:00
Michael Liao
6e12d12830
revise debug output to avoid dangling pointer
...
llvm-svn: 162256
2012-08-21 05:55:22 +00:00
Richard Smith
c7520bf785
Fix alignment of array of VarDecl* following array of unsigned in LambdaExpr.
...
llvm-svn: 162255
2012-08-21 05:42:49 +00:00
John McCall
f1249929c8
When performing a trivial copy of a C++ type, we must be careful not
...
to overwrite objects that might have been allocated into the type's
tail padding. This patch is missing some potential optimizations where
the destination is provably a complete object, but it's necessary for
correctness.
Patch by Jonathan Sauer.
llvm-svn: 162254
2012-08-21 04:10:00 +00:00
Richard Smith
a9f521fd20
Avoid binding a reference to a dereferenced pointer in diagnostic serialization
...
if a diagnostic is emitted outside of any source file. The fix mirrors the
corresponding code in TextDiagnosticPrinter. This required moving the
functional parts of SDiagRenderer into SDiagWriter so they can be reused in the
non-rendering codepath.
No functionality change.
llvm-svn: 162253
2012-08-21 03:11:53 +00:00
John McCall
3deb1ad40c
Screw around with ObjCRuntime some more, changing the
...
diagnostics for bad deployment targets and adding a few
more predicates. Includes a patch by Jonathan Schleifer
to enable ARC for ObjFW.
llvm-svn: 162252
2012-08-21 02:47:43 +00:00
Dmitri Gribenko
3e358ccf92
DeclPrinter: describe what 'terse' output is.
...
llvm-svn: 162251
2012-08-21 02:30:28 +00:00
Jim Ingham
48cdc58f0a
SBValue::GetTypeName and SBValue::GetByteSize might have to update the dynamic value - which might involve running code. So they need to take the stop lock & target locks.
...
<rdar://problem/12001204>
llvm-svn: 162250
2012-08-21 01:46:35 +00:00
Jack Carter
0980793f87
When this test case was first created it was
...
just trying to show it did not crash and burn.
This patch checks that the resultant .ll contents
are correct.
llvm-svn: 162249
2012-08-21 00:59:48 +00:00
Sam Panzer
0f38443616
Better diagnostics for range-based for loops with bad range types.
...
The old error message stating that 'begin' was an undeclared identifier
is replaced with a new message explaining that the error is in the range
expression, along with which of the begin() and end() functions was
problematic if relevant.
Additionally, if the range was a pointer type or defines operator*,
attempt to dereference the range, and offer a FixIt if the modified range
works.
llvm-svn: 162248
2012-08-21 00:52:01 +00:00