Displaying 3 results from an estimated 3 matches for "memcmp_eq".
2016 Dec 30
2
RFC: Inline expansion of memcmp vs call to standard library
Can I make another suggestion: create an intrinsic for memory equality,
e.g. llvm.memcmp_eq.p0i8.p0i8.i64(i8*a, i8*b, i64 len). This intrinsic
would return zero if the memory regions are equal, and nonzero otherwise.
However, it does NOT return any notion of "greater" or "less".
Many applications require only determining equality, rather than a total
ordering. Given...
2016 Dec 30
0
RFC: Inline expansion of memcmp vs call to standard library
...s <listmail at philipreames.com>
Cc: llvm-dev <llvm-dev at lists.llvm.org>; Zaara Syeda <syzaara at ca.ibm.com>
Subject: Re: [llvm-dev] RFC: Inline expansion of memcmp vs call to standard library
Can I make another suggestion: create an intrinsic for memory equality, e.g. llvm.memcmp_eq.p0i8.p0i8.i64(i8*a, i8*b, i64 len). This intrinsic would return zero if the memory regions are equal, and nonzero otherwise. However, it does NOT return any notion of "greater" or "less".
Many applications require only determining equality, rather than a total ordering. Given...
2016 Dec 29
0
RFC: Inline expansion of memcmp vs call to standard library
Improving lowering for memcmp is definitely something we should do for
all targets. Doing it in a target specific way is decidedly non-ideal.
It looks like we already have some code in SelectionDAGBuilder which
tries to optimize the lowering for the memcpy library call. I am a bit
confused by the problem you are trying to solve. Are you specifically
interested in lowering for constant