[all-commits] [llvm/llvm-project] 201ebf: [RISCV] Make use of the required features in Built...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Mar 3 16:40:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 201ebf211f9772ef19abac82170b9b06fe2ccf2b
      https://github.com/llvm/llvm-project/commit/201ebf211f9772ef19abac82170b9b06fe2ccf2b
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsRISCV.def
    M clang/lib/Basic/Targets/RISCV.cpp
    M clang/lib/Sema/SemaChecking.cpp

  Log Message:
  -----------
  [RISCV] Make use of the required features in BuiltinInfo to store that V extension builtins require 'experimental-v'.

Use that to print the diagnostic in SemaChecking instead of
listing all of the builtins in a switch.

With the required features, IR generation will also be able
to error on this. Checking this here allows us to have a RISCV
focused error message.

Reviewed By: HsiangKai

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




More information about the All-commits mailing list