Skip to content
Snippets Groups Projects
  1. Jul 17, 2023
    • Craig Topper's avatar
      [RISCV] Adjust the Zfhmin handling in RISCVInstrInfo::copyPhysReg. · f3b4c266
      Craig Topper authored
      Instead of checking '!Zfh && Zhfmin' first, handle Zfh. Then assert
      that the other case is F+Zfhmin. The F+Zfhmin check will need to be
      relaxed for bfloat16 support. As it was written before there would
      be now error to catch that. Instead it would just silently create
      fsgnj.h instructions.
      f3b4c266
    • Lang Hames's avatar
      [ORC] In defineMaterializing, error out early if tracker is defunct. · 199034e8
      Lang Hames authored
      An in-flight materialization may try to claim responsibility for new symbols
      (via MaterializationResponsibility::defineMaterializing) after the tracker that
      is associated with the materialization is removed, leaving the tracker defunct.
      
      Failure to error out early here could leave the JITDylib in an invalid state,
      with defineMaterializing associating new symbols with the already-defunct
      tracker. Erroring out early prevents this.
      199034e8
  2. Jul 16, 2023
  3. Jul 15, 2023
    • daiyousei-qz's avatar
      [clangd] Implement end-definition-comment inlay hints · 9e6a342f
      daiyousei-qz authored
      This patch implements a new inlay hint feature proposed in https://github.com/clangd/clangd/issues/1634. It introduces a new inlay hint kind BlockEnd which shows a comment-like hint after a definition brace pair, including function/type/namespace. For example,
      ```
      void foo() {
      } ^
      ```
      In the code shown above, a hint should be displayed at ^ labelling `// foo`. Such hint only shows when there's no trailing character after the position except whitespaces and optionally ';'.
      
      Also, new configurations are introduced in the inlay hints block
      ```
      InlayHints:
          BlockEnd: Yes # toggling the feature
      ```
      
      Reviewed By: sammccall
      
      Differential Revision: https://reviews.llvm.org/D150635
      9e6a342f
    • ziqingluo-90's avatar
      Re-land "5b012bf5" · a07a6f6c
      ziqingluo-90 authored
      Removed dependency on `clangSema` from UnsafeBufferAnalysis.
      a07a6f6c
    • Maksim Kita's avatar
      [InstCombine] Generalise ((x1 ^ y1) | (x2 ^ y2)) == 0 transform · da822ce9
      Maksim Kita authored
      Generalise ((x1 ^ y1) | (x2 ^ y2)) == 0 transform to more than two pairs of variables https://github.com/llvm/llvm-project/issues/57831.
      Depends D154384.
      
      Reviewed By: goldstein.w.n, nikic
      
      Differential Revision: https://reviews.llvm.org/D154306
      da822ce9
    • Maksim Kita's avatar
      [InstCombine] Generalise ((x1 ^ y1) | (x2 ^ y2)) == 0 transform tests · 39f0afde
      Maksim Kita authored
      Precommit tests for D154306.
      
      Differential Revision: https://reviews.llvm.org/D154384
      39f0afde
    • Brad Smith's avatar
      [Mips] Set setMaxAtomicSizeInBitsSupported · 7973d519
      Brad Smith authored
      Set setMaxAtomicSizeInBitsSupported for Mips. Set the value as appropriate for 64-bit MIPS vs 32-bit.
      
      Reviewed By: efriedma
      
      Differential Revision: https://reviews.llvm.org/D141189
      7973d519
    • Fangrui Song's avatar
      [ELF] Support operator ^ and ^= · fae96104
      Fangrui Song authored
      GNU ld added ^ support in July 2023 and it looks like ^= is in plan as
      well.
      
      For now, we don't support `a^=0` (^= without a preceding space).
      fae96104
    • Jon Chesterfield's avatar
    • Stephen Peckham's avatar
      Use empty symbol name for XCOFF text csect · ac5d5351
      Stephen Peckham authored
      When generating XCOFF, the compiler generates a csect with an internal
      name.  Each function results in a label within the csect.  This patch
      replaces the internal name ".text" with an empty string "".  This avoids
      adding special code to handle a function text() in the source file, and
      works better with some XCOFF tools that are confused when the csect and
      the first function have the same address.
      
      Reviewed By: hubert.reinterpretcast
      
      Differential Revision: https://reviews.llvm.org/D154854
      ac5d5351
    • Zheng Qian's avatar
      Add option -fkeep-persistent-storage-variables to emit all variables that have... · bb6ab91b
      Zheng Qian authored
      Add option -fkeep-persistent-storage-variables to emit all variables that have a persistent storage duration
      
      This patch adds a new option -fkeep-persistent-storage-variables to emit
      all variables that have a persistent storage duration, including global,
      static and thread-local variables. This could be useful in cases where
      the presence of all these variables as symbols in the object file are
      required, so that they can be directly addressed.
      
      Reviewed By: hubert.reinterpretcast
      
      Differential Revision: https://reviews.llvm.org/D150221
      bb6ab91b
    • Jon Chesterfield's avatar
    • Kazuki Sakamoto's avatar
      [lldb][LocateModuleCallback] Fix LocateModuleCallbackTest · 39299f0d
      Kazuki Sakamoto authored
      ModuleList unexpectedly caches module beyond test.
      Tear it down.
      
      - https://green.lab.llvm.org/green/view/LLDB/job/as-lldb-cmake/2260/testReport/junit/lldb-unit/Target___TargetTests_LocateModuleCallbackTest/GetOrCreateModuleWithCachedModule/
      - https://green.lab.llvm.org/green/view/LLDB/job/as-lldb-cmake/2260/testReport/junit/lldb-unit/Target___TargetTests_LocateModuleCallbackTest/GetOrCreateModuleWithCachedModuleAndSymbol/
      
      Differential Revision: https://reviews.llvm.org/D155333
      39299f0d
    • Farid Zakaria's avatar
      [docs] GettingStarted.rst cmake should reference build · 6fa8d110
      Farid Zakaria authored
      The next sections in GettingStarted assume you are still in the root
      directory llvm-project when using ninja.
      
      Make the `cmake --build` command match it as well.
      
      Note: I am a new cmake user and this confused me.
      
      Reviewed By: MaskRay
      
      Differential Revision: https://reviews.llvm.org/D153727
      6fa8d110
    • Thomas Köppe's avatar
      [llvm-objcopy] Remove unused internal helper function template makeStringError. NFC · b6176692
      Thomas Köppe authored
      Reviewed By: jhenderson, MaskRay
      
      Differential Revision: https://reviews.llvm.org/D153671
      b6176692
    • Craig Topper's avatar
      [RISCV] Use unsigned instead of signed types for Zk* and Zb* builtins. · 599421ae
      Craig Topper authored
      Unsigned is a better representation for bitmanipulation and cryptography.w
      
      The only exception being the return values for clz and ctz intrinsics is
      a signed int. That matches the target independent clz and ctz builtins.
      
      This is consistent with the current scalar crypto proposal
      https://github.com/riscv-non-isa/riscv-c-api-doc/pull/44
      
      Reviewed By: VincentWu
      
      Differential Revision: https://reviews.llvm.org/D154616
      599421ae
    • Owen Pan's avatar
      [clang-format] Correctly annotate overloaded operator function name · cc2ff02e
      Owen Pan authored
      The operator keyword preceded by a template closer should be annotated as
      TT_FunctionDeclarationName.
      
      Fixes #63879.
      
      Differential Revision: https://reviews.llvm.org/D155358
      cc2ff02e