Skip to content

Commit

Permalink
[SOL] Register target
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Aug 18, 2024
1 parent c04ae67 commit b07498f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/lib/Target/SBF/TargetInfo/SBFTargetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Triple::sbf, /*HasJIT=*/true> XX(
getTheSBFXTarget(), "sbf", "SBF new (little endian)", "SBF");
}

0 comments on commit b07498f

Please sign in to comment.