[RISCV] Remove VConstraintType enum and getConstraint. NFC
authorCraig Topper <craig.topper@sifive.com>
Thu, 20 Apr 2023 07:20:19 +0000 (00:20 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 20 Apr 2023 07:21:24 +0000 (00:21 -0700)
commitfdaa23a7bd4e500f72df1eb02c236f79084ac17a
tree0905439d4974212e53baa4646ca3bd007e76846d
parent09b0f89c33f1b8babb0ca5ad1e65bad7d02645a5
[RISCV] Remove VConstraintType enum and getConstraint. NFC

Fold the 3 flag defines into the enum that defines TSFlags. Then
we don't have to extract them we can just test the bits directly
in TSFlags.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D148765
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h