From b07498fa0cad05f114829df7d68bc15a7f6d351e Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 9 Aug 2024 12:31:51 -0300 Subject: [PATCH] [SOL] Register target --- llvm/lib/Target/SBF/TargetInfo/SBFTargetInfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Target/SBF/TargetInfo/SBFTargetInfo.cpp b/llvm/lib/Target/SBF/TargetInfo/SBFTargetInfo.cpp index 0edc2cc2ae612d..45c2f38e21fd35 100644 --- a/llvm/lib/Target/SBF/TargetInfo/SBFTargetInfo.cpp +++ b/llvm/lib/Target/SBF/TargetInfo/SBFTargetInfo.cpp @@ -17,6 +17,10 @@ Target &llvm::getTheSBFXTarget() { } extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSBFTargetInfo() { + TargetRegistry::RegisterTarget( + getTheSBFXTarget(), "sbf", "SBF new (little endian)", "SBF", + [](Triple::ArchType Aarch) { return Aarch == Triple::ArchType::sbf; }, + true); RegisterTarget XX( getTheSBFXTarget(), "sbf", "SBF new (little endian)", "SBF"); }