Displaying 5 results from an estimated 5 matches for "handle_libcall".
2019 Jun 10
2
Bug: Library functions for ISD::SRA, ISD::SHL, and ISD::SRL
LLVM appears to support Library functions for ISD::SRA ,ISD::SHL, and ISD::SRL, as they are properly defined in RuntimeLibCalls.def.
The library functions defined in RuntimeLibCalls.def (among others) are these:
HANDLE_LIBCALL(SRA_I16, "__ashrhi3")
HANDLE_LIBCALL(SRA_I32, "__ashrsi3")
HANDLE_LIBCALL(SRA_I64, "__ashrdi3")
However, setting
setOperationAction(ISD::SRA, MVT::i16, LibCall);
in the TargetLowering constructor causes LLVM to stop with an assert as the shift instruction can’t be s...
2019 Jun 10
2
Bug: Library functions for ISD::SRA, ISD::SHL, and ISD::SRL
...rary functions for ISD::SRA, ISD::SHL, and ISD::SRL
>
> LLVM appears to support Library functions for ISD::SRA ,ISD::SHL, and ISD::SRL, as they are properly defined in RuntimeLibCalls.def.
>
> The library functions defined in RuntimeLibCalls.def (among others) are these:
>
> HANDLE_LIBCALL(SRA_I16, "__ashrhi3")
> HANDLE_LIBCALL(SRA_I32, "__ashrsi3")
> HANDLE_LIBCALL(SRA_I64, "__ashrdi3")
>
> However, setting
>
> setOperationAction(ISD::SRA, MVT::i16, LibCall);
>
> in the TargetLowering constructor causes LLVM to stop with an...
2020 Oct 15
3
Out-of-line atomics implementation ways
...e targets on libgcc part of interface.
Concerning LLVM, compiler-rt library builtins readme states: "Each function is contained in its own file. Each function has a corresponding unit test under test/Unit." and compilation is controlled by cmake. In addition, RuntimeLibcalls.def contains HANDLE_LIBCALL macros and would need to be redesigned to include compile time names generation.
So I have a choice of:
i. Slightly change/review some LLVM concepts and generate helpers on the fly.
ii. Prepare all code locally and commit 100+ lines of names and files.
I would greatly appreciate any thoughts, s...
2019 Jun 11
2
Bug: Library functions for ISD::SRA, ISD::SHL, and ISD::SRL
...rary functions for ISD::SRA, ISD::SHL, and ISD::SRL
>
> LLVM appears to support Library functions for ISD::SRA ,ISD::SHL, and ISD::SRL, as they are properly defined in RuntimeLibCalls.def.
>
> The library functions defined in RuntimeLibCalls.def (among others) are these:
>
> HANDLE_LIBCALL(SRA_I16, "__ashrhi3")
> HANDLE_LIBCALL(SRA_I32, "__ashrsi3")
> HANDLE_LIBCALL(SRA_I64, "__ashrdi3")
>
> However, setting
>
> setOperationAction(ISD::SRA, MVT::i16, LibCall);
>
> in the TargetLowering constructor causes LLVM to stop with an...
2020 Oct 15
0
Out-of-line atomics implementation ways
...e targets on libgcc part of interface.
Concerning LLVM, compiler-rt library builtins readme states: "Each function is contained in its own file. Each function has a corresponding unit test under test/Unit." and compilation is controlled by cmake. In addition, RuntimeLibcalls.def contains HANDLE_LIBCALL macros and would need to be redesigned to include compile time names generation.
So I have a choice of:
i. Slightly change/review some LLVM concepts and generate helpers on the fly.
ii. Prepare all code locally and commit 100+ lines of names and files.
I would greatly appreciate any thoughts, sug...