[VE] VP intrinsics are legal
authorSimon Moll <simon.moll@emea.nec.com>
Fri, 30 Apr 2021 13:46:59 +0000 (15:46 +0200)
committerSimon Moll <simon.moll@emea.nec.com>
Fri, 30 Apr 2021 13:47:55 +0000 (15:47 +0200)
llvm/lib/Target/VE/VETargetTransformInfo.h

index 6730c43..6e6f4d2 100644 (file)
@@ -64,6 +64,14 @@ public:
     llvm_unreachable("Unsupported register kind");
   }
 
+  /// \returns How the target needs this vector-predicated operation to be
+  /// transformed.
+  TargetTransformInfo::VPLegalization
+  getVPLegalizationStrategy(const VPIntrinsic &PI) const {
+    using VPLegalization = TargetTransformInfo::VPLegalization;
+    return VPLegalization(VPLegalization::Legal, VPLegalization::Legal);
+  }
+
   unsigned getMinVectorRegisterBitWidth() const {
     // TODO report vregs once vector isel is stable.
     return 0;