Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Necessary functions for a freestanding environment?"
2010 May 10
0
[LLVMdev] How can I remove Intrinsic Functions during llvm-gcc compilation?
Hi Hao Shen,
> I am using llvm-gcc --emit-llvm to generate byte code. With llvm
> readable ll format, I found some standard C library function such as
> llvm.memset.
this is not a C library function, it is an LLVM intrinsic. An intrinsic is
analogous to a builtin in gcc. An intrinsic may be expanded out into a code
sequence by the compiler, or may get turned into a library call (which
2012 Oct 27
2
[LLVMdev] [llvm-commits] [llvm] r166875 - in /llvm/trunk: lib/Transforms/Scalar/LoopIdiomRecognize.cpp test/Transforms/LoopIdiom/basic.ll
On 27.10.2012, at 18:24, Benjamin Kramer <benny.kra at gmail.com> wrote:
>
> On 27.10.2012, at 18:15, Sean Silva <silvas at purdue.edu> wrote:
>
>> How does this affect freestanding implementations?
>
> This transform is disabled with -fno-builtin or -ffreestanding.
Thinking a bit more about this, it looks like the way -ffreestanding is implemented in clang is
2012 May 29
3
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 8:46 PM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:
> > How do I disable that feature? I've tried -fno-builtin and/or
> -ffreestanding
> > with no success.
> clang (as well as gcc) requires that freestanding environment provides
> memcpy, memmove, memset and memcmp.
>
> PS: Consider emailing cfedev, not llvmdev.
>
Hi,
2010 May 10
2
[LLVMdev] How can I remove Intrinsic Functions during llvm-gcc compilation?
Thanks a lot for your answer.
As what you said, I can not have any options to avoid generating this kind
of intrinsic for byte code. Is it possible to modify gcc and ask it take
all memset liked functions as a general function call? I know this solution
is less performance efficient, but I would like to have it for my llvm
assembly level modification works.
But anyway, thanks for you help.
Hao
2010 May 10
0
[LLVMdev] How can I remove Intrinsic Functions during llvm-gcc compilation?
SHEN Hao wrote:
> Thanks a lot for your answer.
> As what you said, I can not have any options to avoid generating this kind
> of intrinsic for byte code. Is it possible to modify gcc and ask it take
> all memset liked functions as a general function call? I know this solution
> is less performance efficient, but I would like to have it for my llvm
> assembly level modification
2012 May 29
0
[LLVMdev] How to prevent insertion of memcpy()
> How do I disable that feature? I've tried -fno-builtin and/or -ffreestanding
> with no success.
clang (as well as gcc) requires that freestanding environment provides
memcpy, memmove, memset and memcmp.
PS: Consider emailing cfedev, not llvmdev.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2012 May 29
0
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 9:52 AM, Dmitry Vyukov <dvyukov at google.com> wrote:
> On Tue, May 29, 2012 at 8:46 PM, Anton Korobeynikov <
> anton at korobeynikov.info> wrote:
>
>> > How do I disable that feature? I've tried -fno-builtin and/or
>> -ffreestanding
>> > with no success.
>> clang (as well as gcc) requires that freestanding environment
2010 May 12
1
[LLVMdev] How can I remove Intrinsic Functions during llvm-gcc compilation?
On Mon, May 10, 2010 at 7:19 PM, John Criswell <criswell at uiuc.edu> wrote:
> SHEN Hao wrote:
>> Thanks a lot for your answer.
>> As what you said, I can not have any options to avoid generating this kind
>> of intrinsic for byte code. Is it possible to modify gcc and ask it take
>> all memset liked functions as a general function call? I know this solution
2012 May 29
2
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 9:16 PM, Chandler Carruth <chandlerc at google.com>wrote:
> > How do I disable that feature? I've tried -fno-builtin and/or
>>> -ffreestanding
>>> > with no success.
>>> clang (as well as gcc) requires that freestanding environment provides
>>> memcpy, memmove, memset and memcmp.
>>>
>>> PS: Consider
2012 May 29
0
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 10:28 AM, Dmitry Vyukov <dvyukov at google.com> wrote:
> On Tue, May 29, 2012 at 9:16 PM, Chandler Carruth <chandlerc at google.com>wrote:
>
>> > How do I disable that feature? I've tried -fno-builtin and/or
>>>> -ffreestanding
>>>> > with no success.
>>>> clang (as well as gcc) requires that
2012 May 29
0
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 10:46 AM, Dmitry Vyukov <dvyukov at google.com> wrote:
> On Tue, May 29, 2012 at 9:40 PM, Chandler Carruth <chandlerc at google.com>wrote:
>
>> > How do I disable that feature? I've tried -fno-builtin and/or
>>>>>> -ffreestanding
>>>>>> > with no success.
>>>>>> clang (as well as gcc)
2012 May 29
3
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 9:40 PM, Chandler Carruth <chandlerc at google.com>wrote:
> > How do I disable that feature? I've tried -fno-builtin and/or
>>>>> -ffreestanding
>>>>> > with no success.
>>>>> clang (as well as gcc) requires that freestanding environment provides
>>>>> memcpy, memmove, memset and memcmp.
2012 May 29
1
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 9:50 PM, Chandler Carruth <chandlerc at google.com>wrote:
> > How do I disable that feature? I've tried -fno-builtin and/or
>>>>>>> -ffreestanding
>>>>>>> > with no success.
>>>>>>> clang (as well as gcc) requires that freestanding environment
>>>>>>> provides
2012 May 29
0
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 11:11 AM, Jeffrey Yasskin <jyasskin at googlers.com>wrote:
> On Tue, May 29, 2012 at 10:50 AM, Chandler Carruth <chandlerc at google.com>
> wrote:
> > On Tue, May 29, 2012 at 10:46 AM, Dmitry Vyukov <dvyukov at google.com>
> wrote:
> >>
> >> On Tue, May 29, 2012 at 9:40 PM, Chandler Carruth <chandlerc at google.com
>
2015 Aug 18
2
Aggregate load/stores
deadal nix via llvm-dev wrote on Mon, 17 Aug 2015:
> OK, what about that plan :
>
> Slice the aggregate into a serie of valid loads/stores for non atomic ones.
> Use big scalar for atomic/volatile ones.
> Try to generate memcpy or memmove when possible ?
Are memcpy/memmove guaranteed to be handled inline, i.e., without a
call to libc? Or are there plans to do this in the context
2012 May 29
3
[LLVMdev] How to prevent insertion of memcpy()
On Tue, May 29, 2012 at 10:50 AM, Chandler Carruth <chandlerc at google.com> wrote:
> On Tue, May 29, 2012 at 10:46 AM, Dmitry Vyukov <dvyukov at google.com> wrote:
>>
>> On Tue, May 29, 2012 at 9:40 PM, Chandler Carruth <chandlerc at google.com>
>> wrote:
>>>>>>>
>>>>>>> > How do I disable that feature? I've
2013 Mar 25
1
[LLVMdev] Backend port: Adding negative immediates
Hi,
I'm doing a backend port and I'm having trouble with adds that have
negative immediates.
My architecture only has instructions for subtracting and adding 8bit
immediate values (they will be zero-extended, thus unsigned).
Bigger immediates have to be moved in a register first.
The problem is:
Expressions like "b - 1" result in "add nsw i32 %b, -1" in LLVM IR.
They
2011 Aug 29
0
[PATCH] Add mempcpy() as wrapper around memcpy
Newer udev versions asks for it:
libudev/libudev-util.c:168:12: warning: incompatible implicit declaration of built-in function 'mempcpy' [enabled by default]
Signed-off-by: maximilian attems <max at stro.at>
---
usr/include/string.h | 1 +
usr/klibc/Kbuild | 2 +-
usr/klibc/mempcpy.c | 7 +++++++
3 files changed, 9 insertions(+), 1 deletions(-)
create mode 100644
2016 Dec 29
2
RFC: Inline expansion of memcmp vs call to standard library
Currently on PowerPC, calls to memcmp are not expanded and are left as
library calls. In certain conditions, expansion can improve performance
rather than calling the library function as done for functions like memcpy,
memmove, etc. This patch (https://reviews.llvm.org/D28163) is an initial
implementation for PowerPC to expand memcmp when the size is an 8 byte
multiple.
The approach currently
2014 Jun 12
0
No rule to make target `efi32/com32/lib/memcmp.o', needed by `syslinux.so'.
Op 2014-06-10 om 22:55 schreef Geert Stappers:
>
> Hello,
>
> A `make efi32` yeilds me
>
> make[3]: *** No rule to make target `efi32/com32/lib/memcmp.o', needed by `syslinux.so'. Stop.
> make[3]: Leaving directory `efi32/efi'
> make[2]: *** [efi] Error 2
It was encountered while doing `make`.
The `make efi32` is just to faster reproduce the build