Skip to content
  1. Oct 01, 2019
    • Djordje Todorovic's avatar
      Reland "[utils] Implement the llvm-locstats tool" · 6d7f7e67
      Djordje Todorovic authored
      The tool reports verbose output for the DWARF debug location coverage.
      The llvm-locstats for each variable or formal parameter DIE computes what
      percentage from the code section bytes, where it is in scope, it has
      location description. The line 0 shows the number (and the percentage) of
      DIEs with no location information, but the line 100 shows the number (and
      the percentage) of DIEs where there is location information in all code
      section bytes (where the variable or parameter is in the scope). The line
      50..59 shows the number (and the percentage) of DIEs where the location
      information is in between 50 and 59 percentage of its scope covered.
      
      Differential Revision: https://reviews.llvm.org/D66526
      
      llvm-svn: 373317
      6d7f7e67
    • Fangrui Song's avatar
      [llvm-readobj/llvm-readelf] Delete --arm-attributes (alias for --arch-specific) · 2d92c884
      Fangrui Song authored
      D68110 added --arch-specific (supported by GNU readelf) and made
      --arm-attributes an alias for it. The tests were later migrated to use
      --arch-specific.
      
      Note, llvm-readelf --arch-specific currently just uses llvm-readobj
      style output for ARM attributes. The readelf-style output is not
      implemented.
      
      Reviewed By: compnerd, kongyi, rupprecht
      
      Differential Revision: https://reviews.llvm.org/D68196
      
      llvm-svn: 373291
      2d92c884
  2. Sep 30, 2019
    • Djordje Todorovic's avatar
      Revert "Reland "[utils] Implement the llvm-locstats tool"" · 8180f3b1
      Djordje Todorovic authored
      This reverts commit rL373183.
      
      llvm-svn: 373200
      8180f3b1
    • Djordje Todorovic's avatar
      Reland "[utils] Implement the llvm-locstats tool" · 0f309606
      Djordje Todorovic authored
      The tool reports verbose output for the DWARF debug location coverage.
      The llvm-locstats for each variable or formal parameter DIE computes what
      percentage from the code section bytes, where it is in scope, it has
      location description. The line 0 shows the number (and the percentage) of
      DIEs with no location information, but the line 100 shows the number (and
      the percentage) of DIEs where there is location information in all code
      section bytes (where the variable or parameter is in the scope). The line
      50..59 shows the number (and the percentage) of DIEs where the location
      information is in between 50 and 59 percentage of its scope covered.
      
      Differential Revision: https://reviews.llvm.org/D66526
      
      llvm-svn: 373183
      0f309606
  3. Sep 25, 2019
  4. Sep 24, 2019
  5. Sep 23, 2019
    • Djordje Todorovic's avatar
      Revert "Reland "[utils] Implement the llvm-locstats tool"" · ead96d73
      Djordje Todorovic authored
      This reverts commit rL372554.
      
      llvm-svn: 372580
      ead96d73
    • Djordje Todorovic's avatar
      Reland "[utils] Implement the llvm-locstats tool" · 0e490ae0
      Djordje Todorovic authored
      The tool reports verbose output for the DWARF debug location coverage.
      The llvm-locstats for each variable or formal parameter DIE computes what
      percentage from the code section bytes, where it is in scope, it has
      location description. The line 0 shows the number (and the percentage) of
      DIEs with no location information, but the line 100 shows the number (and
      the percentage) of DIEs where there is location information in all code
      section bytes (where the variable or parameter is in the scope). The line
      50..59 shows the number (and the percentage) of DIEs where the location
      information is in between 50 and 59 percentage of its scope covered.
      
      Differential Revision: https://reviews.llvm.org/D66526
      
      llvm-svn: 372554
      0e490ae0
  6. Sep 17, 2019
    • James Henderson's avatar
      [docs] Make --version text more correct · 778a5e57
      James Henderson authored
      Follow-up to r371983. Referring to "this program" in the description of
      the --version option in the documentation isn't exactly correct, because
      the docs are not part of the program, and so "this program" doesn't
      really refer to anything. This patch brings the other users of this
      terminology into line with the new updates to llvm-size and
      llvm-strings.
      
      Reviewed by: alexshap, MaskRay
      
      Differential Revision: https://reviews.llvm.org/D67618
      
      llvm-svn: 372107
      778a5e57
  7. Sep 16, 2019
  8. Sep 14, 2019
    • Fangrui Song's avatar
      [llvm-objcopy] Ignore -B --binary-architecture= · 2f519d70
      Fangrui Song authored
      GNU objcopy documents that -B is only useful with architecture-less
      input (i.e. "binary" or "ihex"). After D67144, -O defaults to -I, and
      -B is essentially a NOP.
      
      * If -O is binary/ihex, GNU objcopy ignores -B.
      * If -O is elf*, -B provides the e_machine field in GNU objcopy.
      
      So to convert a blob to an ELF, `-I binary -B i386:x86-64 -O elf64-x86-64` has to be specified.
      
      `-I binary -B i386:x86-64 -O elf64-x86-64` creates an ELF with its
      e_machine field set to EM_NONE in GNU objcopy, but a regular x86_64 ELF
      in elftoolchain elfcopy. Follow the elftoolchain approach (ignoring -B)
      to simplify code. Users that expect their command line portable should
      specify -B.
      
      Reviewed By: jhenderson
      
      Differential Revision: https://reviews.llvm.org/D67215
      
      llvm-svn: 371914
      2f519d70
    • Michael Pozulp's avatar
      [llvm-objcopy] Add support for response files in llvm-strip and llvm-objcopy · c45fd0ca
      Michael Pozulp authored
      Summary: Addresses https://bugs.llvm.org/show_bug.cgi?id=42671
      
      Reviewers: jhenderson, espindola, alexshap, rupprecht
      
      Reviewed By: jhenderson
      
      Subscribers: seiya, emaste, arichardson, jakehehrlich, MaskRay, abrachet, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D65372
      
      llvm-svn: 371911
      c45fd0ca
  9. Sep 13, 2019
  10. Sep 12, 2019
  11. Sep 10, 2019
    • Djordje Todorovic's avatar
      Revert "[utils] Implement the llvm-locstats tool" · b21cc626
      Djordje Todorovic authored
      This reverts commit rL371520.
      
      llvm-svn: 371527
      b21cc626
    • Djordje Todorovic's avatar
      [utils] Implement the llvm-locstats tool · 54008972
      Djordje Todorovic authored
      The tool reports verbose output for the DWARF debug location coverage.
      The llvm-locstats for each variable or formal parameter DIE computes what
      percentage from the code section bytes, where it is in scope, it has
      location description. The line 0 shows the number (and the percentage) of
      DIEs with no location information, but the line 100 shows the number (and
      the percentage) of DIEs where there is location information in all code
      section bytes (where the variable or parameter is in the scope). The line
      50..59 shows the number (and the percentage) of DIEs where the location
      information is in between 50 and 59 percentage of its scope covered.
      
      The tool will be very useful for tracking improvements regarding the
      "debugging optimized code" support with LLVM ecosystem.
      
      Differential Revision: https://reviews.llvm.org/D66526
      
      llvm-svn: 371520
      54008972
  12. Sep 04, 2019
  13. Sep 02, 2019
    • Thomas Preud'homme's avatar
      [FileCheck] Forbid using var defined on same line · a291b950
      Thomas Preud'homme authored
      Summary:
      Commit r366897 introduced the possibility to set a variable from an
      expression, such as [[#VAR2:VAR1+3]]. While introducing this feature, it
      introduced extra logic to allow using such a variable on the same line
      later on. Unfortunately that extra logic is flawed as it relies on a
      mapping from variable to expression defining it when the mapping is from
      variable definition to expression. This flaw causes among other issues
      PR42896.
      
      This commit avoids the problem by forbidding all use of a variable
      defined on the same line, and removes the now useless logic. Redesign
      will be done in a later commit because it will require some amount of
      refactoring first for the solution to be clean. One example is the need
      for some sort of transaction mechanism to set a variable temporarily and
      from an expression and rollback if the CHECK pattern does not match so
      that diagnostics show the right variable values.
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: JonChesterfield, rogfer01, hfinkel, kristina, rnk, tra, arichardson, grimar, dblaikie, probinson, llvm-commits, hiraditya
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D66141
      
      llvm-svn: 370663
      a291b950
  14. Aug 30, 2019
  15. Aug 22, 2019
  16. Aug 21, 2019
  17. Aug 15, 2019
  18. Aug 09, 2019
    • Michael Pozulp's avatar
      [Docs][llvm-strip] Fix an indentation issue. · 3de98131
      Michael Pozulp authored
      llvm-svn: 368473
      3de98131
    • Michael Pozulp's avatar
      [Docs][llvm-strip] Add help text to llvm-strip rst doc · 4fe911d9
      Michael Pozulp authored
      Summary: Addresses https://bugs.llvm.org/show_bug.cgi?id=42383
      
      Reviewers: jhenderson, alexshap, rupprecht
      
      Reviewed By: jhenderson
      
      Subscribers: wolfgangp, jakehehrlich, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D65384
      
      llvm-svn: 368464
      4fe911d9
    • Andrea Di Biagio's avatar
      [MCA] Add flag -show-encoding to llvm-mca. · cbec9af6
      Andrea Di Biagio authored
      Flag -show-encoding enables the printing of instruction encodings as part of the
      the instruction info view.
      
      Example (with flags -mtriple=x86_64--  -mcpu=btver2):
      
      Instruction Info:
      [1]: #uOps
      [2]: Latency
      [3]: RThroughput
      [4]: MayLoad
      [5]: MayStore
      [6]: HasSideEffects (U)
      [7]: Encoding Size
      
      [1]    [2]    [3]    [4]    [5]    [6]    [7]    Encodings:     Instructions:
       1      2     1.00                         4     c5 f0 59 d0    vmulps   %xmm0, %xmm1, %xmm2
       1      4     1.00                         4     c5 eb 7c da    vhaddps  %xmm2, %xmm2, %xmm3
       1      4     1.00                         4     c5 e3 7c e3    vhaddps  %xmm3, %xmm3, %xmm4
      
      In this example, column Encoding Size is the size in bytes of the instruction
      encoding. Column Encodings reports the actual instruction encodings as byte
      sequences in hex (objdump style).
      
      The computation of encodings is done by a utility class named mca::CodeEmitter.
      
      In future, I plan to expose the CodeEmitter to the instruction builder, so that
      information about instruction encoding sizes can be used by the simulator. That
      would be a first step towards simulating the throughput from the decoders in the
      hardware frontend.
      
      Differential Revision: https://reviews.llvm.org/D65948
      
      llvm-svn: 368432
      cbec9af6
  19. Aug 08, 2019
  20. Aug 06, 2019
  21. Aug 05, 2019
  22. Aug 02, 2019
  23. Jul 26, 2019
  24. Jul 24, 2019
    • Thomas Preud'homme's avatar
      FileCheck [8/12]: Define numeric var from expr · 4cd9b853
      Thomas Preud'homme authored
      Summary:
      This patch is part of a patch series to add support for FileCheck
      numeric expressions. This specific patch lift the restriction for a
      numeric expression to either be a variable definition or a numeric
      expression to try to match.
      
      This commit allows a numeric variable to be set to the result of the
      evaluation of a numeric expression after it has been matched
      successfully. When it happens, the variable is allowed to be used on
      the same line since its value is known at match time.
      
      It also makes use of this possibility to reuse the parsing code to
      parse a command-line definition by crafting a mirror string of the
      -D option with the equal sign replaced by a colon sign, e.g. for option
      '-D#NUMVAL=10' it creates the string
      '-D#NUMVAL=10 (parsed as [[#NUMVAL:10]])' where the numeric expression
      is parsed to define NUMVAL. This result in a few tests needing updating
      for the location diagnostics on top of the tests for the new feature.
      
      It also enables empty numeric expression which match any number without
      defining a variable. This is done here rather than in commit #5 of the
      patch series because it requires to dissociate automatic regex insertion
      in RegExStr from variable definition which would make commit #5 even
      bigger than it already is.
      
      Copyright:
          - Linaro (changes up to diff 183612 of revision D55940)
          - GraphCore (changes in later versions of revision D55940 and
                       in new revision created off D55940)
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, tra, rnk, kristina, hfinkel, rogfer01, JonChesterfield
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D60388
      
      > llvm-svn: 366860
      
      llvm-svn: 366897
      4cd9b853
    • Thomas Preud'homme's avatar
      Revert "FileCheck [8/12]: Define numeric var from expr" · 5ecb8802
      Thomas Preud'homme authored
      This reverts commit 1b059775.
      
      llvm-svn: 366872
      5ecb8802
    • Thomas Preud'homme's avatar
      FileCheck [8/12]: Define numeric var from expr · 1b059775
      Thomas Preud'homme authored
      Summary:
      This patch is part of a patch series to add support for FileCheck
      numeric expressions. This specific patch lift the restriction for a
      numeric expression to either be a variable definition or a numeric
      expression to try to match.
      
      This commit allows a numeric variable to be set to the result of the
      evaluation of a numeric expression after it has been matched
      successfully. When it happens, the variable is allowed to be used on
      the same line since its value is known at match time.
      
      It also makes use of this possibility to reuse the parsing code to
      parse a command-line definition by crafting a mirror string of the
      -D option with the equal sign replaced by a colon sign, e.g. for option
      '-D#NUMVAL=10' it creates the string
      '-D#NUMVAL=10 (parsed as [[#NUMVAL:10]])' where the numeric expression
      is parsed to define NUMVAL. This result in a few tests needing updating
      for the location diagnostics on top of the tests for the new feature.
      
      It also enables empty numeric expression which match any number without
      defining a variable. This is done here rather than in commit #5 of the
      patch series because it requires to dissociate automatic regex insertion
      in RegExStr from variable definition which would make commit #5 even
      bigger than it already is.
      
      Copyright:
          - Linaro (changes up to diff 183612 of revision D55940)
          - GraphCore (changes in later versions of revision D55940 and
                       in new revision created off D55940)
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, tra, rnk, kristina, hfinkel, rogfer01, JonChesterfield
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D60388
      
      llvm-svn: 366860
      1b059775
  25. Jul 16, 2019
Loading