[flang-commits] [flang] [flang][cuda] Do not register global constants (PR #118582)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Wed Dec 4 11:46:27 PST 2024


================
@@ -106,8 +106,7 @@ struct CUFAddConstructor
 
         mlir::func::FuncOp func;
         switch (attr.getValue()) {
-        case cuf::DataAttribute::Device:
-        case cuf::DataAttribute::Constant: {
+        case cuf::DataAttribute::Device: {
----------------
clementval wrote:

It is defined in the programming guide: https://docs.nvidia.com/hpc-sdk/compilers/cuda-fortran-prog-guide/index.html#cfpg-var-qual-attr-constant

Maybe we wrongly add the ` #cuf.cuda<constant>` in the implicit global pass.

https://github.com/llvm/llvm-project/pull/118582


More information about the flang-commits mailing list