[PATCH] D109710: [PowerPC] Add range checks for P10 Vector Builtins
Quinn Pham via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 13 11:25:28 PDT 2021
quinnp created this revision.
Herald added subscribers: shchenz, kbarton, nemanjai.
quinnp requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109710
Files:
clang/lib/Headers/altivec.h
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-p10vector-error.c
clang/test/CodeGen/builtins-ppc-p10vector.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109710.372300.patch
Type: text/x-patch
Size: 6776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210913/48413d3b/attachment-0001.bin>
More information about the cfe-commits
mailing list