Skip to content

Commit 11afd76

Browse files
committed
some more tests
1 parent 20b2b94 commit 11afd76

File tree

3 files changed

+5
-427
lines changed

3 files changed

+5
-427
lines changed

llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5377,7 +5377,7 @@ TEST_F(OpenMPIRBuilderTest, ScanReduction) {
53775377
Loops = loopsVec;
53785378
EXPECT_EQ(Loops.size(), 2U);
53795379
CanonicalLoopInfo *InputLoop = Loops.front();
5380-
CanonicalLoopInfo *ScanLoop = Loops.back();
5380+
CanonicalLoopInfo *ScanLoop = Loops.back();
53815381
Builder.restoreIP(ScanLoop->getAfterIP());
53825382
InputLoop->assertOK();
53835383
ScanLoop->assertOK();

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@
4747

4848
using namespace mlir;
4949

50-
llvm::SmallDenseMap<llvm::Value *, llvm::Type *> ReductionVarToType;
51-
llvm::OpenMPIRBuilder::InsertPointTy parallelAllocaIP;// TODO: change this alloca IP to point to originalvar allocaIP. ReductionDecl need to be linked to scan var.
50+
llvm::SmallDenseMap<llvm::Value *, llvm::Type *> ReductionVarToType;
51+
llvm::OpenMPIRBuilder::InsertPointTy
52+
parallelAllocaIP; // TODO: change this alloca IP to point to originalvar
53+
// allocaIP. ReductionDecl need to be linked to scan var.
5254
namespace {
5355
static llvm::omp::ScheduleKind
5456
convertToScheduleKind(std::optional<omp::ClauseScheduleKind> schedKind) {

0 commit comments

Comments
 (0)