Skip to content

Commit 20248f6

Browse files
committed
Fail in the backend if we find ompx_bare
1 parent 098caf3 commit 20248f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3227,6 +3227,11 @@ static bool getTargetEntryUniqueInfo(llvm::TargetRegionEntryInfo &targetInfo,
32273227

32283228
static bool targetOpSupported(Operation &opInst) {
32293229
auto targetOp = cast<omp::TargetOp>(opInst);
3230+
if (targetOp.getBare()) {
3231+
opInst.emitError("ompx_bare not yet supported");
3232+
return false;
3233+
}
3234+
32303235
if (targetOp.getIfExpr()) {
32313236
opInst.emitError("If clause not yet supported");
32323237
return false;

0 commit comments

Comments
 (0)