[all-commits] [llvm/llvm-project] e6ceec: [Clang][RISCV] Restrict rvv builtins with zve macros

Yueh-Ting (eop) Chen via All-commits all-commits at lists.llvm.org
Fri Jan 21 10:39:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e6ceec9c1d190cdd465548161df6c8ebbb327739
      https://github.com/llvm/llvm-project/commit/e6ceec9c1d190cdd465548161df6c8ebbb327739
  Author: eopXD <eop.chen at sifive.com>
  Date:   2022-01-21 (Fri, 21 Jan 2022)

  Changed paths:
    M clang/utils/TableGen/RISCVVEmitter.cpp

  Log Message:
  -----------
  [Clang][RISCV] Restrict rvv builtins with zve macros

The `zve` extension specifies the maximum ELEN for both integer and floating
point mode - defined by macro `__riscv_v_elen` and `__riscv_v_elen_fp`.
This commit restricts the functions in riscv_vector.h by the zve defined
macro-s.

Change enum `RISCVExtension` to `RISCVPredefinedMacro` since now it
contains not only extensions. Also added type alignment to it.

Reviewed By: craig.topper

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




More information about the All-commits mailing list