[all-commits] [llvm/llvm-project] 177735: [LangRef] Minor fixes to intrinsic headers and des...

Bevin Hansson via All-commits all-commits at lists.llvm.org
Fri Aug 7 06:10:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 177735aac7fcac2b1085bfcdcf589681248b5ec8
      https://github.com/llvm/llvm-project/commit/177735aac7fcac2b1085bfcdcf589681248b5ec8
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-08-07 (Fri, 07 Aug 2020)

  Changed paths:
    M llvm/docs/LangRef.rst

  Log Message:
  -----------
  [LangRef] Minor fixes to intrinsic headers and descriptions. NFC.


  Commit: 5de6c56f7e862958cfc6de1abae49c07f6e8c7ed
      https://github.com/llvm/llvm-project/commit/5de6c56f7e862958cfc6de1abae49c07f6e8c7ed
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-08-07 (Fri, 07 Aug 2020)

  Changed paths:
    M llvm/docs/GlobalISel/GenericOpcode.rst
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
    M llvm/include/llvm/CodeGen/ISDOpcodes.h
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/include/llvm/Support/TargetOpcodes.def
    M llvm/include/llvm/Target/GenericOpcodes.td
    M llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
    M llvm/include/llvm/Target/TargetSelectionDAG.td
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-sat.ll
    A llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sshlsat.mir
    A llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ushlsat.mir
    A llvm/test/CodeGen/X86/sshl_sat.ll
    A llvm/test/CodeGen/X86/sshl_sat_vec.ll
    A llvm/test/CodeGen/X86/ushl_sat.ll
    A llvm/test/CodeGen/X86/ushl_sat_vec.ll

  Log Message:
  -----------
  [Intrinsic] Add sshl.sat/ushl.sat, saturated shift intrinsics.

Summary:
This patch adds two intrinsics, llvm.sshl.sat and llvm.ushl.sat,
which perform signed and unsigned saturating left shift,
respectively.

These are useful for implementing the Embedded-C fixed point
support in Clang, originally discussed in
http://lists.llvm.org/pipermail/llvm-dev/2018-August/125433.html
and
http://lists.llvm.org/pipermail/cfe-dev/2018-May/058019.html

Reviewers: leonardchan, craig.topper, bjope, jdoerfert

Subscribers: hiraditya, jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D83216


  Commit: aa0d19a0c8f5ebccb5768411dfc4feddff7bed08
      https://github.com/llvm/llvm-project/commit/aa0d19a0c8f5ebccb5768411dfc4feddff7bed08
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-08-07 (Fri, 07 Aug 2020)

  Changed paths:
    M clang/include/clang/Basic/FixedPoint.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Basic/FixedPoint.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/Frontend/fixed_point_errors.c
    A clang/test/Frontend/fixed_point_shift.c

  Log Message:
  -----------
  [Fixed Point] Add fixed-point shift operations and consteval.

Reviewers: rjmccall, leonardchan, bjope

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83212


Compare: https://github.com/llvm/llvm-project/compare/90d1c66c7ce4...aa0d19a0c8f5


More information about the All-commits mailing list