[llvm-branch-commits] [llvm] [3/7][PISA] Add PISA register file, instruction set, and MC layer (PR #214107)

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 3 14:49:26 PST 2026


================
@@ -0,0 +1,81 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file implements PISA cache-control MMRA metadata handling.
+///
+//===----------------------------------------------------------------------===//
+
+#include "PISACacheCtrlMMRA.h"
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/Twine.h"
+#include "llvm/IR/DiagnosticInfo.h"
+#include "llvm/IR/Instruction.h"
+#include "llvm/IR/LLVMContext.h"
+#include "llvm/IR/MemoryModelRelaxationAnnotations.h"
+#include "llvm/IR/Metadata.h"
+#include "llvm/Support/raw_ostream.h"
+
+using namespace llvm;
+
+namespace {
+constexpr StringLiteral CacheCtrlMMRAPrefix = "pisa.cache.ctrl";
----------------
topperc wrote:

The anonymous namespace seems unnecessary.

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


More information about the llvm-branch-commits mailing list