[llvm] [VP] Refactor VectorBuilder to avoid layering violation. NFC (PR #99276)

Fraser Cormack via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 02:29:45 PDT 2024


================
@@ -599,6 +599,19 @@ Intrinsic::ID VPIntrinsic::getForOpcode(unsigned IROPC) {
   return Intrinsic::not_intrinsic;
 }
 
+Intrinsic::ID VPIntrinsic::getForIntrinsic(Intrinsic::ID Id) {
----------------
frasercrmck wrote:

Could this be made `constexpr`? I see you're using it with a constant `RecurKind::FAdd` later on.

https://github.com/llvm/llvm-project/pull/99276


More information about the llvm-commits mailing list