[llvm] [AMDGPU] Tolerate AMDGPUTargetELFStreamer without initializeTargetID (PR #226495)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 06:49:18 PDT 2026
================
@@ -0,0 +1,75 @@
+//===- llvm/unittest/unittests/MC/AMDGPU/TargetStreamer.cpp ---------------===//
+//
+// 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 "llvm/MC/MCContext.h"
+#include "llvm/MC/MCRegisterInfo.h"
+#include "llvm/MC/MCStreamer.h"
+#include "llvm/MC/MCSymbol.h"
+#include "llvm/MC/TargetRegistry.h"
+#include "llvm/Support/CodeGen.h"
+#include "llvm/Support/TargetSelect.h"
+#include "llvm/Target/TargetMachine.h"
+#include "gtest/gtest.h"
+
+using namespace llvm;
+
+static constexpr char TripleName[] = "amdgcn--amdpal";
----------------
arsenm wrote:
No old triples
https://github.com/llvm/llvm-project/pull/226495
More information about the llvm-commits
mailing list