[RISCV] Add Clang frontend support for Bitmanip extension
authorScott Egerton <scott.egerton@embecosm.com>
Thu, 9 Apr 2020 16:51:26 +0000 (17:51 +0100)
committerSimon Cook <simon.cook@embecosm.com>
Thu, 9 Apr 2020 17:04:22 +0000 (18:04 +0100)
commit61ff29637501afcd7476e52064f7a266a95c6e28
treedb40c296404223906079bbef293e222677eb7984
parentdd1ee6dc076fe1da6cf6eeb9cf614d9c1796759a
[RISCV] Add Clang frontend support for Bitmanip extension

This adds the __riscv_bitmanip macro and the 'b' target feature to enable it.

Differential Revision: https://reviews.llvm.org/D71553
clang/lib/Basic/Targets/RISCV.cpp
clang/lib/Basic/Targets/RISCV.h
clang/test/Preprocessor/riscv-target-features.c