Page MenuHomePhabricator
Feed Advanced Search

May 27 2022

fourdim added a comment to D126450: [cmake] make FindLibEdit.cmake more robust.

Hi, this works for me. I successfully cross-compiling llvm from x86 to riscv by applying this patch. Thanks a lot.
But you may still need to wait for paulkirth's comment to verify that it works on Fuchsia's clang CI as well.

May 27 2022, 7:24 AM · Restricted Project, Restricted Project

Mar 9 2022

fourdim committed rG16dc90cbe7f4: [JITLink][RISCV] Refactor range checking and alignment checking (authored by fourdim).
[JITLink][RISCV] Refactor range checking and alignment checking
Mar 9 2022, 6:14 AM · Restricted Project
fourdim closed D117946: [JITLink][RISCV] Refactor range checking and alignment checking.
Mar 9 2022, 6:14 AM · Restricted Project, Restricted Project
fourdim updated the diff for D117946: [JITLink][RISCV] Refactor range checking and alignment checking.

Remove unused parameter.

Mar 9 2022, 5:03 AM · Restricted Project, Restricted Project
fourdim updated the diff for D117946: [JITLink][RISCV] Refactor range checking and alignment checking.

Revert partial clang format.

Mar 9 2022, 12:08 AM · Restricted Project, Restricted Project

Mar 8 2022

fourdim added inline comments to D117946: [JITLink][RISCV] Refactor range checking and alignment checking.
Mar 8 2022, 11:19 PM · Restricted Project, Restricted Project
fourdim updated the diff for D117946: [JITLink][RISCV] Refactor range checking and alignment checking.

Fix the variable's name.

Mar 8 2022, 9:44 PM · Restricted Project, Restricted Project
fourdim retitled D117946: [JITLink][RISCV] Refactor range checking and alignment checking from [JITLink][RISCV] Refactor range checking to make it compatible with all relocation types and add range checking for R_RISCV_BRANCH to [JITLink][RISCV] Refactor range checking and alignment checking.
Mar 8 2022, 9:41 PM · Restricted Project, Restricted Project
fourdim updated the diff for D117946: [JITLink][RISCV] Refactor range checking and alignment checking.

Include the recent commits and update the alignment check.

Mar 8 2022, 9:39 PM · Restricted Project, Restricted Project

Feb 27 2022

fourdim accepted D120001: [JITLink] Add R_RISCV_SUB6 relocation.

LGTM

Feb 27 2022, 6:16 PM · Restricted Project

Feb 22 2022

fourdim added a comment to D120001: [JITLink] Add R_RISCV_SUB6 relocation.

Please update this file as well and clang format the codes.
llvm/lib/ExecutionEngine/JITLink/riscv.cpp

Feb 22 2022, 10:36 PM · Restricted Project

Feb 19 2022

fourdim added a comment to D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options.

I think you forgot to upload the new diff for the GCC comment. It's looking the same as before for me.

Hm, there wasn't any. But I did get a comment on the email that I wanted to reply to and it isn't here. Won't change the acceptance of the patch, it's more as FYI.

If you're compiling with GCC, you can use architecture options for your target, and the compiler driver will detect everything that it needs

This is a common thread between Clang and GCC.

In GCC, the target is defined at compile time, so if you use target-gcc, all of the options are already chosen. Paths, headers, libraries, even sysroot is already set.

Clang also has target-clang (as a symlink to clang), but that's a shortcut to clang -target target, which may have some headers but doesn't have libraries, sysroot and may not get the right path (if the platform compiler is GCC and compiled in unexpected ways).

That is why we need the other flags and why this document was written in the first place.

We have debated for years if we want to have a default LLVM sysroot+libs+headers, and some side projects have started in that direction, but we shouldn't use a different toolchain from the system one if we want to link with objects compiled with the system compiler (statically or dynamically).

In FreeBSD, Apple and OpenMandriva, Android, the system compiler is clang, so all libraries, paths and the sysroot should be easy to find and known, and clang does what you expect, too.

But on other Linux distros, Windows and systems where the system toolchain isn't clang, you'll have that problem again.

Feb 19 2022, 5:29 AM · Restricted Project
fourdim added a comment to D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options.

I think you forgot to upload the new diff for the GCC comment. It's looking the same as before for me.

(PS: this is one of the problems of Phab to me, it can be confusing with git diff + patch + upload).

Feb 19 2022, 5:16 AM · Restricted Project
fourdim committed rGbc53ebbda8fb: [docs] HowToCrossCompileLLVM.rst: update cmake options (authored by fourdim).
[docs] HowToCrossCompileLLVM.rst: update cmake options
Feb 19 2022, 4:37 AM
fourdim closed D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options.
Feb 19 2022, 4:37 AM · Restricted Project

Feb 18 2022

fourdim updated the summary of D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options.
Feb 18 2022, 7:58 PM · Restricted Project

Feb 17 2022

fourdim committed rG1ece3eeeb79e: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation. (authored by fourdim).
[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation.
Feb 17 2022, 10:08 PM
fourdim closed D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..
Feb 17 2022, 10:07 PM · Restricted Project
fourdim updated the diff for D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..

Include the recent commits and fix the test.

Feb 17 2022, 7:16 PM · Restricted Project
fourdim reopened D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..

Reverted in the https://github.com/llvm/llvm-project/commit/051f7cdcd2ccfb54f5030e16d0026057d203ddd2 due to build failure.

Feb 17 2022, 7:16 PM · Restricted Project
fourdim added a reverting change for rG3af7bbca4a0e: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation.: rG051f7cdcd2cc: Revert "[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL….
Feb 17 2022, 7:41 AM
fourdim committed rG051f7cdcd2cc: Revert "[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL… (authored by fourdim).
Revert "[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL…
Feb 17 2022, 7:41 AM
fourdim added a reverting change for D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation.: rG051f7cdcd2cc: Revert "[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL….
Feb 17 2022, 7:41 AM · Restricted Project
fourdim added a comment to D120001: [JITLink] Add R_RISCV_SUB6 relocation.

Hi, StephenFan, I have a question in the inline comment.
Would you be so kind to explain it to us?

Feb 17 2022, 7:20 AM · Restricted Project
fourdim committed rG3af7bbca4a0e: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation. (authored by fourdim).
[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation.
Feb 17 2022, 7:04 AM
fourdim closed D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..
Feb 17 2022, 7:03 AM · Restricted Project

Feb 14 2022

fourdim added a reviewer for D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options: Eugene.Zelenko.
Feb 14 2022, 7:01 PM · Restricted Project
fourdim updated the diff for D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options.

Update the format.

Feb 14 2022, 6:52 PM · Restricted Project
fourdim updated the summary of D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options.
Feb 14 2022, 6:46 PM · Restricted Project
fourdim requested review of D119804: [docs] HowToCrossCompileLLVM.rst: update cmake options.
Feb 14 2022, 6:43 PM · Restricted Project

Jan 26 2022

fourdim accepted D118151: [JITLink] Fix the incorrect relocation behavior for R_RISCV_BRANCH and extractBits function.

LGTM

Jan 26 2022, 9:01 AM · Restricted Project

Jan 25 2022

fourdim added a comment to D118151: [JITLink] Fix the incorrect relocation behavior for R_RISCV_BRANCH and extractBits function.

Hi, could you please update the code comments on R_RISCV_BRANCH in llvm/include/llvm/ExecutionEngine/JITLink/riscv.h
at the same time?

Jan 25 2022, 8:16 AM · Restricted Project
fourdim abandoned D118113: [JITLink][RISCV] fix the R_RISCV_BRANCH relocation's behavior.
Jan 25 2022, 8:11 AM · Restricted Project
fourdim updated the summary of D118113: [JITLink][RISCV] fix the R_RISCV_BRANCH relocation's behavior.
Jan 25 2022, 1:55 AM · Restricted Project
fourdim requested review of D118113: [JITLink][RISCV] fix the R_RISCV_BRANCH relocation's behavior.
Jan 25 2022, 1:54 AM · Restricted Project

Jan 23 2022

fourdim updated the diff for D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..

Address the comments.

Jan 23 2022, 7:31 AM · Restricted Project
fourdim updated the diff for D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..

fix the arc diff issue

Jan 23 2022, 7:25 AM · Restricted Project
fourdim added a comment to D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..

Sorry about arc diff issue. I will update it later.

Jan 23 2022, 7:22 AM · Restricted Project
fourdim updated the diff for D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..

address the comments and include the recent commits.

Jan 23 2022, 7:21 AM · Restricted Project

Jan 22 2022

fourdim requested review of D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation..
Jan 22 2022, 8:38 PM · Restricted Project
fourdim committed rGf7d4cafe5a6a: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations (authored by fourdim).
[JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations
Jan 22 2022, 2:32 AM
fourdim closed D117082: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.
Jan 22 2022, 2:32 AM · Restricted Project
fourdim updated the diff for D117082: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.

Include the recent commits.

Jan 22 2022, 2:15 AM · Restricted Project
fourdim added a reviewer for D117082: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations: StephenFan.
Jan 22 2022, 1:58 AM · Restricted Project
fourdim added a reviewer for D117946: [JITLink][RISCV] Refactor range checking and alignment checking: StephenFan.
Jan 22 2022, 1:55 AM · Restricted Project, Restricted Project
fourdim updated fourdim.
Jan 22 2022, 12:21 AM
fourdim requested review of D117946: [JITLink][RISCV] Refactor range checking and alignment checking.
Jan 22 2022, 12:18 AM · Restricted Project, Restricted Project

Jan 14 2022

fourdim committed rG0c6f76262277: [jitlink] add R_RISCV_BRANCH to jitlink (authored by fourdim).
[jitlink] add R_RISCV_BRANCH to jitlink
Jan 14 2022, 11:37 AM
fourdim closed D116573: [jitlink] add R_RISCV_BRANCH to jitlink.
Jan 14 2022, 11:37 AM · Restricted Project

Jan 13 2022

fourdim updated the diff for D116573: [jitlink] add R_RISCV_BRANCH to jitlink.

Include the recent commits.

Jan 13 2022, 10:06 PM · Restricted Project
fourdim updated the diff for D117082: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.

Add test cases and address the comments.

Jan 13 2022, 9:08 AM · Restricted Project
fourdim abandoned D117234: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.
Jan 13 2022, 9:05 AM · Restricted Project
fourdim requested review of D117234: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.
Jan 13 2022, 9:04 AM · Restricted Project

Jan 12 2022

fourdim added a comment to D117082: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.

You can write tests just fine in assembly. Use .reloc if needed. You don't need .eh_frame for that.

Jan 12 2022, 8:25 PM · Restricted Project
fourdim retitled D117082: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations from [JITLink][RISCV] Support R_RISCV_SET relocations to [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.
Jan 12 2022, 8:03 PM · Restricted Project

Jan 11 2022

fourdim requested review of D117082: [JITLink][RISCV] Support R_RISCV_SET* and R_RISCV_32_PCREL relocations.
Jan 11 2022, 7:23 PM · Restricted Project

Jan 6 2022

fourdim updated the diff for D116573: [jitlink] add R_RISCV_BRANCH to jitlink.

Address the comments.

Jan 6 2022, 3:02 AM · Restricted Project
fourdim updated the diff for D116573: [jitlink] add R_RISCV_BRANCH to jitlink.

Fix the behavior after extractBits function's update.

Jan 6 2022, 12:52 AM · Restricted Project

Jan 5 2022

fourdim updated the diff for D116573: [jitlink] add R_RISCV_BRANCH to jitlink.

Include the recent commits.

Jan 5 2022, 10:49 PM · Restricted Project
fourdim updated the diff for D116573: [jitlink] add R_RISCV_BRANCH to jitlink.

Include the recent commits.

Jan 5 2022, 10:37 PM · Restricted Project
fourdim updated the diff for D116573: [jitlink] add R_RISCV_BRANCH to jitlink.

Add prefix for hexadecimal numeric.

Jan 5 2022, 10:18 PM · Restricted Project

Jan 3 2022

fourdim requested review of D116573: [jitlink] add R_RISCV_BRANCH to jitlink.
Jan 3 2022, 8:15 PM · Restricted Project