[llvm] [OpenMP] [IR Builder] Changes to Support Scan Operation (PR #136035)

Anchu Rajendran S via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 27 16:26:27 PDT 2025


================
@@ -5349,6 +5350,100 @@ TEST_F(OpenMPIRBuilderTest, CreateReductions) {
   EXPECT_TRUE(findGEPZeroOne(ReductionFn->getArg(1), FirstRHS, SecondRHS));
 }
 
+void createScan(llvm::Value *scanVar, llvm::Type *scanType,
----------------
anchuraj wrote:

I have updated it to static. The body gen lambda expects return type of type `Error`. When the assert of `createScan` was used when inlined in bodygen lambda, it was complaining that returning void by assert is incompatible.

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


More information about the llvm-commits mailing list