Skip to content
  1. Sep 27, 2016
    • Martin Storsjö's avatar
      Fix a typo, depricated -> deprecated · 055a7026
      Martin Storsjö authored
      Differential Revision: https://reviews.llvm.org/D22849
      
      llvm-svn: 282534
      055a7026
    • Matthias Braun's avatar
      Adapt to LLVM EnableStatistics() change. · ec1c5a20
      Matthias Braun authored
      llvm-svn: 282533
      ec1c5a20
    • Matthias Braun's avatar
      Statistic: Bring back printing on exit by default · 5391ffb6
      Matthias Braun authored
      Turns out several external projects relied on llvm printing statistics
      on exit. Let's go back to this behaviour by default and have an optional
      parameter to disable it.
      
      llvm-svn: 282532
      5391ffb6
    • Martin Storsjö's avatar
      [COFF] Add support for IMAGE_REL_ARM_SECREL · 63762b58
      Martin Storsjö authored
      Handle this in the exact same way as IMAGE_REL_AMD64_SECREL
      and IMAGE_REL_I386_SECREL.
      
      Differential revision: https://reviews.llvm.org/D24608
      
      llvm-svn: 282531
      63762b58
    • Saleem Abdulrasool's avatar
      builtins: use thumb-2 if possible on comparesf2 · 81eb5f6a
      Saleem Abdulrasool authored
      This code can be built with thumb-2 like many of the other builtin routines.
      Enable that here as well.
      
      llvm-svn: 282530
      81eb5f6a
    • Dimitar Vlahovski's avatar
      Adding a RegisterContextMinidump_x86_64 converter · 4c31907d
      Dimitar Vlahovski authored
      Summary:
      This is a register context converter from Minidump to Linux reg context.
      This knows the layout of the register context in the Minidump file
      (which is the same as in Windows FYI) and as a result emits a binary data
      buffer that matches the Linux register context binary layout.
      This way we can reuse the existing RegisterContextLinux_x86_64 and
      RegisterContextCorePOSIX_x86_64 classes.
      
      Reviewers: labath, zturner
      
      Subscribers: beanz, mgorny, lldb-commits, amccarth
      
      Differential Revision: https://reviews.llvm.org/D24919
      
      llvm-svn: 282529
      4c31907d
    • Daniel Dunbar's avatar
      [lit] Add instructions to run lit's test suite · 5a751c63
      Daniel Dunbar authored
       - Patch by Brian Gesiak.
       
       - https://reviews.llvm.org/D24968
      
      llvm-svn: 282525
      5a751c63
    • Michal Gorny's avatar
      Revert r282483 - [cmake] Add linker option "-Wl,-z,defs" in standalone build · 0e40bee8
      Michal Gorny authored
      Revert r282483 as it causes build failures due to missing symbols when
      not linking to -lgcc_s (i.e. doing pure LLVM stack build). The patch can
      be reintroduced when the build system is fixed to add all needed
      libraries (libunwind, compiler-rt).
      
      llvm-svn: 282524
      0e40bee8
    • Davide Italiano's avatar
      [llvm-cxxfilt] Use llvm::outs(). Simplify. · c37eb11f
      Davide Italiano authored
      This adds a dependency on Support/. As llvm-cxxfilt will grow
      support for options this will be needed anyway.
      
      llvm-svn: 282523
      c37eb11f
    • Sanjay Patel's avatar
      [x86] use isNullFPConstant(); NFCI · 43ef1ad0
      Sanjay Patel authored
      Also, put the related FP logic functions together to see the similarities. 
      
      llvm-svn: 282522
      43ef1ad0
    • Reid Kleckner's avatar
      [DebugInfo] Add comments to phi dbg.value tracking code, NFC · 6481822e
      Reid Kleckner authored
      LLVM developers might be surprised to learn that there are blocks
      without valid insertion points (catchswitch), so it seems worth calling
      that out explicitly.  Also add a FIXME about what we should really be
      doing if we ever need to make optimized Windows EH code debuggable.
      
      While I'm here, make auto usage more consistent with LLVM standards and
      avoid an unecessary call to insertBefore.
      
      llvm-svn: 282521
      6481822e
    • Krzysztof Parzyszek's avatar
      [RDF] Add "dead" flag to node attributes · 586fc12e
      Krzysztof Parzyszek authored
      llvm-svn: 282520
      586fc12e
    • Krzysztof Parzyszek's avatar
      [RDF] Special treatment of exception handling registers · 1d322207
      Krzysztof Parzyszek authored
      A landing pad can have live-in registers that are defined by the runtime,
      not the program (exception pointer register and exception selector
      register). Make sure to recognize that case and not link these registers
      with any defs in the program.
      Each landing pad will have phi nodes added at the beginning to provide
      definitions of these registers, but the uses of those phi nodes will not
      have any reaching defs.
      
      llvm-svn: 282519
      1d322207
    • Chris Bieneman's avatar
      Improve CMake output of host and target triple · 0775a232
      Chris Bieneman authored
      Summary:
      The previous output was confusing as it would output "Taget triple:
      x86_64-unknown-linux-gnu" even when LLVM_HOST_TRIPLE or
      LLVM_DEFAULT_TARGET_TRIPLE were set on the CMake command line
      
      Patch by: Alex Richardson!
      
      Reviewers: beanz
      
      Subscribers: Eugene.Zelenko
      
      Differential Revision: https://reviews.llvm.org/D17067
      
      llvm-svn: 282516
      0775a232
    • Sanjoy Das's avatar
      [SCEV] Replace a struct with a function; NFC · 237c8454
      Sanjoy Das authored
      We can do this now thanks to C++11 lambdas.
      
      llvm-svn: 282515
      237c8454
    • Sanjoy Das's avatar
      [SCEV] Use find instead of find_as; NFC · a2602141
      Sanjoy Das authored
      We don't need the extra generality here.
      
      llvm-svn: 282514
      a2602141
    • Sanjoy Das's avatar
      [SCEV] Reduce the scope of a struct; NFC · c220ac79
      Sanjoy Das authored
      llvm-svn: 282513
      c220ac79
    • Sanjoy Das's avatar
      [SCEV] Remove custom RAII wrapper; NFC · c46bceb6
      Sanjoy Das authored
      Instead use the pre-existing `scope_exit` class.
      
      llvm-svn: 282512
      c46bceb6
    • Sanjoy Das's avatar
      [SCEV] Make PendingLoopPredicates more frugal; NFCI · db933757
      Sanjoy Das authored
      I don't expect `PendingLoopPredicates` to have very many
      elements (e.g. when -O3'ing the sqlite3 amalgamation,
      `PendingLoopPredicates` has at most 3 elements).  So now we use a
      `SmallPtrSet` for it instead of the more heavyweight `DenseSet`.
      
      llvm-svn: 282511
      db933757
    • Chris Bieneman's avatar
      [CMake] Use if(... IN_LIST ...) instead of list(FIND...) · 44d29908
      Chris Bieneman authored
      NFC. This is just a little code cleanup to make things easier to read and understand.
      
      llvm-svn: 282510
      44d29908
    • Jonathan Peyton's avatar
      Mixed type atomic routines for unsigned integers. · be31337e
      Jonathan Peyton authored
      New routines should be used for atomics like "<int>OP=<float>" when <int> is
      unsigned. Using functions __kmpc_atomic_fixed<bits>_<op>_fp) produces incorrect
      results
      
      Differential Revision: https://reviews.llvm.org/D24756
      
      llvm-svn: 282509
      be31337e
    • Todd Fiala's avatar
      convert TestFatArchives.py over to no-debug-info test · 789ea82f
      Todd Fiala authored
      We only use the .o-style debug info here regardless, so having
      it run all three debuginfo styles was a waste.
      
      This also strips out the custom build function and uses the
      TestBase.build() method.
      
      llvm-svn: 282508
      789ea82f
    • Jonathan Peyton's avatar
      Disable monitor thread creation by default. · b66d1aab
      Jonathan Peyton authored
      This change set disables creation of the monitor thread by default.  The global
      counter maintained by the monitor thread was replaced by logic that uses system
      time directly, and cyclic yielding on Linux target was also removed since there
      was no clear benefit of using it. Turning on KMP_USE_MONITOR variable (=1)
      enables creation of monitor thread again if it is really necessary for some
      reasons.
      
      Differential Revision: https://reviews.llvm.org/D24739
      
      llvm-svn: 282507
      b66d1aab
    • Keith Walker's avatar
      Propagate DBG_VALUE entries when there are unvisited predecessors · 83ebef5d
      Keith Walker authored
      Variables are sometimes missing their debug location information in
      blocks in which the variables should be available. This would occur
      when one or more predecessor blocks had not yet been visited by the
      routine which propagated the information from predecessor blocks.
      
      This is addressed by only considering predecessor blocks which have
      already been visited.
      
      The solution to this problem was suggested by Daniel Berlin on the
      LLVM developer mailing list.
      
      Differential Revision: https://reviews.llvm.org/D24927
      
      llvm-svn: 282506
      83ebef5d
    • Rafael Espindola's avatar
      Use xxhash for fast --build-id. · a42b3bca
      Rafael Espindola authored
      The speed improvements I got were:
      
      firefox
        master 7.050784981
        patch  6.842361079 0.970439617353
      chromium
        master 4.260626249
        patch  4.183148025 0.981815296749
      chromium fast
        master 1.829028591
        patch  1.806439277 0.987649556649
      the gold plugin
        master 0.336154128
        patch  0.331893374 0.987324998728
      clang
        master 0.561869781
        patch  0.558640828 0.994253200458
      llvm-as
        master 0.034025959
        patch  0.033984389 0.99877828572
      the gold plugin fsds
        master 0.360710529
        patch  0.356483564 0.988281559145
      clang fsds
        master 0.640518422
        patch  0.632329874 0.987215749432
      llvm-as fsds
        master 0.031569416
        patch  0.030822055 0.976326423017
      scylla
        master 3.154770529
        patch  3.11982016 0.988921422754
      
      llvm-svn: 282505
      a42b3bca
    • Adam Nemet's avatar
      Revert "Adapt to LLVM optimization remark interface change. NFC" · 95d0c628
      Adam Nemet authored
      This reverts commit r282500.
      
      llvm-svn: 282504
      95d0c628
    • Adam Nemet's avatar
      Revert "Output optimization remarks in YAML" · cc2a3fa8
      Adam Nemet authored
      This reverts commit r282499.
      
      The GCC bots are failing
      
      llvm-svn: 282503
      cc2a3fa8
    • Zachary Turner's avatar
      Add llvm::join_items to StringExtras. · 0e31a384
      Zachary Turner authored
      llvm::join_items is similar to llvm::join, which produces a string
      by concatenating a sequence of values together separated by a
      given separator.  But it differs in that the arguments to
      llvm::join() are same-type members of a container, whereas the
      arguments to llvm::join_items are arbitrary types passed into
      a variadic template.  The only requirement on parameters to
      llvm::join_items (including for the separator themselves) is
      that they be implicitly convertible to std::string or have
      an overload of std::string::operator+
      
      Differential Revision: https://reviews.llvm.org/D24880
      
      llvm-svn: 282502
      0e31a384
    • Daniel Dunbar's avatar
      [lit] Fix refacto introduced by rL282479. · 1280004d
      Daniel Dunbar authored
      llvm-svn: 282501
      1280004d
    • Adam Nemet's avatar
      Adapt to LLVM optimization remark interface change. NFC · 8f1e8710
      Adam Nemet authored
      llvm-svn: 282500
      8f1e8710
    • Adam Nemet's avatar
      Output optimization remarks in YAML · 92e928c1
      Adam Nemet authored
      This allows various presentation of this data using an external tool.
      This was first recommended here[1].
      
      As an example, consider this module:
      
        1 int foo();
        2 int bar();
        3
        4 int baz() {
        5   return foo() + bar();
        6 }
      
      The inliner generates these missed-optimization remarks today (the
      hotness information is pulled from PGO):
      
        remark: /tmp/s.c:5:10: foo will not be inlined into baz (hotness: 30)
        remark: /tmp/s.c:5:18: bar will not be inlined into baz (hotness: 30)
      
      Now with -pass-remarks-output=<yaml-file>, we generate this YAML file:
      
        --- !Missed
        Pass:            inline
        Name:            NotInlined
        DebugLoc:        { File: /tmp/s.c, Line: 5, Column: 10 }
        Function:        baz
        Hotness:         30
        Args:
          - Callee: foo
          - String:  will not be inlined into
          - Caller: baz
        ...
        --- !Missed
        Pass:            inline
        Name:            NotInlined
        DebugLoc:        { File: /tmp/s.c, Line: 5, Column: 18 }
        Function:        baz
        Hotness:         30
        Args:
          - Callee: bar
          - String:  will not be inlined into
          - Caller: baz
        ...
      
      This is a summary of the high-level decisions:
      
      * There is a new streaming interface to emit optimization remarks.
      E.g. for the inliner remark above:
      
         ORE.emit(DiagnosticInfoOptimizationRemarkMissed(
                      DEBUG_TYPE, "NotInlined", &I)
                  << NV("Callee", Callee) << " will not be inlined into "
                  << NV("Caller", CS.getCaller()) << setIsVerbose());
      
      NV stands for named value and allows the YAML client to process a remark
      using its name (NotInlined) and the named arguments (Callee and Caller)
      without parsing the text of the message.
      
      Subsequent patches will update ORE users to use the new streaming API.
      
      * I am using YAML I/O for writing the YAML file.  YAML I/O requires you
      to specify reading and writing at once but reading is highly non-trivial
      for some of the more complex LLVM types.  Since it's not clear that we
      (ever) want to use LLVM to parse this YAML file, the code supports and
      asserts that we're writing only.
      
      On the other hand, I did experiment that the class hierarchy starting at
      DiagnosticInfoOptimizationBase can be mapped back from YAML generated
      here (see D24479).
      
      * The YAML stream is stored in the LLVM context.
      
      * In the example, we can probably further specify the IR value used,
      i.e. print "Function" rather than "Value".
      
      * As before hotness is computed in the analysis pass instead of
      DiganosticInfo.  This avoids the layering problem since BFI is in
      Analysis while DiagnosticInfo is in IR.
      
      [1] https://reviews.llvm.org/D19678#419445
      
      Differential Revision: https://reviews.llvm.org/D24587
      
      llvm-svn: 282499
      92e928c1
    • Adam Nemet's avatar
      Sort headers · b897fa53
      Adam Nemet authored
      llvm-svn: 282498
      b897fa53
    • George Rimar's avatar
      [ELF] - Fixed string encoding in test. NFC. · 31507998
      George Rimar authored
      llvm-svn: 282497
      31507998
    • Todd Fiala's avatar
      xfail TestExec.py on macOS · abe4ca7c
      Todd Fiala authored
      Tracked by:
      rdar://28476369
      
      llvm-svn: 282496
      abe4ca7c
    • George Rimar's avatar
      [ELF] - Fixed linkage error when using -g --gc-sections together. · 74661eb0
      George Rimar authored
      r282444 introduced new issue, sample program below
      fails to link on
      
      assert(Piece.Live);
      int main() { return 0; }
      clang test.cpp -c -o out.o -g
      ld.lld -flavor gnu --gc-sections out.o -o out
      
      Problem is that .debug_info contains relocations to .debug_str:
      Section (7) .rela.debug_info {
      ..
      
      0xC R_X86_64_32 .debug_str 0x0
      0x12 R_X86_64_32 .debug_str 0x37
      ..
      But we do not preserve .debug_str in a right way now.
      
      To fix this we should ignore relocations from non-allocatable sections to allocatable
      to allow GC work at full power, but still should proccess relocations from non-allocatable to non-allocatable sections
      as usual to mark some parts of debug sections alive to keep them so we do not end 
      up with such assert when trying to access dead pieces. That looks like what gold/ld do, they do 
      not strip .debug_str section from what I saw using sample provided.
      
      Thanks to Evgeny Leviant for suggestions about how to fix this.
      
      Differential revision: https://reviews.llvm.org/D24967
      
      llvm-svn: 282495
      74661eb0
    • Manuel Klimek's avatar
      project_id is from another era in phabricator land and does not provide any value. · 1d9bc9c5
      Manuel Klimek authored
      Patch by Eitan Adler.
      
      llvm-svn: 282494
      1d9bc9c5
    • Rafael Espindola's avatar
      Add xxhash to llvm. · eaeb6d91
      Rafael Espindola authored
      It will be used for fast fingerprinting in lld at least.
      
      llvm-svn: 282493
      eaeb6d91
    • Ayman Musa's avatar
      Update to commit r282488, fix the buildboot failure. · 17a2819b
      Ayman Musa authored
      llvm-svn: 282492
      17a2819b
    • Jason Henline's avatar
      [SE] Change CoreTests target name · 7bb01a2d
      Jason Henline authored
      Summary:
      Call it StreamExecutorCoreTests in order to prevent collision with
      targets from other modules.
      
      Reviewers: jlebar, jprice
      
      Subscribers: beanz, mgorny, jlebar, parallel_libs-commits
      
      Differential Revision: https://reviews.llvm.org/D24949
      
      llvm-svn: 282491
      7bb01a2d
    • Alexander Kornienko's avatar
      [docs] Fix naming style in the example · f1e68ffa
      Alexander Kornienko authored
      llvm-svn: 282490
      f1e68ffa
Loading