Skip to content
  1. Jun 14, 2017
  2. Jun 13, 2017
    • Xinliang David Li's avatar
      Preserve cold attribute for function decls · 4ec36068
      Xinliang David Li authored
      Differential Revision: http://reviews.llvm.org/D34133
      
      llvm-svn: 305325
      4ec36068
    • Eric Beckmann's avatar
      Use reference to iterate through string table instead of copying. · 0096d78b
      Eric Beckmann authored
      Summary: just a quick patch
      
      Subscribers: ruiu, llvm-commits, hiraditya
      
      Differential Revision: https://reviews.llvm.org/D34171
      
      llvm-svn: 305324
      0096d78b
    • Rafael Espindola's avatar
      Set non alloc section address to 0 earlier. · dece2808
      Rafael Espindola authored
      Currently we do layout as if non alloc sections had an actual address
      and then set it to zero. This produces a few odd results where a
      symbol has an address that is inconsistent with the section address.
      
      The simplest way to fix it is probably to just set the address earlier.
      
      The behavior of bfd seems to be similar, but it only sets the non
      alloc section address is missing from the linker script or if the
      script has an explicit " : 0" setting the address of the output
      section (which the default script does).
      
      llvm-svn: 305323
      dece2808
    • Eric Beckmann's avatar
      Fix a bug introduced in r305092 on big-endian systems. · 1f76ca5a
      Eric Beckmann authored
      Summary:
      We were writing the length of the string based on system-endianness, and
      not universally little-endian.  This fixes that.
      
      Reviewers: zturner
      
      Subscribers: hiraditya, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D34159
      
      llvm-svn: 305322
      1f76ca5a
    • Teresa Johnson's avatar
      [PGO] Update VP metadata after memory intrinsic optimization · 8015f885
      Teresa Johnson authored
      Summary:
      Leave an updated VP metadata on the fallback memcpy intrinsic after
      specialization. This can be used for later possible expansion based on
      the average of the remaining values.
      
      Reviewers: davidxl
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D34164
      
      llvm-svn: 305321
      8015f885
    • Eric Beckmann's avatar
      Fix alignment complaint. · 33866334
      Eric Beckmann authored
      Summary: Apparently we need to write using a void* pointer on some architectures, or else alignment error is caused.
      
      Subscribers: hiraditya, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D34166
      
      llvm-svn: 305320
      33866334
    • Roman Lebedev's avatar
      [ADT] PointerUnion::getAddrOfPtr1(): fix/silence -Wcast-qual warning. · 4ebb0f06
      Roman Lebedev authored
      Summary:
      Previously, when D33102 landed, this broke -Werror buildbots.
      
      http://lab.llvm.org:8011/builders/clang-with-lto-ubuntu/builds/3249
      ```
      FAILED: /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/install/stage1/bin/clang++   -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_GLOBAL_ISEL -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/CodeGen/AsmPrinter -I/home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/lib/CodeGen/AsmPrinter -Iinclude -I/home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/include -fPIC -fvisibility-inlines-hidden -Werror -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics -ffunction-sections -fdata-sections -O3    -UNDEBUG  -fno-exceptions -fno-rtti -MMD -MT lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/CodeViewDebug.cpp.o -MF lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/CodeViewDebug.cpp.o.d -o lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/CodeViewDebug.cpp.o -c /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
      In file included from /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:14:
      In file included from /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/lib/CodeGen/AsmPrinter/CodeViewDebug.h:17:
      In file included from /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h:15:
      In file included from /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/include/llvm/IR/DebugInfoMetadata.h:26:
      In file included from /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/include/llvm/IR/Metadata.h:23:
      /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/include/llvm/ADT/PointerUnion.h:161:19: error: cast from 'void **' to 'const llvm::DISubprogram **' must have all intermediate pointers const qualified to be safe [-Werror,-Wcast-qual]
          return (PT1 *)Val.getAddrOfPointer();
                        ^
      /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/include/llvm/ADT/TinyPtrVector.h:177:18: note: in instantiation of member function 'llvm::PointerUnion<const llvm::DISubprogram *, llvm::SmallVector<const llvm::DISubprogram *, 4> *>::getAddrOfPtr1' requested here
            return Val.getAddrOfPtr1();
                       ^
      /home/buildbot/Buildbot/Slave1a/clang-with-lto-ubuntu/llvm.src/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:1885:33: note: in instantiation of member function 'llvm::TinyPtrVector<const llvm::DISubprogram *>::begin' requested here
          for (const DISubprogram *SP : MethodItr.second) {
                                      ^
      1 error generated.
      ```
      
      Reviewers: dblaikie, akyrtzi
      
      Reviewed By: dblaikie
      
      Subscribers: joerg, mehdi_amini, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D34153
      
      llvm-svn: 305319
      4ebb0f06
    • Frederich Munch's avatar
      6391c7e2
    • Bill Seurer's avatar
      [powerpc] deactivate tests combined.test and object.test on powerpc64 be · 769d8d18
      Bill Seurer authored
      These tests fail on powerpc64 BE (only, not LE) and are thus intefering with
      the running of 3 of the powerpc buildbots.  The author of the tests has been
      notified and is working on fixing them but in the meantime I am disabling
      them to get the bots working again.
      
      See https://bugs.llvm.org//show_bug.cgi?id=33429
      
      llvm-svn: 305317
      769d8d18
    • Sam Clegg's avatar
      [WebAssembly] Cleanup WebAssemblyWasmObjectWriter · ae03c1e7
      Sam Clegg authored
      Differential Revision: https://reviews.llvm.org/D34131
      
      llvm-svn: 305316
      ae03c1e7
    • Yi Kong's avatar
      Fix spurious Wunused-lambda-capture warning · 7db51406
      Yi Kong authored
      Summary:
      Clang emits unused-lambda-capture warning for captures in generic lambdas even though they are actually used.
      
      Fixes PR31815.
      
      Reviewers: malcolm.parsons, aaron.ballman, rsmith
      
      Reviewed By: malcolm.parsons
      
      Subscribers: ahatanak, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D33526
      
      llvm-svn: 305315
      7db51406
    • Eric Beckmann's avatar
      Improve error messages in order to help with fixing a big-endian bug. · 907fb813
      Eric Beckmann authored
      Summary: Added output to stderr so that we can actually see what is happening when the test fails on big endian.
      
      Reviewers: zturner
      
      Subscribers: llvm-commits, hiraditya
      
      Differential Revision: https://reviews.llvm.org/D34155
      
      llvm-svn: 305314
      907fb813
    • Frederich Munch's avatar
    • Florian Hahn's avatar
      Align definition of DW_OP_plus with DWARF spec [2/3] · 3dbcced0
      Florian Hahn authored
      Summary:
      This patch is part of 3 patches that together form a single patch, but must be introduced in stages in order not to break things.
       
      The way that LLVM interprets DW_OP_plus in DIExpression nodes is basically that of the DW_OP_plus_uconst operator since LLVM expects an unsigned constant operand. This unnecessarily restricts the DW_OP_plus operator, preventing it from being used to describe the evaluation of runtime values on the expression stack. These patches try to align the semantics of DW_OP_plus and DW_OP_minus with that of the DWARF definition, which pops two elements off the expression stack, performs the operation and pushes the result back on the stack.
       
      This is done in three stages:
      	•	The first patch (LLVM) adds support for DW_OP_plus_uconst and changes all uses (and tests) of DW_OP_plus to use DW_OP_plus_uconst.
       
      	•	The second patch (Clang) contains changes to use DW_OP_plus_uconst instead of DW_OP_plus.
       
      	•	The third patch (LLVM) changes the semantics of DW_OP_plus to be in line with it’s DWARF meaning. It also does this for DW_OP_minus.
      
      Patch by Sander de Smalen.
      
      Reviewers: echristo, pcc, aprantl
      
      Reviewed By: aprantl
      
      Subscribers: aprantl, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D33893
      
      llvm-svn: 305312
      3dbcced0
    • Craig Topper's avatar
      [IR] Remove a couple explicitly deleted default constructors on classes that... · 65f9da3f
      Craig Topper authored
      [IR] Remove a couple explicitly deleted default constructors on classes that have a non-default constructor. NFC
      
      The non-default constructor will implicitly delete the default constructor.
      
      llvm-svn: 305311
      65f9da3f
    • Geoff Berry's avatar
      [AArch64][Falkor] Fix sched details for FDIV, FSQRT, SDIV, UDIV · 13d5dcb0
      Geoff Berry authored
      llvm-svn: 305310
      13d5dcb0
    • Kit Barton's avatar
      Test commit - NFC. · 0b216305
      Kit Barton authored
      Modified a comment to confirm commit access functionality.
      
      llvm-svn: 305309
      0b216305
    • Craig Topper's avatar
      Fix m_[Ord|Unord][FMin|FMax] matchers to correctly match ordering. · c6635529
      Craig Topper authored
      Previously, the matching was done incorrectly for the case where
      operands for FCmpInst and SelectInst were in opposite order.
      
      Patch by Andrei Elovikov.
      
      Differential Revision: https://reviews.llvm.org/D33185
      
      llvm-svn: 305308
      c6635529
    • Jonathan Peyton's avatar
      Replace platform macro with KMP_MIC_SUPPORTED · 492e0a33
      Jonathan Peyton authored
      Differential Revision: https://reviews.llvm.org/D34119
      
      llvm-svn: 305307
      492e0a33
    • Jonathan Peyton's avatar
      Reset initial affinity in children processes · d330e630
      Jonathan Peyton authored
      If OpenMP is initialized before fork()-ing occurs and affinity is set to
      something like compact, then the master thread will be pinned to a single HW
      thread/core after initialization. If the master (or any other thread) then
      forks N processes, all N processes will then be pinned to that same single HW
      thread/core. To reset the affinity for the new child process, the atfork
      handler for the child process can call kmp_set_thread_affinity_mask_initial()
      to reset its affinity to the initial affinity of the application before it
      re-initializes libomp. The parent process will not be affected and still
      keeps its affinity setting.
      
      Differential Revision: https://reviews.llvm.org/D34118
      
      llvm-svn: 305306
      d330e630
    • Krzysztof Parzyszek's avatar
      [Hexagon] Generate store-immediate instructions for stack objects · b3a8d20e
      Krzysztof Parzyszek authored
      Store-immediate instructions have a non-extendable offset. Since the
      actual offset for a stack object is not known until much later, only
      generate these stores when the stack size (at the time of instruction
      selection) is small.
      
      llvm-svn: 305305
      b3a8d20e
    • Florian Hahn's avatar
      Align definition of DW_OP_plus with DWARF spec [1/3] · c9c403c0
      Florian Hahn authored
      Summary:
      This patch is part of 3 patches that together form a single patch, but must be introduced in stages in order not to break things.
       
      The way that LLVM interprets DW_OP_plus in DIExpression nodes is basically that of the DW_OP_plus_uconst operator since LLVM expects an unsigned constant operand. This unnecessarily restricts the DW_OP_plus operator, preventing it from being used to describe the evaluation of runtime values on the expression stack. These patches try to align the semantics of DW_OP_plus and DW_OP_minus with that of the DWARF definition, which pops two elements off the expression stack, performs the operation and pushes the result back on the stack.
       
      This is done in three stages:
      • The first patch (LLVM) adds support for DW_OP_plus_uconst.
      • The second patch (Clang) contains changes all its uses from DW_OP_plus to DW_OP_plus_uconst.
      • The third patch (LLVM) changes the semantics of DW_OP_plus and DW_OP_minus to be in line with its DWARF meaning. This patch includes the bitcode upgrade from legacy DIExpressions.
      
      Patch by Sander de Smalen.
      
      Reviewers: pcc, echristo, aprantl
      
      Reviewed By: aprantl
      
      Subscribers: fhahn, aprantl, javed.absar, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D33892
      
      llvm-svn: 305304
      c9c403c0
    • Frederich Munch's avatar
      Force RegisterStandardPasses to construct std::function in the IPO library. · 4c73b40d
      Frederich Munch authored
      Summary: Fixes an issue using RegisterStandardPasses from a statically linked object before PassManagerBuilder::addGlobalExtension is called from a dynamic library.
      
      Reviewers: efriedma, theraven
      
      Reviewed By: efriedma
      
      Subscribers: mehdi_amini, mgorny, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D33515
      
      llvm-svn: 305303
      4c73b40d
    • Krzysztof Parzyszek's avatar
      [Hexagon] Generate multiply-high instruction in isel · c83c267b
      Krzysztof Parzyszek authored
      llvm-svn: 305302
      c83c267b
    • Yonghong Song's avatar
      bpf: clang-format on BPFAsmPrinter.cpp · 7e9d2cb5
      Yonghong Song authored
      
      
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      llvm-svn: 305301
      7e9d2cb5
    • Krzysztof Parzyszek's avatar
      [Hexagon] Don't kill live registers when creating mux out of tfr · de2ac17b
      Krzysztof Parzyszek authored
      When a mux instruction is created from a pair of complementary conditional
      transfers, it can be placed at the location of either the earlier or the
      later of the transfers. Since it will use the operands of the original
      transfers, putting it in the earlier location may hoist a kill of a source
      register that was originally further down. Make sure the kill flag is
      removed if the register is still used afterwards.
      
      llvm-svn: 305300
      de2ac17b
    • Ilya Biryukov's avatar
      [clangd] A comment for ClangdServer's constructor. NFC. · 0bdafe5b
      Ilya Biryukov authored
      llvm-svn: 305299
      0bdafe5b
    • Ilya Biryukov's avatar
      [clangd] Store references instead of unique_ptrs in ClangdServer. · 103c951c
      Ilya Biryukov authored
      Summary:
      ClangdServer owned objects passed to it in constructor for no good reason.
      Lots of stuff was moved from the heap to the stack thanks to this change.
      
      Reviewers: krasimir
      
      Reviewed By: krasimir
      
      Subscribers: klimek, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D34148
      
      llvm-svn: 305298
      103c951c
    • Sam Clegg's avatar
      Add llvm-pdbutil tool_patterns in lit.cfg · be373670
      Sam Clegg authored
      This means that 'llvm-pdbutil' in test commands will resolve
      to the absolute path to the tool, in line with what happens
      already for other tools.
      
      This works either way because the bin directory is also
      prepended to the PATH.  I'm not sure why both methods are
      used.
      
      Differential Revision: https://reviews.llvm.org/D34128
      
      llvm-svn: 305297
      be373670
    • Reid Kleckner's avatar
      [PDB] Add a module descriptor for every object file · 8cbdd0c0
      Reid Kleckner authored
      Summary:
      Expose the module descriptor index and fill it in for section
      contributions.
      
      Reviewers: zturner
      
      Subscribers: llvm-commits, ruiu, hiraditya
      
      Differential Revision: https://reviews.llvm.org/D34126
      
      llvm-svn: 305296
      8cbdd0c0
    • Reid Kleckner's avatar
      [lld] Add .s to the test suffix list for all lld ports · 41ff5706
      Reid Kleckner authored
      We have two .s test files in lld/test/COFF that weren't being run as
      part of check-lld. They both pass locally for me.
      
      llvm-svn: 305295
      41ff5706
    • Gheorghe-Teodor Bercea's avatar
      Add comma to comment. · 47633db4
      Gheorghe-Teodor Bercea authored
      llvm-svn: 305294
      47633db4
Loading