@@ -827,12 +827,12 @@ static void collectReductionInfo(
827
827
atomicGen = owningAtomicReductionGens[i];
828
828
llvm::Value *variable =
829
829
moduleTranslation.lookupValue (loop.getReductionVars ()[i]);
830
- reductionInfos.push_back (llvm::OpenMPIRBuilder::ReductionInfo (
831
- moduleTranslation.convertType (reductionDecls[i].getType ()), variable,
832
- privateReductionVariables[i],
833
- /* EvaluationKind=*/ llvm::OpenMPIRBuilder::EvaluationKindTy::Scalar,
834
- owningReductionGens[i],
835
- /* ReductionGenClang=*/ nullptr , atomicGen) );
830
+ reductionInfos.push_back (
831
+ { moduleTranslation.convertType (reductionDecls[i].getType ()), variable,
832
+ privateReductionVariables[i],
833
+ /* EvaluationKind=*/ llvm::OpenMPIRBuilder::EvaluationKindTy::Scalar,
834
+ owningReductionGens[i],
835
+ /* ReductionGenClang=*/ nullptr , atomicGen} );
836
836
}
837
837
}
838
838
@@ -2908,17 +2908,6 @@ LogicalResult OpenMPDialectLLVMIRTranslationInterface::amendOperation(
2908
2908
}
2909
2909
return failure ();
2910
2910
})
2911
- .Case (" omp.target" ,
2912
- [&](Attribute attr) {
2913
- if (auto targetAttr = attr.dyn_cast <omp::TargetAttr>()) {
2914
- llvm::OpenMPIRBuilderConfig &config =
2915
- moduleTranslation.getOpenMPBuilder ()->Config ;
2916
- config.TargetCPU = targetAttr.getTargetCpu ();
2917
- config.TargetFeatures = targetAttr.getTargetFeatures ();
2918
- return success ();
2919
- }
2920
- return failure ();
2921
- })
2922
2911
.Default ([](Attribute) {
2923
2912
// Fall through for omp attributes that do not require lowering.
2924
2913
return success ();
0 commit comments