summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Push "references are non-null" knowledge up to the common parent.Jordan Rose2012-08-214-35/+33
| | | | | | | | | | This reduces duplication across the Basic and Range constraint managers, and keeps their internals free of dealing with the semantics of C++. It's still a little unfortunate that the constraint manager is dealing with this at all, but this is pretty much the only place to put it so that it will apply to all symbolic values, even when embedded in larger expressions. llvm-svn: 162313
* Fix misaligned access in MachO object file reader: despite containing anRichard Smith2012-08-211-0/+5
| | | | | | | | | | int64_t, Symbol64TableEntry is actually only stored with 4-byte alignment within the file. The usage of #pragma pack here is copied from the corresponding code in Support/Endian.h, so shouldn't introduce any new portability problems. llvm-svn: 162312
* Fix unaligned memory accesses when performing relocations in X86 JIT. There'sRichard Smith2012-08-211-4/+13
| | | | | | | no cost to using memcpy here: the fixed code is optimized by LLVM to perfect machine code. llvm-svn: 162311
* Don't pass a null pointer to cast<> in its unit tests.Richard Smith2012-08-211-3/+5
| | | | llvm-svn: 162310
* Don't bind a reference to a dereferenced null pointer (for return value of ↵Richard Smith2012-08-211-1/+2
| | | | | | WeakVH::operator*). llvm-svn: 162309
* Comment change.Johnny Chen2012-08-211-2/+3
| | | | llvm-svn: 162308
* [ms-inline asm] Do not report a Parser error when matching inline assembly.Chad Rosier2012-08-211-1/+2
| | | | llvm-svn: 162307
* [ms-inline asm] Do not report a Parser error when matching inline assembly.Chad Rosier2012-08-212-15/+27
| | | | llvm-svn: 162306
* Ignore the documentation-suggested location for compile_commands.jsonDavid Blaikie2012-08-211-0/+1
| | | | | | | | | | According to http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html it's suggested that compile_commands.json in the root of the LLVM source tree should be a symlink to the json file produced by your build system of choice. So here's a patch so it doesn't turn up in git status, etc. llvm-svn: 162305
* The presence of the empty file "foo" unfortunately does not improve LLVM in ↵David Blaikie2012-08-211-0/+0
| | | | | | | | any way. Thanks to Duncan Sands for catching this random file in code review. llvm-svn: 162304
* Modern objc translator: Fixes a crash in rewriter when rewriting the APIFariborz Jahanian2012-08-212-1/+38
| | | | | | for structure valued method messaging. // rdar://12142241 llvm-svn: 162303
* Use LLVM_BUILTIN_TRAP instead of lame volatile int traps.David Blaikie2012-08-212-2/+2
| | | | | | (from a todo mentioned in r159469 & originally suggested by Chandler Carruth) llvm-svn: 162302
* Remove unnecessary cast that was also unnecessarily casting away constness.David Blaikie2012-08-212-1/+1
| | | | | | | | | | Even looking at the revision history I couldn't quite piece together why this cast was ever written in the first place, but I assume it was because of some change in the inheritance, perhaps this function was reimplemented in a derived type & this caller was meant to get the base version (& it wasn't virtual)? llvm-svn: 162301
* Provide a portability macro for __builtin_trap.David Blaikie2012-08-211-0/+9
| | | | llvm-svn: 162300
* Reduce the amount of state in the Option class by relying on the data from ↵Michael J. Spencer2012-08-214-139/+74
| | | | | | OptTable::Info. llvm-svn: 162299
* Fix macros arguments with an underscore, dot or dollar in them. This is basedRafael Espindola2012-08-212-1/+30
| | | | | | on a patch by Andy/PaX. I added the support for dot and dollar. llvm-svn: 162298
* Switch some realignment calculations over to llvm::RoundUpToAlignment.Richard Smith2012-08-213-7/+5
| | | | llvm-svn: 162297
* [ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl. In general,Chad Rosier2012-08-211-1/+3
| | | | | | this is the index of the operand that failed to match. llvm-svn: 162296
* [ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl. In general,Chad Rosier2012-08-212-5/+9
| | | | | | | | | 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
* DeclPrinter, terse mode: don't print function bodiesDmitri Gribenko2012-08-212-18/+35
| | | | llvm-svn: 162294
* Rename PrintingPolicy::DontRecurseInDeclContext to PrintingPolicy::TerseOutputDmitri Gribenko2012-08-213-6/+5
| | | | | | to reflect the intention, not the implementation. llvm-svn: 162293
* Formatting. No functional change.Chad Rosier2012-08-211-2/+2
| | | | llvm-svn: 162292
* Make the wording in of the "expected identifier" error in the .macro directiveRafael Espindola2012-08-212-2/+11
| | | | | | | consistent with the other "expected identifier" errors. Extracted from the Andy/PaX patch. I added the test. llvm-svn: 162291
* [ms-inline asm] Append identifier for better debugging.Chad Rosier2012-08-211-0/+1
| | | | llvm-svn: 162289
* [ms-inline asm] Remove this test case and the associated special case code.Chad Rosier2012-08-212-23/+11
| | | | llvm-svn: 162288
* Make Mr. Pedantic happy by fixing banner to be exactly 80 columnsMarshall Clow2012-08-211-1/+1
| | | | llvm-svn: 162287
* Pacify PVS-Studio by changing the type rather than doing a cast, a tweakDuncan Sands2012-08-211-1/+1
| | | | | | suggested by David Blaikie. llvm-svn: 162286
* [driver] Add support for the --param ssp-buffer-size= driver option.Chad Rosier2012-08-216-0/+32
| | | | | | PR9673 llvm-svn: 162285
* Add support for the --param ssp-buffer-size= driver option.Chad Rosier2012-08-214-9/+19
| | | | | | PR9673 llvm-svn: 162284
* Use typedefs. Fix indentation. Extracted from the Andy/PaX patch.Rafael Espindola2012-08-211-5/+4
| | | | llvm-svn: 162283
* Remove unused variable. Extracted from the Andy/PaX patch.Rafael Espindola2012-08-211-2/+0
| | | | llvm-svn: 162282
* Fix typo. Extracted from the Andy/PaX patch.Rafael Espindola2012-08-211-1/+1
| | | | llvm-svn: 162281
* MCJIT: Tidy up the constructor.Jim Grosbach2012-08-213-13/+8
| | | | | | | | | 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
* [asan] fix mac buildKostya Serebryany2012-08-211-0/+2
| | | | llvm-svn: 162279
* [asan] run-time part of the initialization order checker. Patch by Reid ↵Kostya Serebryany2012-08-216-8/+89
| | | | | | Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine. llvm-svn: 162278
* PVS-Studio noticed that EmitVBR64 would perform undefined behaviour if theDuncan Sands2012-08-211-1/+3
| | | | | | | | | 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
* Add correct set of regression tests for r162094 commit.Tim Northover2012-08-211-33/+33
| | | | llvm-svn: 162276
* autoconf: Only define GPGPU_CODEGEN, if that feature is requestedTobias Grosser2012-08-213-10/+7
| | | | | | | | | | 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
* Add rsqrt builtin. Based on patch by Cassie Epps!Peter Collingbourne2012-08-213-0/+8
| | | | llvm-svn: 162274
* Add floor builtin. Patch by Cassie Epps!Peter Collingbourne2012-08-212-0/+7
| | | | llvm-svn: 162273
* [Sanitizer] implement internal_strcspnAlexey Samsonov2012-08-212-0/+10
| | | | llvm-svn: 162272
* Port the global copy optimization from the SROA pass to InstCombine.Chandler Carruth2012-08-213-199/+181
| | | | | | | | | | 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
* Fix up indentation and remove a couple else's after returns.Craig Topper2012-08-211-11/+12
| | | | llvm-svn: 162270
* [asan] update asan-rt to match the interface change in LLVm (r162268)Kostya Serebryany2012-08-211-1/+2
| | | | llvm-svn: 162269
* [asan] add code to detect global initialization fiasco in C/C++. The ↵Kostya Serebryany2012-08-212-63/+207
| | | | | | 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
* Use uint16_t for tables of opcodes.Craig Topper2012-08-211-2/+2
| | | | llvm-svn: 162267
* Fix up indentation. No functional change.Craig Topper2012-08-211-61/+61
| | | | llvm-svn: 162264
* Add a couple llvm_unreachables. Add a message to several others.Craig Topper2012-08-211-8/+6
| | | | llvm-svn: 162263
* [Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It ↵Alexey Samsonov2012-08-212-0/+38
| | | | | | is defined analogous to similar class in tsan and should replace it. llvm-svn: 162262
* Replace a break with llvm_unreachable in the default case of a nested ↵Craig Topper2012-08-211-50/+18
| | | | | | switch. Condense code a bit. No functional change. llvm-svn: 162261
OpenPOWER on IntegriCloud