llvm-project
bef7c1bd - [OpenACC] 'reduction' init lowering for +, |, ^, || (#155924)

Commit
31 days ago
[OpenACC] 'reduction' init lowering for +, |, ^, || (#155924) These four operators have an initial value of 0, so they are able to use C/C++ 'zero init'. This patch adds the infrastructure to the Sema init calculations to differentiate based on the reduction operator, then enables emission of the inits in CodeGen (which should work for all inits, once generated). The rest of this test is just updating validation to make sure that the inits happen correctly for all 4 operators.
Author
Parents
Loading