[llvm] [SPIR-V] Preserve available_externally linkage via NonSemantic.AuxData (PR #200002)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 09:06:47 PDT 2026
================
@@ -0,0 +1,123 @@
+//===-- SPIRVAuxDataHandler.cpp - NonSemantic.AuxData emitter -*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "SPIRVAuxDataHandler.h"
+#include "MCTargetDesc/SPIRVMCTargetDesc.h"
+#include "SPIRVSubtarget.h"
+#include "SPIRVUtils.h"
+#include "llvm/CodeGen/AsmPrinter.h"
+#include "llvm/IR/Function.h"
+#include "llvm/IR/Module.h"
+#include "llvm/MC/MCInst.h"
+#include "llvm/MC/MCStreamer.h"
+
+using namespace llvm;
+
+namespace {
+constexpr int64_t AuxDataLinkage = 4;
+constexpr uint32_t LinkageAvailableExternally = 0;
----------------
sarnex wrote:
Can we rename these to give info as to what the numbers actually mean, like `4` is what? An Opcode?
https://github.com/llvm/llvm-project/pull/200002
More information about the llvm-commits
mailing list