[all-commits] [llvm/llvm-project] b30c16: Implement constexpr BinaryOperator for vector types

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Jun 22 07:06:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b30c16670e428d09a0854a8f418e46a3e705e4d1
      https://github.com/llvm/llvm-project/commit/b30c16670e428d09a0854a8f418e46a3e705e4d1
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    A clang/test/SemaCXX/constexpr-vectors.cpp

  Log Message:
  -----------
  Implement constexpr BinaryOperator for vector types

These operations do member-wise versions of the all of the listed
operations.  This patch implements all of the binaryoperators for these
types. Note that the test is required to use codegen as I could not come
up with a good way to validate the values without the array-subscript
operator implemented (which is likely a much more involved change).

Differential Reivision: https://reviews.llvm.org/D79755




More information about the All-commits mailing list