@@ -231,6 +231,9 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public
OSTargetInfo {
case llvm::Triple::riscv32:
case llvm::Triple::riscv64:
break;
+case llvm::Triple::loongarch32:
brad0 wrote:
@brooksdavis 32-bit RISC-V support was r
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin`
running on `doug-worker-4` while building `clang` at step 6
"test-build-unified-tree-check-all".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/190/builds/11277
Here is th
@@ -231,6 +231,9 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public
OSTargetInfo {
case llvm::Triple::riscv32:
case llvm::Triple::riscv64:
break;
+case llvm::Triple::loongarch32:
hitmoon wrote:
@brooksdavis Thanks!
after have readin
github-actions[bot] wrote:
@hitmoon Congratulations on having your first Pull Request (PR) merged into the
LLVM Project!
Your changes will be combined with recent changes from other authors, then
tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a
problem with a build,
https://github.com/SixWeining closed
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/SixWeining approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/DimitryAndric approved this pull request.
I don't have any experience with LoongArch, but this diff looks fine to me.
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://l
@@ -231,6 +231,9 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public
OSTargetInfo {
case llvm::Triple::riscv32:
case llvm::Triple::riscv64:
break;
+case llvm::Triple::loongarch32:
brooksdavis wrote:
I'm of two minds about adding loon
https://github.com/brooksdavis approved this pull request.
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
xen0n wrote:
> > Also a `[Clang]` tag could be prepended to the PR title to make it clearer
> > what part gets changed.
>
> Not only clang, all of FreeBSD on LoongArch
It's not about *what can get built after the change*, but *what part of LLVM
project this change applies to*, which is Clang.
hitmoon wrote:
clang tag added
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/hitmoon edited
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/hitmoon updated
https://github.com/llvm/llvm-project/pull/119191
>From e59a6e3ee6d0c3e09e33a7b37e65fe8de21c156e Mon Sep 17 00:00:00 2001
From: xiaoqiang zhao
Date: Mon, 9 Dec 2024 14:26:37 +0800
Subject: [PATCH] [clang][LoongArch] Add FreeBSD targets
Co-authored-by: yu shan
yushanwei wrote:
> Also a `[Clang]` tag could be prepended to the PR title to make it clearer
> what part gets changed.
Not only clang, all of FreeBSD on LoongArch
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-comm
xen0n wrote:
Also a `[Clang]` tag could be prepended to the PR title to make it clearer what
part gets changed.
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mai
@@ -223,6 +231,12 @@ void freebsd::Linker::ConstructJob(Compilation &C, const
JobAction &JA,
CmdArgs.push_back("--no-relax");
}
+ if (Triple.isLoongArch64()) {
+CmdArgs.push_back("-X");
+if (Args.hasArg(options::OPT_mno_relax))
+ CmdArgs.push_back("--no-
https://github.com/xen0n approved this pull request.
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -223,6 +231,12 @@ void freebsd::Linker::ConstructJob(Compilation &C, const
JobAction &JA,
CmdArgs.push_back("--no-relax");
}
+ if (Triple.isLoongArch64()) {
+CmdArgs.push_back("-X");
+if (Args.hasArg(options::OPT_mno_relax))
+ CmdArgs.push_back("--no-
https://github.com/hitmoon updated
https://github.com/llvm/llvm-project/pull/119191
>From 975aed84a6a474877a40ce077bfeb228eecf067a Mon Sep 17 00:00:00 2001
From: xiaoqiang zhao
Date: Mon, 9 Dec 2024 14:26:37 +0800
Subject: [PATCH] [LoongArch] Add FreeBSD targets
Co-authored-by: yu shan wei
Si
@@ -77,6 +77,15 @@
// RUN: | FileCheck --check-prefix=CHECK-RV64I-LD %s
// CHECK-RV64I-LD: ld{{.*}}" {{.*}} "-m" "elf64lriscv"
//
+// Check that LOONGARCH passes the correct linker emulation.
+//
+// RUN: %clang --target=loongarch32-freebsd -### %s %s 2>&1 \
+// RUN: | File
hitmoon wrote:
> Can FreeBSD be built with this PR?
Yes, tested by building kernel-toolchain
https://github.com/llvm/llvm-project/pull/119191
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe
@@ -77,6 +77,15 @@
// RUN: | FileCheck --check-prefix=CHECK-RV64I-LD %s
// CHECK-RV64I-LD: ld{{.*}}" {{.*}} "-m" "elf64lriscv"
//
+// Check that LOONGARCH passes the correct linker emulation.
hitmoon wrote:
ok
https://github.com/llvm/llvm-project/pull/11919
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (hitmoon)
Changes
Add support for freebsd on loongarch
---
Full diff: https://github.com/llvm/llvm-project/pull/119191.diff
4 Files Affected:
- (modified) clang/lib/Basic/Targets.cpp (+6)
- (modified) clang/lib/Basic/Targets/OSTar
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
https://github.com/hitmoon created
https://github.com/llvm/llvm-project/pull/119191
Add support for freebsd on loongarch
>From f56241d879e8da925c31d6605092cce5c4d8c8c9 Mon Sep 17 00:00:00 2001
From: xiaoqiang zhao
Date: Mon, 9 Dec 2024 14:26:37 +0800
Subject: [PATCH] [LoongArch] Add FreeBSD ta
25 matches
Mail list logo