- Aug 13, 2013
-
-
Hans Wennborg authored
This used to be handled automagically by the option parsing library, but after LLVM r188314, we should handle it ourselves. No functionality change, but adds a test. llvm-svn: 188318
-
rdar://problem/14717184Greg Clayton authored
Improve the documentation for the new target.memory-module-load-level setting, and also return an error when there is no nlist data when appropriate. llvm-svn: 188317
-
Hans Wennborg authored
Anything that comes after -- is treated as an input file. This used to be handled automagically by the option parsing library, but after LLVM r188314, we should handle it ourselves. No functionality change. llvm-svn: 188316
-
Jim Grosbach authored
A common idiom is to use zero and all-ones as sentinal values and to check for both in a single conditional ("x != 0 && x != (unsigned)-1"). That generates code, for i32, like: testl %edi, %edi setne %al cmpl $-1, %edi setne %cl andb %al, %cl With this transform, we generate the simpler: incl %edi cmpl $1, %edi seta %al Similar improvements for other integer sizes and on other platforms. In general, combining the two setcc instructions into one is better. rdar://14689217 llvm-svn: 188315
-
Hans Wennborg authored
This adds KIND_REMAINING_ARGS, a class of options that consume all remaining arguments on the command line. This will be used to support /link in clang-cl, which is used to forward all remaining arguments to the linker. It also allows us to remove the hard-coded handling of "--", allowing clients (clang and lld) to implement that functionality themselves with this new option class. Differential Revision: http://llvm-reviews.chandlerc.com/D1387 llvm-svn: 188314
-
Jack Carter authored
* msa SubtargetFeature * registers * ld.[bhwd], and st.[bhwd] instructions Does not correctly prohibit use of both 32-bit FPU registers and MSA together. Patch by Daniel Sanders llvm-svn: 188313
-
Jack Carter authored
This includes instructions lwl, lwr, swl and swr. Patch by Zoran Jovnovic llvm-svn: 188312
-
Daniel Dunbar authored
llvm-svn: 188309
-
John Thompson authored
llvm-svn: 188308
-
Richard Smith authored
When a local extern declaration redeclares some other entity, the type of that entity is merged with the prior type if the prior declaration is visible (in C) or is declared in the same scope (in C++). - Make LookupRedeclarationWithLinkage actually work in C++, use it in the right set of cases, and make it track whether it found a shadowed declaration. - Track whether we found a declaration in the same scope (for C++) including across serialization and template instantiation. llvm-svn: 188307
-
John Thompson authored
llvm-svn: 188306
-
Sean Callanan authored
way of making LLVM not rely on terminfo. llvm-svn: 188305
-
Edwin Vane authored
Improved test to catch missing case. llvm-svn: 188304
-
Fariborz Jahanian authored
of harmless changes. llvm-svn: 188303
-
Michael Gottesman authored
Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void. LowerCallTo returns a pair with the return value of the call as the first element and the chain associated with the return value as the second element. If we lower a call that has a void return value, LowerCallTo returns an SDValue with a NULL SDNode and the chain for the call. Thus makeLibCall by just returning the first value makes it impossible for you to set up the chain so that the call is not eliminated as dead code. I also updated all references to makeLibCall to reflect the new return type. llvm-svn: 188300
-
Tareq A. Siraj authored
Reworked how the tests dealt with paths. Instead of removing the full path name, put a marker in the expected file and replace the marker with the full path before running diff. Differential Revision: http://llvm-reviews.chandlerc.com/D1381 llvm-svn: 188299
-
Carlo Kok authored
Output DW_AT_stmt_list dwarf debug info as DW_FORM_sec_offset instead of DW_FORM_data4 as it is a section offset (fixes the coff/dwarf debug info statement locations) llvm-svn: 188297
-
Carlo Kok authored
For COFF only: dwarf debug info output a label reference as a section relative item only when it's one of dw_from strp, sec_offset, ref_addr or op_call_ref instead of going by size. llvm-svn: 188296
-
Edwin Vane authored
One day soon, tooling::Replacements will be changed from being implemented as an std::set to being implemented as an std::vector. Until then, some new code using vectors of Replacements would enjoy having a version of applyAllReplacements that takes a vector. Differential Revision: http://llvm-reviews.chandlerc.com/D1380 llvm-svn: 188295
-
Marshall Clow authored
llvm-svn: 188294
-
Dmitry Vyukov authored
llvm-svn: 188293
-
Dmitry Vyukov authored
llvm-svn: 188292
-
Dmitry Vyukov authored
This is necessary to prevent false positives, see: https://code.google.com/p/thread-sanitizer/issues/detail?id=25 llvm-svn: 188291
-
Timur Iskhodzhanov authored
llvm-svn: 188290
-
Greg Clayton authored
When adding a dSYM file, don't remove all sections for the Module's object file if the symbol vendor used the same object file. llvm-svn: 188289
-
Joey Gouly authored
llvm-svn: 188288
-
Edwin Vane authored
If a Replacment is contained within the conflict range being built, the conflict range would be erroneously shortened. Now fixed. Tests updated to catch this case. llvm-svn: 188287
-
Marshall Clow authored
llvm-svn: 188286
-
Arnold Schwaighofer authored
llvm-svn: 188285
-
Marshall Clow authored
llvm-svn: 188284
-
Marshall Clow authored
llvm-svn: 188283
-
Marshall Clow authored
llvm-svn: 188282
-
Arnold Schwaighofer authored
I have moved this logic into clang and opt. llvm-svn: 188281
-
Arnold Schwaighofer authored
We used to decide whether to really vectorize depending on the optimization level in PassManagerBuilder. This patch moves this decision to the clang driver. We look at the optimization level and whether the f(no-)vectorize is set and decide whether to vectorize. This allows us to simplify the logic in PassManagerBuilder to just a check for whether the vectorizer should run or not. We now do the right thing for: $ clang -O1 -fvectorize $ clang -fno-vectorize -O3 llvm-svn: 188280
-
Dmitry Vyukov authored
If halt_on_error==true, program terminates after reporting first error. llvm-svn: 188279
-
Timur Iskhodzhanov authored
llvm-svn: 188278
-
Marshall Clow authored
llvm-svn: 188277
-
Marshall Clow authored
llvm-svn: 188276
-
Marshall Clow authored
llvm-svn: 188275
-
Tareq A. Siraj authored
Another attempt to commit r187204 after windows related problems has been fixed. Note that changes to this patch reflect the current behavior of cpp11-migrate. Header replacements are now written to disk in YAML format for an external tool to merge. A unique file will be created in the same directory as the header with all replacements that came from a source file that included the header file. The YAML file will have: - Name of the header file - Name of the source file that included the header file - Transform ID that generated the replacement - Offset - Length - Replacement text Any tool reading these replacements should read them using the HeaderChangeDocument struct. Differential Revision: http://llvm-reviews.chandlerc.com/D1369 llvm-svn: 188274
-