@@ -75,21 +75,6 @@ class OpenMPAllocaStackFrame
75
75
llvm::OpenMPIRBuilder::InsertPointTy allocaInsertPoint;
76
76
};
77
77
78
- // / ModuleTranslation stack frame containing the partial mapping between MLIR
79
- // / values and their LLVM IR equivalents.
80
- class OpenMPVarMappingStackFrame
81
- : public LLVM::ModuleTranslation::StackFrameBase<
82
- OpenMPVarMappingStackFrame> {
83
- public:
84
- MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID (OpenMPVarMappingStackFrame)
85
-
86
- explicit OpenMPVarMappingStackFrame (
87
- const DenseMap<Value, llvm::Value *> &mapping)
88
- : mapping(mapping) {}
89
-
90
- DenseMap<Value, llvm::Value *> mapping;
91
- };
92
-
93
78
// / Custom error class to signal translation errors that don't need reporting,
94
79
// / since encountering them will have already triggered relevant error messages.
95
80
// /
@@ -1541,12 +1526,6 @@ convertOmpSections(Operation &opInst, llvm::IRBuilderBase &builder,
1541
1526
isByRef)))
1542
1527
return failure ();
1543
1528
1544
- // Store the mapping between reduction variables and their private copies on
1545
- // ModuleTranslation stack. It can be then recovered when translating
1546
- // omp.reduce operations in a separate call.
1547
- LLVM::ModuleTranslation::SaveStack<OpenMPVarMappingStackFrame> mappingGuard (
1548
- moduleTranslation, reductionVariableMap);
1549
-
1550
1529
SmallVector<StorableBodyGenCallbackTy> sectionCBs;
1551
1530
1552
1531
for (Operation &op : *sectionsOp.getRegion ().begin ()) {
@@ -1940,12 +1919,6 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder,
1940
1919
if (failed (convertIgnoredWrappers (loopOp, wsloopOp, moduleTranslation)))
1941
1920
return failure ();
1942
1921
1943
- // Store the mapping between reduction variables and their private copies on
1944
- // ModuleTranslation stack. It can be then recovered when translating
1945
- // omp.reduce operations in a separate call.
1946
- LLVM::ModuleTranslation::SaveStack<OpenMPVarMappingStackFrame> mappingGuard (
1947
- moduleTranslation, reductionVariableMap);
1948
-
1949
1922
// Set up the source location value for OpenMP runtime.
1950
1923
llvm::OpenMPIRBuilder::LocationDescription ompLoc (builder);
1951
1924
@@ -2116,12 +2089,6 @@ convertOmpParallel(omp::ParallelOp opInst, llvm::IRBuilderBase &builder,
2116
2089
reductionVariableMap, isByRef, deferredStores)))
2117
2090
return llvm::make_error<PreviouslyReportedError>();
2118
2091
2119
- // Store the mapping between reduction variables and their private copies on
2120
- // ModuleTranslation stack. It can be then recovered when translating
2121
- // omp.reduce operations in a separate call.
2122
- LLVM::ModuleTranslation::SaveStack<OpenMPVarMappingStackFrame> mappingGuard (
2123
- moduleTranslation, reductionVariableMap);
2124
-
2125
2092
// Save the alloca insertion point on ModuleTranslation stack for use in
2126
2093
// nested regions.
2127
2094
LLVM::ModuleTranslation::SaveStack<OpenMPAllocaStackFrame> frame (
0 commit comments