[PATCH] D156223: [RISCV] Resolve a few bugs in RISCVVIntrinsicUtils.cpp

Brandon Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 01:31:03 PDT 2023


4vtomat added inline comments.


================
Comment at: clang/lib/Sema/SemaRISCVVectorLookup.cpp:136
   case Invalid:
+  case Undefined:
     llvm_unreachable("Unhandled type.");
----------------
eopXD wrote:
> Could we just reuse `Invalid`?
We can't reuse Invalid, since `ScalarType` in `RVVType` class is default to `Invalid`, we are not able to determine whether it's really invalid or not during `applyModifier` function, so that's the reason why I added `Undefined` to differentiate between `default` and `really invalid`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156223/new/

https://reviews.llvm.org/D156223



More information about the cfe-commits mailing list