We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7208d06 commit c046931Copy full SHA for c046931
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
@@ -500,6 +500,12 @@ class OpenMPIRBuilder {
500
501
/// Information about an OpenMP reduction.
502
struct ReductionInfo {
503
+ ReductionInfo(Value *Variable, Value *PrivateVariable,
504
+ ReductionGenTy ReductionGen,
505
+ AtomicReductionGenTy AtomicReductionGen)
506
+ : Variable(Variable), PrivateVariable(PrivateVariable),
507
+ ReductionGen(ReductionGen), AtomicReductionGen(AtomicReductionGen) {}
508
+
509
/// Returns the type of the element being reduced.
510
Type *getElementType() const {
511
return Variable->getType()->getPointerElementType();
0 commit comments