[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 09:56:30 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:

What about variable like this:

```
module mod1
  integer, constant :: a(10)
end
```

Do they need to be registered? 

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


More information about the flang-commits mailing list