[clang-tools-extra] [llvm] [clang] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

Florian Hahn via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 04:51:07 PST 2024


================
@@ -1469,6 +1465,47 @@ void VPReplicateRecipe::print(raw_ostream &O, const Twine &Indent,
 }
 #endif
 
+Value *VPScalarCastRecipe ::generate(VPTransformState &State, unsigned Part) {
+  assert(vputils::onlyFirstLaneUsed(this) &&
+         "Codegen only implemented for first lane only.");
----------------
fhahn wrote:

The implementation here is intentionally kept generic for any cast where only the first lane is used, so it can be used directly in https://github.com/llvm/llvm-project/pull/76172

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


More information about the cfe-commits mailing list