[clang] [flang] [Flang][LoongArch] Enable clang command-line options in flang. (PR #118244)

Zhaoxin Yang via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 1 19:45:15 PST 2024


================
@@ -240,7 +240,8 @@ def m_riscv_Features_Group : OptionGroup<"<riscv features group>">,
 def m_ve_Features_Group : OptionGroup<"<ve features group>">,
                           Group<m_Group>, DocName<"VE">;
 def m_loongarch_Features_Group : OptionGroup<"<loongarch features group>">,
-                                 Group<m_Group>, DocName<"LoongArch">;
+                                 Group<m_Group>, DocName<"LoongArch">,
+                                 Visibility<[ClangOption, CLOption, FlangOption]>;
----------------
ylzsx wrote:

```
def m_Group : OptionGroup<"<m group>">, Group<CompileOnly_Group>,
              DocName<"Target-dependent compilation options">,
              Visibility<[ClangOption, CLOption]>;
```

I wondor if it inherits from `m_Group` when `Visibility` is not specified. If so, it originally contained `CLOption`.

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


More information about the cfe-commits mailing list