[clang] [CIR][OpenACC] Attach acc global variable interfaces (PR #244313)

Razvan Lupusoru via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 2 18:57:41 PST 2026


================
@@ -0,0 +1,58 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Implementation of external OpenACC operation interfaces for CIR.
+//
+//===----------------------------------------------------------------------===//
+
+#include "clang/CIR/Dialect/OpenACC/CIROpenACCOpsInterfaces.h"
+
+#include "clang/CIR/Dialect/IR/CIRTypes.h"
+#include "clang/CIR/Dialect/OpenACC/CIROpenACCUtils.h"
+
+using namespace mlir;
+using namespace cir;
+
+SymbolRefAttr cir::acc::AddressOfGlobalModel::getSymbol(Operation *op) const {
+  return cast<GetGlobalOp>(op).getNameAttr();
----------------
razvanlupusoru wrote:

Sounds good. I am doing this for both mlir and cir qualifiers.

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


More information about the cfe-commits mailing list