Skip to content
  1. Feb 28, 2014
    • Tobias Grosser's avatar
      Add 'remark' diagnostic type in LLVM · e8d4c9a2
      Tobias Grosser authored
      A 'remark' is information that is not an error or a warning, but rather some
      additional information provided to the user. In contrast to a 'note' a 'remark'
      is an independent diagnostic, whereas a 'note' always depends on another
      diagnostic.
      
      A typical use case for remark nodes is information provided to the user, e.g.
      information provided by the vectorizer about loops that have been vectorized.
      
      llvm-svn: 202474
      e8d4c9a2
    • Alexey Samsonov's avatar
      a82e4c80
    • Alexey Samsonov's avatar
      [CMake] Fix PR18987: discard /MD flag if we're adding /MT · 6c282b41
      Alexey Samsonov authored
      llvm-svn: 202472
      6c282b41
    • Argyrios Kyrtzidis's avatar
      [ASTUnit] Don't let the preamble diagnostics out-live the CompilerInstance that created them, · 24c55228
      Argyrios Kyrtzidis authored
      this is inherently unsafe.
      
      Instead get the diagnostic info into a SourceManager-independent form.
      
      llvm-svn: 202471
      24c55228
    • Dmitry Vyukov's avatar
      tsan: add new line at the end of error message · 6403c34c
      Dmitry Vyukov authored
      llvm-svn: 202470
      6403c34c
    • Hal Finkel's avatar
      Swap PPC isel operands to allow for 0-folding · b998915e
      Hal Finkel authored
      The PPC isel instruction can fold 0 into the first operand (thus eliminating
      the need to materialize a zero-containing register when the 'true' result of
      the isel is 0). When the isel is fed by a bit register operation that we can
      invert, do so as part of the bit-register-operation peephole routine.
      
      llvm-svn: 202469
      b998915e
    • Bob Wilson's avatar
      Add a testcase for r202437. · 1e3f3bf9
      Bob Wilson authored
      llvm-svn: 202468
      1e3f3bf9
    • Nick Lewycky's avatar
      Fix crash with enable_if on constructors. · b8336b7d
      Nick Lewycky authored
      llvm-svn: 202467
      b8336b7d
    • Rui Ueyama's avatar
      llvm-objdump: Fix crash bug with printing unwind info on stripped file. · cf39784b
      Rui Ueyama authored
      The current COFF unwind printer tries to print SEH handler function names,
      assuming that it can always find function names in string table. It crashes
      if file being read has no symbol table (i.e. executable).
      
      With this patch, llvm-objdump prints SEH handler's RVA if there's no symbol
      table entry for that RVA.
      
      llvm-svn: 202466
      cf39784b
    • Rui Ueyama's avatar
      Style fix. · 1618fe25
      Rui Ueyama authored
      llvm-svn: 202465
      1618fe25
    • Jim Ingham's avatar
      Plumb the EvaluateExpressionOptions::{Set,Get}StopOthers through the SB API,... · 286fb1ef
      Jim Ingham authored
      Plumb the EvaluateExpressionOptions::{Set,Get}StopOthers through the SB API, and make it work in RunThreadPlan.
      Also remove SetStopOthers from the ThreadPlanCallFunction, because if the value you have doesn't match what is
      in the EvaluateExpressionOptions the plan was passed when created it won't work correctly.
      
      llvm-svn: 202464
      286fb1ef
    • Rafael Espindola's avatar
      Now that it is possible, use the mangler in IRObjectFile. · a51f0f83
      Rafael Espindola authored
      A really simple patch marks the end of a lot of yak shaving :-)
      
      llvm-svn: 202463
      a51f0f83
    • Rafael Espindola's avatar
      Add support for OpenBSD SPARC assembler. · cc126271
      Rafael Espindola authored
      Patch by Brad Smith.
      
      llvm-svn: 202462
      cc126271
    • Richard Smith's avatar
      Add a -Wclass-varargs to warn on objects of any class type being passed... · 2868a736
      Richard Smith authored
      Add a -Wclass-varargs to warn on objects of any class type being passed through an ellipsis. Since C++11 relaxed the rules on this, we allow a lot more bad code through silently, such as:
      
        const char *format = "%s";
        std::experimental::string_view view = "foo";
        printf(format, view);
      
      In this case, not only warn about a class type being used here, but also suggest that calling c_str() might be a good idea.
      
      llvm-svn: 202461
      2868a736
    • Rui Ueyama's avatar
      Rename coff_pdata_x64 -> coff_runtime_function_x64. · 854d6d0a
      Rui Ueyama authored
      llvm-svn: 202460
      854d6d0a
    • Hal Finkel's avatar
      Trying to unbreak the darwin11 builder · 5cae2168
      Hal Finkel authored
      The CR bit tracking code broke PPC/Darwin; trying to get it working again...
      
      (the darwin11 builder, which defaults to the darwin ABI when running PPC tests,
      asserted when running test/CodeGen/PowerPC/inverted-bool-compares.ll)
      
      llvm-svn: 202459
      5cae2168
    • Reid Kleckner's avatar
      Attempt to fix non-MSVC build · 383c2f23
      Reid Kleckner authored
      llvm-svn: 202458
      383c2f23
    • Reid Kleckner's avatar
      -fdump-record-layouts: Sort nvbases by offset before printing them · ad59deb4
      Reid Kleckner authored
      It makes our -fdump-record-layouts a little more sane.
      
      llvm-svn: 202457
      ad59deb4
    • Todd Fiala's avatar
      Re-enable TestExprDoesntBlock.py on Linux. · 550b1a29
      Todd Fiala authored
      This is related to:
      http://llvm.org/bugs/show_bug.cgi?id=15258
      
      I ran this test 10 times successfully against Ubuntu 12.04 LTS x86_64
      with lldb built with gcc 4.8.2 and July 2013 libedit.
      
      llvm-svn: 202456
      550b1a29
    • Hal Finkel's avatar
      Try to unbreak the C++11 build · b39a0475
      Hal Finkel authored
      Cannot use negative numbers in case statements without running afoul of -Wc++11-narrowing.
      
      llvm-svn: 202455
      b39a0475
    • NAKAMURA Takumi's avatar
      b47a2c09
    • Hal Finkel's avatar
      Add -mcrbits/-mno-crbits to control the PowerPC CR-bit-tracking feature · 00a950f4
      Hal Finkel authored
      The backend currently enables CR-bit tracking by default at -O2 and higher.
      These flags allow the user to override that default.
      
      llvm-svn: 202453
      00a950f4
    • Alexander Kornienko's avatar
      Added a naive NOLINT implementation. · 31219d3a
      Alexander Kornienko authored
      Summary:
      Added a naive NOLINT implementation. It doesn't care about specific
      linter categories, just the "// NOLINT" on the same line as a diagnostic.
      
      Reviewers: klimek
      
      Reviewed By: klimek
      
      CC: cfe-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D2896
      
      llvm-svn: 202452
      31219d3a
    • Hal Finkel's avatar
      Add CR-bit tracking to the PowerPC backend for i1 values · 940ab934
      Hal Finkel authored
      This change enables tracking i1 values in the PowerPC backend using the
      condition register bits. These bits can be treated on PowerPC as separate
      registers; individual bit operations (and, or, xor, etc.) are supported.
      Tracking booleans in CR bits has several advantages:
      
       - Reduction in register pressure (because we no longer need GPRs to store
         boolean values).
      
       - Logical operations on booleans can be handled more efficiently; we used to
         have to move all results from comparisons into GPRs, perform promoted
         logical operations in GPRs, and then move the result back into condition
         register bits to be used by conditional branches. This can be very
         inefficient, because the throughput of these CR <-> GPR moves have high
         latency and low throughput (especially when other associated instructions
         are accounted for).
      
       - On the POWER7 and similar cores, we can increase total throughput by using
         the CR bits. CR bit operations have a dedicated functional unit.
      
      Most of this is more-or-less mechanical: Adjustments were needed in the
      calling-convention code, support was added for spilling/restoring individual
      condition-register bits, and conditional branch instruction definitions taking
      specific CR bits were added (plus patterns and code for generating bit-level
      operations).
      
      This is enabled by default when running at -O2 and higher. For -O0 and -O1,
      where the ability to debug is more important, this feature is disabled by
      default. Individual CR bits do not have assigned DWARF register numbers,
      and storing values in CR bits makes them invisible to the debugger.
      
      It is critical, however, that we don't move i1 values that have been promoted
      to larger values (such as those passed as function arguments) into bit
      registers only to quickly turn around and move the values back into GPRs (such
      as happens when values are returned by functions). A pair of target-specific
      DAG combines are added to remove the trunc/extends in:
        trunc(binary-ops(binary-ops(zext(x), zext(y)), ...)
      and:
        zext(binary-ops(binary-ops(trunc(x), trunc(y)), ...)
      In short, we only want to use CR bits where some of the i1 values come from
      comparisons or are used by conditional branches or selects. To put it another
      way, if we can do the entire i1 computation in GPRs, then we probably should
      (on the POWER7, the GPR-operation throughput is higher, and for all cores, the
      CR <-> GPR moves are expensive).
      
      POWER7 test-suite performance results (from 10 runs in each configuration):
      
      SingleSource/Benchmarks/Misc/mandel-2: 35% speedup
      MultiSource/Benchmarks/Prolangs-C++/city/city: 21% speedup
      MultiSource/Benchmarks/MiBench/automotive-susan: 23% speedup
      SingleSource/Benchmarks/CoyoteBench/huffbench: 13% speedup
      SingleSource/Benchmarks/Misc-C++/Large/sphereflake: 13% speedup
      SingleSource/Benchmarks/Misc-C++/mandel-text: 10% speedup
      
      SingleSource/Benchmarks/Misc-C++-EH/spirit: 10% slowdown
      MultiSource/Applications/lemon/lemon: 8% slowdown
      
      llvm-svn: 202451
      940ab934
    • Hal Finkel's avatar
      Add an OutPatFrag TableGen class · 2756dc17
      Hal Finkel authored
      Unfortunately, it is currently impossible to use a PatFrag as part of an output
      pattern (the part of the pattern that has instructions in it) in TableGen.
      Looking at the current implementation, this was clearly intended to work (there
      is already code in place to expand patterns in the output DAG), but is
      currently broken by the baked-in type-checking assumption and the order in which
      the pattern fragments are processed (output pattern fragments need to be
      processed after the instruction definitions are processed).
      
      Fixing this is fairly simple, but requires some way of differentiating output
      patterns from the existing input patterns. The simplest way to handle this
      seems to be to create a subclass of PatFrag, and so that's what I've done here.
      
      As a simple example, this allows us to write:
      
      def crnot : OutPatFrag<(ops node:$in),
                             (CRNOR $in, $in)>;
      
      def       : Pat<(not i1:$in),
                      (crnot $in)>;
      
      which captures the core use case: handling of repeated subexpressions inside
      of complicated output patterns.
      
      This will be used by an upcoming commit to the PowerPC backend.
      
      llvm-svn: 202450
      2756dc17
    • Hal Finkel's avatar
      Fix visitTRUNCATE for legal i1 values · ab51ecd4
      Hal Finkel authored
      This extract-and-trunc vector optimization cannot work for i1 values as
      currently implemented, and so I'm disabling this for now for i1 values. In the
      future, this can be fixed properly.
      
      Soon I'll commit support for i1 CR bit tracking in the PowerPC backend, and
      this will be covered by one of the existing regression tests.
      
      llvm-svn: 202449
      ab51ecd4
    • Todd Fiala's avatar
      Enable TestCallThatRestarts test on Linux. · 7ffb2b0b
      Todd Fiala authored
      This is related to:
      http://llvm.org/bugs/show_bug.cgi?id=15278
      
      I ran this 20 times in a row without failure at svn r202440 on Ubuntu
      12.04 LTS x86_64 using July 2013 libedit and gcc 4.8.2.
      
      llvm-svn: 202448
      7ffb2b0b
    • Greg Clayton's avatar
      Revert Xcode run argument settings that were accidentally checked in. · 52c3a07e
      Greg Clayton authored
      llvm-svn: 202447
      52c3a07e
    • Todd Fiala's avatar
      Re-enable TestMultithreaded.py test on Linux. · 347284f8
      Todd Fiala authored
      I could not get http://llvm.org/bugs/show_bug.cgi?id=16016)
      to fail on my end running 10 times in a row.  Re-enabling
      the test.
      
      llvm-svn: 202446
      347284f8
    • Rui Ueyama's avatar
      Remove unnecessary temporary variable. · eaaf5908
      Rui Ueyama authored
      llvm-svn: 202445
      eaaf5908
    • Richard Trieu's avatar
      "&&&" != "&&" · 86738692
      Richard Trieu authored
      llvm-svn: 202444
      86738692
    • Ben Langmuir's avatar
      Revert "Honour 'use-external-names' in FileManager" · 1b8d44f5
      Ben Langmuir authored
      Revert r202442, which broke the buildbots.
      
      llvm-svn: 202443
      1b8d44f5
    • Ben Langmuir's avatar
      Honour 'use-external-names' in FileManager · 09e0d5c1
      Ben Langmuir authored
      Pass through the externally-visible names that we got from the VFS down
      to FileManager, and test that this is the name showing up in __FILE__,
      diagnostics, and debug information.
      
      llvm-svn: 202442
      09e0d5c1
  2. Feb 27, 2014
Loading