[all-commits] [llvm/llvm-project] f9912f: [PowerPC] Add range checks for P10 Vector Builtins

Quinn Pham via All-commits all-commits at lists.llvm.org
Thu Sep 23 09:06:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9912fe4eac91f27965c22d015b3109c5158d050
      https://github.com/llvm/llvm-project/commit/f9912fe4eac91f27965c22d015b3109c5158d050
  Author: Quinn Pham <quinn.pham at ibm.com>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

  Changed paths:
    M clang/lib/Headers/altivec.h
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGen/builtins-ppc-p10vector-error.c
    M clang/test/CodeGen/builtins-ppc-p10vector.c

  Log Message:
  -----------
  [PowerPC] Add range checks for P10 Vector Builtins

This patch adds range checking for some Power10 altivec builtins and
changes the signature of a builtin to match documentation. For `vec_cntm`,
range checking is done via SemaChecking. For `vec_splati_ins`, the second
argument is masked to extract the 0th bit so that we always receive either a `0`
or a `1`.

Reviewed By: lei, amyk

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




More information about the All-commits mailing list