Skip to content

Commit 1c8cd1e

Browse files
authored
[flang][cuda] Add a TODO for code generation of CONSTANT variable (llvm#163268)
1 parent 57726bd commit 1c8cd1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/lib/Optimizer/CodeGen/CodeGen.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3229,6 +3229,10 @@ struct GlobalOpConversion : public fir::FIROpConversion<fir::GlobalOp> {
32293229
g.setAddrSpace(
32303230
static_cast<unsigned>(mlir::NVVM::NVVMMemorySpace::Shared));
32313231

3232+
if (global.getDataAttr() &&
3233+
*global.getDataAttr() == cuf::DataAttribute::Constant)
3234+
TODO(global.getLoc(), "CUDA Fortran CONSTANT variable code generation");
3235+
32323236
rewriter.eraseOp(global);
32333237
return mlir::success();
32343238
}

0 commit comments

Comments
 (0)